]> Pileus Git - ~andy/gtk/commitdiff
Prefer xdg data directory to legacy .icons directory
authorWilliam Jon McCann <jmccann@redhat.com>
Fri, 27 Apr 2012 16:39:17 +0000 (12:39 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 30 Apr 2012 10:42:34 +0000 (06:42 -0400)
https://bugzilla.gnome.org/show_bug.cgi?id=646631

gtk/gtkicontheme.c

index ec26bddb9176eaa7a493a2ac7fa165b6d45f725d..0f2d8117f29c50afdf357b17e49f7cf82c8096df 100644 (file)
@@ -661,8 +661,8 @@ gtk_icon_theme_init (GtkIconTheme *icon_theme)
   priv->search_path = g_new (char *, priv->search_path_len);
   
   i = 0;
-  priv->search_path[i++] = g_build_filename (g_get_home_dir (), ".icons", NULL);
   priv->search_path[i++] = g_build_filename (g_get_user_data_dir (), "icons", NULL);
+  priv->search_path[i++] = g_build_filename (g_get_home_dir (), ".icons", NULL);
   
   for (j = 0; xdg_data_dirs[j]; j++) 
     priv->search_path[i++] = g_build_filename (xdg_data_dirs[j], "icons", NULL);