[gnome-software] Get names and comments for the correct locale in datadir-apps
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Get names and comments for the correct locale in datadir-apps
- Date: Mon, 9 Sep 2013 15:05:56 +0000 (UTC)
commit d34b267ea541d7e4a8852772db872d9ecd6fc135
Author: Richard Hughes <richard hughsie com>
Date: Mon Sep 9 16:05:22 2013 +0100
Get names and comments for the correct locale in datadir-apps
src/plugins/gs-plugin-datadir-apps.c | 18 ++++++++++--------
1 files changed, 10 insertions(+), 8 deletions(-)
---
diff --git a/src/plugins/gs-plugin-datadir-apps.c b/src/plugins/gs-plugin-datadir-apps.c
index 97a968f..2c8d639 100644
--- a/src/plugins/gs-plugin-datadir-apps.c
+++ b/src/plugins/gs-plugin-datadir-apps.c
@@ -155,18 +155,20 @@ gs_plugin_datadir_apps_extract_desktop_data (GsPlugin *plugin,
cache_item = g_slice_new0 (GsPluginDataDirAppsCacheItem);
/* get desktop name */
- name = g_key_file_get_string (key_file,
- G_KEY_FILE_DESKTOP_GROUP,
- G_KEY_FILE_DESKTOP_KEY_NAME,
- NULL);
+ name = g_key_file_get_locale_string (key_file,
+ G_KEY_FILE_DESKTOP_GROUP,
+ G_KEY_FILE_DESKTOP_KEY_NAME,
+ NULL,
+ NULL);
if (name != NULL && name[0] != '\0')
cache_item->name = g_strdup (name);
/* get desktop summary */
- comment = g_key_file_get_string (key_file,
- G_KEY_FILE_DESKTOP_GROUP,
- G_KEY_FILE_DESKTOP_KEY_COMMENT,
- NULL);
+ comment = g_key_file_get_locale_string (key_file,
+ G_KEY_FILE_DESKTOP_GROUP,
+ G_KEY_FILE_DESKTOP_KEY_COMMENT,
+ NULL,
+ NULL);
if (comment != NULL && comment[0] != '\0')
cache_item->summary = g_strdup (comment);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]