changeset 21382:e694942bbcfa

I have no idea why checking for an OFFLINE status type on an account would be necessary before getting the prpl icon.
author Will Thompson <will.thompson@collabora.co.uk>
date Tue, 30 Oct 2007 23:46:59 +0000
parents 995fc37576c7
children f02eaf4cc032
files pidgin/gtkblist.c
diffstat 1 files changed, 6 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkblist.c	Tue Oct 30 23:41:10 2007 +0000
+++ b/pidgin/gtkblist.c	Tue Oct 30 23:46:59 2007 +0000
@@ -4376,15 +4376,12 @@
 	hbox = gtk_hbox_new(FALSE, 6);
 
 	/* Create the icon */
-	if (purple_account_get_status_type_with_primitive(account,
-							PURPLE_STATUS_OFFLINE) != NULL) {
-		pixbuf = pidgin_create_prpl_icon(account, PIDGIN_PRPL_ICON_SMALL);
-		if (pixbuf != NULL) {
-			image = gtk_image_new_from_pixbuf(pixbuf);
-			g_object_unref(pixbuf);
-
-			gtk_box_pack_start(GTK_BOX(hbox), image, FALSE, FALSE, 0);
-		}
+	pixbuf = pidgin_create_prpl_icon(account, PIDGIN_PRPL_ICON_SMALL);
+	if (pixbuf != NULL) {
+		image = gtk_image_new_from_pixbuf(pixbuf);
+		g_object_unref(pixbuf);
+
+		gtk_box_pack_start(GTK_BOX(hbox), image, FALSE, FALSE, 0);
 	}
 
 	/* Create the text */