[Xfce4-commits] <xfdesktop:xfce-4.8> Retrieve the translated desktop file name
Jérôme Guelfucci
noreply at xfce.org
Tue Mar 29 20:54:03 CEST 2011
Updating branch refs/heads/xfce-4.8
to c6d35410db6577e1a49166effe114cc64e1b2d3c (commit)
from 8bde41d4f665bfea2d46b95f690318ba7cbcbc83 (commit)
commit c6d35410db6577e1a49166effe114cc64e1b2d3c
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