From: <dat...@us...> - 2006-08-11 01:30:27
|
Revision: 16696 Author: datallah Date: 2006-08-10 18:30:22 -0700 (Thu, 10 Aug 2006) ViewCVS: http://svn.sourceforge.net/gaim/?rev=16696&view=rev Log Message: ----------- 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) Modified Paths: -------------- trunk/src/gtkblist.c Modified: trunk/src/gtkblist.c =================================================================== --- trunk/src/gtkblist.c 2006-08-11 01:14:07 UTC (rev 16695) +++ trunk/src/gtkblist.c 2006-08-11 01:30:22 UTC (rev 16696) @@ -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); + 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); + gtk_box_pack_start(GTK_BOX(hbox), image, FALSE, FALSE, + GAIM_HIG_BOX_SPACE); + } } /* Create the text */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |