We don't have huge status icons, and set only the icons changed from the sadrul.gtkblist-theme

Sun, 19 Apr 2009 19:45:53 +0000

author
Sadrul Habib Chowdhury <sadrul@pidgin.im>
date
Sun, 19 Apr 2009 19:45:53 +0000
branch
sadrul.gtkblist-theme
changeset 26812
d43061932a7c
parent 26811
72045103fad1
child 26813
c1a058a2466e

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

pidgin/plugins/themeedit-icon.c file | annotate | diff | comparison | revisions
--- a/pidgin/plugins/themeedit-icon.c	Sun Apr 19 17:30:59 2009 +0000
+++ b/pidgin/plugins/themeedit-icon.c	Sun Apr 19 19:45:53 2009 +0000
@@ -39,8 +39,8 @@
 	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 @@
 	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++) {

mercurial