changeset 26581:7519de6ea00f

We don't have huge status icons, and set only the icons changed from the editor.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sun, 19 Apr 2009 19:45:53 +0000
parents 0dddfdb3a24a
children 5d71de58452c
files pidgin/plugins/themeedit-icon.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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++) {