# HG changeset patch # User Daniel Atallah # Date 1155259822 0 # Node ID 7fbca36530560fe0731f9f5f515f9e53d4e69f68 # Parent 36bb845aa6222f7b621d0f29aeb6b87025462d55 [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 diff -r 36bb845aa622 -r 7fbca3653056 src/gtkblist.c --- 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 */