comparison 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
comparison
equal deleted inserted replaced
14074:36bb845aa622 14075:7fbca3653056
3596 g_free(escaped); 3596 g_free(escaped);
3597 3597
3598 hbox = gtk_hbox_new(FALSE, 0); 3598 hbox = gtk_hbox_new(FALSE, 0);
3599 3599
3600 /* Create the icon */ 3600 /* Create the icon */
3601 status_type = gaim_account_get_status_type_with_primitive(account, 3601 if ((status_type = gaim_account_get_status_type_with_primitive(account,
3602 GAIM_STATUS_OFFLINE); 3602 GAIM_STATUS_OFFLINE))) {
3603 pixbuf = gaim_gtk_create_prpl_icon_with_status(account, status_type, 0.5); 3603 pixbuf = gaim_gtk_create_prpl_icon_with_status(account, status_type, 0.5);
3604 if (pixbuf != NULL) { 3604 if (pixbuf != NULL) {
3605 image = gtk_image_new_from_pixbuf(pixbuf); 3605 image = gtk_image_new_from_pixbuf(pixbuf);
3606 g_object_unref(pixbuf); 3606 g_object_unref(pixbuf);
3607 3607
3608 gtk_box_pack_start(GTK_BOX(hbox), image, FALSE, FALSE, 3608 gtk_box_pack_start(GTK_BOX(hbox), image, FALSE, FALSE,
3609 GAIM_HIG_BOX_SPACE); 3609 GAIM_HIG_BOX_SPACE);
3610 }
3610 } 3611 }
3611 3612
3612 /* Create the text */ 3613 /* Create the text */
3613 label = gtk_label_new(""); 3614 label = gtk_label_new("");
3614 gtk_label_set_markup(GTK_LABEL(label), text); 3615 gtk_label_set_markup(GTK_LABEL(label), text);