gnome-control-center r9023 - trunk/capplets/common



Author: jensg
Date: Mon Sep 29 20:02:49 2008
New Revision: 9023
URL: http://svn.gnome.org/viewvc/gnome-control-center?rev=9023&view=rev

Log:
2008-09-29  Jens Granseuer  <jensgr gmx net>

	* gnome-theme-info.c: (read_icon_theme): use translated names for
	icon themes if available (bug #554272)


Modified:
   trunk/capplets/common/ChangeLog
   trunk/capplets/common/gnome-theme-info.c

Modified: trunk/capplets/common/gnome-theme-info.c
==============================================================================
--- trunk/capplets/common/gnome-theme-info.c	(original)
+++ trunk/capplets/common/gnome-theme-info.c	Mon Sep 29 20:02:49 2008
@@ -404,10 +404,13 @@
   if (icon_theme_ditem == NULL)
     return NULL;
 
-  name = gnome_desktop_item_get_string (icon_theme_ditem, "Icon Theme/Name");
-  if (name == NULL) {
-    gnome_desktop_item_unref (icon_theme_ditem);
-    return NULL;
+  name = gnome_desktop_item_get_localestring (icon_theme_ditem, "Icon Theme/Name");
+  if (!name) {
+    name = gnome_desktop_item_get_localestring (icon_theme_ditem, GNOME_DESKTOP_ITEM_NAME);
+    if (!name) {
+      gnome_desktop_item_unref (icon_theme_ditem);
+      return NULL;
+    }
   }
 
   /* If index.theme has no Directories entry, it is only a cursor theme */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]