pidgin: a0d9c850: Activate the current status for an accou...

wabz at pidgin.im wabz at pidgin.im
Mon Apr 6 06:40:40 EDT 2009


-----------------------------------------------------------------
Revision: a0d9c8509c017c1eb52b8b3e1172e9d0ee0b0a51
Ancestor: 0b3f847bd16080ce26f0a73e3db52c275af0fefc
Author: wabz at pidgin.im
Date: 2009-04-06T10:31:17
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/a0d9c8509c017c1eb52b8b3e1172e9d0ee0b0a51

Modified files:
        finch/gntaccount.c

ChangeLog: 

Activate the current status for an account being enabled

-------------- next part --------------
============================================================
--- finch/gntaccount.c	ad5bad90ce6fb9b08f62329ac36e8cc5dcfb71d0
+++ finch/gntaccount.c	24d52150587c87297f848a21a98fe4488ad43cbb
@@ -669,8 +669,13 @@ account_toggled(GntWidget *widget, void 
 account_toggled(GntWidget *widget, void *key, gpointer null)
 {
 	PurpleAccount *account = key;
+	gboolean enabled = gnt_tree_get_choice(GNT_TREE(widget), key);
 
-	purple_account_set_enabled(account, FINCH_UI, gnt_tree_get_choice(GNT_TREE(widget), key));
+	if (enabled)
+		purple_savedstatus_activate_for_account(purple_savedstatus_get_current(),
+												account);
+
+	purple_account_set_enabled(account, FINCH_UI, enabled);
 }
 
 static gboolean


More information about the Commits mailing list