src/gtkblist.c

changeset 14137
48e2c0761c14
parent 14136
0259a51abd4a
child 14195
0f7cb3b272b2
--- a/src/gtkblist.c	Fri Aug 11 01:14:07 2006 +0000
+++ b/src/gtkblist.c	Fri Aug 11 01:30:22 2006 +0000
@@ -3598,15 +3598,16 @@
 	hbox = gtk_hbox_new(FALSE, 0);
 
 	/* Create the icon */
-	status_type = gaim_account_get_status_type_with_primitive(account,
-							GAIM_STATUS_OFFLINE);
-	pixbuf = gaim_gtk_create_prpl_icon_with_status(account, status_type, 0.5);
-	if (pixbuf != NULL) {
-		image = gtk_image_new_from_pixbuf(pixbuf);
-		g_object_unref(pixbuf);
-
-		gtk_box_pack_start(GTK_BOX(hbox), image, FALSE, FALSE,
-		                   GAIM_HIG_BOX_SPACE);
+	if ((status_type = gaim_account_get_status_type_with_primitive(account,
+							GAIM_STATUS_OFFLINE))) {
+		pixbuf = gaim_gtk_create_prpl_icon_with_status(account, status_type, 0.5);
+		if (pixbuf != NULL) {
+			image = gtk_image_new_from_pixbuf(pixbuf);
+			g_object_unref(pixbuf);
+
+			gtk_box_pack_start(GTK_BOX(hbox), image, FALSE, FALSE,
+			                   GAIM_HIG_BOX_SPACE);
+		}
 	}
 
 	/* Create the text */

mercurial