pidgin: 9448aec0: Fix setting "show offline" for buddy lis...

nosnilmot at pidgin.im nosnilmot at pidgin.im
Wed Apr 23 13:15:40 EDT 2008


-----------------------------------------------------------------
Revision: 9448aec0bc0e0168e10e0a3991bfbfe716de6c86
Ancestor: 0759b48350286e0478dc7ba737fd7956a0dbf6f8
Author: nosnilmot at pidgin.im
Date: 2008-04-23T17:10:43
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/9448aec0bc0e0168e10e0a3991bfbfe716de6c86

Modified files:
        pidgin/gtkblist.c

ChangeLog: 

Fix setting "show offline" for buddy list nodes so it takes immediate
effect, references #4606 but I'm not sure if that's a different problem.

-------------- next part --------------
============================================================
--- pidgin/gtkblist.c	95ee66b3fdd31098ade1dcd124dd3e7b85a3797a
+++ pidgin/gtkblist.c	ec1be05a2da527d6abad156b1c9ab6dd94544b18
@@ -695,6 +695,7 @@ static void gtk_blist_menu_showoffline_c
 	{
 		purple_blist_node_set_bool(node, "show_offline",
 		                           !purple_blist_node_get_bool(node, "show_offline"));
+		pidgin_blist_update(purple_get_blist(), node);
 	}
 	else if (PURPLE_BLIST_NODE_IS_CONTACT(node))
 	{
@@ -704,6 +705,7 @@ static void gtk_blist_menu_showoffline_c
 		purple_blist_node_set_bool(node, "show_offline", setting);
 		for (bnode = node->child; bnode != NULL; bnode = bnode->next) {
 			purple_blist_node_set_bool(bnode, "show_offline", setting);
+			pidgin_blist_update(purple_get_blist(), bnode);
 		}
 	} else if (PURPLE_BLIST_NODE_IS_GROUP(node)) {
 		PurpleBlistNode *cnode, *bnode;
@@ -714,10 +716,10 @@ static void gtk_blist_menu_showoffline_c
 			purple_blist_node_set_bool(cnode, "show_offline", setting);
 			for (bnode = cnode->child; bnode != NULL; bnode = bnode->next) {
 				purple_blist_node_set_bool(bnode, "show_offline", setting);
+				pidgin_blist_update(purple_get_blist(), bnode);
 			}
 		}
 	}
-	pidgin_blist_update(purple_get_blist(), node);
 }
 
 static void gtk_blist_show_systemlog_cb(void)


More information about the Commits mailing list