[evolution-rss] fix loading of folder icons



commit ce191f30b39762ef0aa89fbe38581a65cadb561f
Author: Lucian Langa <lucilanga gnome org>
Date:   Wed Mar 10 12:55:30 2010 +0200

    fix loading of folder icons

 src/rss.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/rss.c b/src/rss.c
index dd38208..bfe5b1d 100644
--- a/src/rss.c
+++ b/src/rss.c
@@ -5495,10 +5495,12 @@ display_folder_icon(GtkTreeStore *tree_store, gchar *key)
 			goto out;
 		}
 		icon = rss_build_icon (img_file, GTK_ICON_SIZE_MENU);
+		d("icon:%p\n", icon);
 		g_hash_table_insert(icons, g_strdup(key), GINT_TO_POINTER(1));
 		sizes = gtk_icon_theme_get_icon_sizes(gtk_icon_theme_get_default(),
 				"mail-read"); //will mail-read always be there?
-		for (i=0; -1 != (size = sizes[i]); i++)
+		for (i=0; 0 != (size = sizes[i]); i++)
+			d("icon set size:%d\n", size);
 			gtk_icon_theme_add_builtin_icon(key,
 				size,
 				icon);



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