# HG changeset patch # User Richard Laager # Date 1179606414 0 # Node ID 662552c912b43dd749e5a833d720b86f10c019d2 # Parent c8f1748e5af9b0beeb30c514399438d2a3890017 Fix a logic mistake I introduced during a cleanup. diff -r c8f1748e5af9 -r 662552c912b4 pidgin/gtkutils.c --- a/pidgin/gtkutils.c Sat May 19 19:58:56 2007 +0000 +++ b/pidgin/gtkutils.c Sat May 19 20:26:54 2007 +0000 @@ -472,7 +472,7 @@ hbox = g_object_new(GTK_TYPE_HBOX, "visible", TRUE, "homogeneous", FALSE, "spacing", 4, NULL); /* Create the image */ - if (pixbuf) + if (pixbuf == NULL) image = g_object_new(GTK_TYPE_IMAGE, "visible", TRUE, NULL); else image = g_object_new(GTK_TYPE_IMAGE, "visible", TRUE, "pixbuf", pixbuf, NULL); @@ -581,7 +581,8 @@ for (p = purple_plugins_get_protocols(), i = 0; p != NULL; - p = p->next, i++) { + p = p->next, i++) + { plugin = (PurplePlugin *)p->data; prpl_info = PURPLE_PLUGIN_PROTOCOL_INFO(plugin);