Mercurial > pidgin
changeset 17173:662552c912b4
Fix a logic mistake I introduced during a cleanup.
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Sat, 19 May 2007 20:26:54 +0000 |
parents | c8f1748e5af9 |
children | bf1cde8614c1 |
files | pidgin/gtkutils.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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);