im.pidgin.cpw.resiak.disconnectreason: f0cb80a1bc08f9b3e2e63971abe9a4f95a711f6b

resiak at soc.pidgin.im resiak at soc.pidgin.im
Tue Oct 30 20:36:08 EDT 2007


-----------------------------------------------------------------
Revision: f0cb80a1bc08f9b3e2e63971abe9a4f95a711f6b
Ancestor: 604238d4570d7f8a93230f1e2c99da1f67bcde94
Author: resiak at soc.pidgin.im
Date: 2007-10-30T23:46:59
Branch: im.pidgin.cpw.resiak.disconnectreason

Modified files:
        pidgin/gtkblist.c

ChangeLog: 

I have no idea why checking for an OFFLINE status type on an account would be
necessary before getting the prpl icon.

-------------- next part --------------
============================================================
--- pidgin/gtkblist.c	e671947867f87780de488ef891a19f5695803d8e
+++ pidgin/gtkblist.c	b1189f2d05c7947e1111c23973a85082dbe8f2c8
@@ -4376,15 +4376,12 @@ create_connection_error_button(PurpleAcc
 	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);
+	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);
-		}
+		gtk_box_pack_start(GTK_BOX(hbox), image, FALSE, FALSE, 0);
 	}
 
 	/* Create the text */


More information about the Commits mailing list