[Xfce4-commits] <xfdesktop:master> Retrieve the translated desktop file name

Jérôme Guelfucci noreply at xfce.org
Tue Mar 29 20:54:01 CEST 2011


Updating branch refs/heads/master
         to 0867f5e1384da1ba852d6e71420389f218d69649 (commit)
       from 646b7b863f20640c0b8c10584ded59bc1c517c33 (commit)

commit 0867f5e1384da1ba852d6e71420389f218d69649
Author: Lionel Le Folgoc <mrpouit at gmail.com>
Date:   Wed Mar 9 14:12:55 2011 +0100

    Retrieve the translated desktop file name

 src/xfdesktop-file-utils.c |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/xfdesktop-file-utils.c b/src/xfdesktop-file-utils.c
index 33ffe64..366a3d3 100644
--- a/src/xfdesktop-file-utils.c
+++ b/src/xfdesktop-file-utils.c
@@ -212,10 +212,11 @@ xfdesktop_file_utils_get_display_name(GFile *file,
         key_file = xfdesktop_file_utils_query_key_file(file, NULL, NULL);
         if(key_file) {
             /* try to parse the display name */
-            display_name = g_key_file_get_string(key_file, 
-                                                 G_KEY_FILE_DESKTOP_GROUP,
-                                                 G_KEY_FILE_DESKTOP_KEY_NAME,
-                                                 NULL);
+            display_name = g_key_file_get_locale_string(key_file, 
+                                                        G_KEY_FILE_DESKTOP_GROUP,
+                                                        G_KEY_FILE_DESKTOP_KEY_NAME,
+                                                        NULL,
+                                                        NULL);
             
             /* free the key file */
             g_key_file_free (key_file);



More information about the Xfce4-commits mailing list