diff src/gtkblist.c @ 14075:7fbca3653056

[gaim-migrate @ 16696] Fix CID 254 - We're assuming that an account has an offline status (perhaps it isn't too bad of an assumption, but lets not make it) committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Fri, 11 Aug 2006 01:30:22 +0000
parents 36bb845aa622
children 31d33e7bc0e6
line wrap: on
line diff
--- 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 */