pidgin: 6b26dbc4: Close up scope on a variable and use PUR...

deryni at pidgin.im deryni at pidgin.im
Tue Jul 7 11:55:29 EDT 2009


-----------------------------------------------------------------
Revision: 6b26dbc439fec2159e7e9f20b2a3161288ca1c98
Ancestor: e2d679db30fb21eb0e4cbee46d153b8ecfe4a1dd
Author: deryni at pidgin.im
Date: 2009-07-07T15:50:45
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/6b26dbc439fec2159e7e9f20b2a3161288ca1c98

Modified files:
        pidgin/gtkblist.c

ChangeLog: 

Close up scope on a variable and use PURPLE_BLIST_NODE_HAS_FLAG.

-------------- next part --------------
============================================================
--- pidgin/gtkblist.c	f706621cd719e61ee9f1d8ff0080135a29508a73
+++ pidgin/gtkblist.c	630bd48132a7fccbbd5aa4bd3f4ce5e167b44ebe
@@ -1505,7 +1505,6 @@ pidgin_blist_make_buddy_menu(GtkWidget *
 	PurpleContact *contact;
 	PurpleBlistNode *node;
 	gboolean contact_expanded = FALSE;
-	gboolean show_offline = FALSE;
 
 	g_return_if_fail(menu);
 	g_return_if_fail(buddy);
@@ -1573,8 +1572,8 @@ pidgin_blist_make_buddy_menu(GtkWidget *
 				G_CALLBACK(gtk_blist_menu_showlog_cb), buddy, 0, 0, NULL);
 	}
 
-	if (!(purple_blist_node_get_flags(node) & PURPLE_BLIST_NODE_FLAG_NO_SAVE)) {
-		show_offline = purple_blist_node_get_bool(node, "show_offline");
+	if (!PURPLE_BLIST_NODE_HAS_FLAG(node, PURPLE_BLIST_NODE_FLAG_NO_SAVE)) {
+		gboolean show_offline = purple_blist_node_get_bool(node, "show_offline");
 		pidgin_new_item_from_stock(menu, show_offline ? _("Hide When Offline") : _("Show When Offline"),
 				NULL, G_CALLBACK(gtk_blist_menu_showoffline_cb), node, 0, 0, NULL);
 	}


More information about the Commits mailing list