sadrul.gtkblist-theme: 1358ea46: We don't have huge status icons, and set...

sadrul at pidgin.im sadrul at pidgin.im
Sun Apr 19 15:45:45 EDT 2009


-----------------------------------------------------------------
Revision: 1358ea46f7a522e17e12f53358be2a0feb2d906b
Ancestor: 68a55224160cd206e7a976d1f266d30bf2aa7ed8
Author: sadrul at pidgin.im
Date: 2009-04-19T19:45:53
Branch: im.pidgin.sadrul.gtkblist-theme
URL: http://d.pidgin.im/viewmtn/revision/info/1358ea46f7a522e17e12f53358be2a0feb2d906b

Modified files:
        pidgin/plugins/themeedit-icon.c

ChangeLog: 

We don't have huge status icons, and set only the icons changed from the
editor.

-------------- next part --------------
============================================================
--- pidgin/plugins/themeedit-icon.c	93fa025cae324bad18c6fb1d8eca5e2870d6e1a7
+++ pidgin/plugins/themeedit-icon.c	4a5e279d3a1a9821f346ee8c7fc478c16b41decc
@@ -39,8 +39,8 @@ static const char *stocksizes [] = {
 	PIDGIN_ICON_SIZE_TANGO_SMALL,
 	PIDGIN_ICON_SIZE_TANGO_MEDIUM,
 	PIDGIN_ICON_SIZE_TANGO_LARGE,
-	PIDGIN_ICON_SIZE_TANGO_HUGE,
-	NULL
+	NULL,
+	PIDGIN_ICON_SIZE_TANGO_HUGE, /* We don't have huge status icons, it seems! */
 };
 
 static const struct {
@@ -67,6 +67,8 @@ create_icon_theme(GtkWidget *window)
 	for (i = 0; statuses[i].stockid; i++) {
 		GtkWidget *image = g_object_get_data(G_OBJECT(window), statuses[i].stockid);
 		GdkPixbuf *pixbuf = g_object_get_data(G_OBJECT(image), "pixbuf");
+		if (!pixbuf)
+			continue;
 		pidgin_icon_theme_set_icon(PIDGIN_ICON_THEME(theme), statuses[i].stockid,
 				statuses[i].stockid);
 		for (j = 0; stocksizes[j]; j++) {


More information about the Commits mailing list