[gaim-migrate @ 14005]

Sat, 22 Oct 2005 14:30:45 +0000

author
Stu Tomlinson <nosnilmot@pidgin.im>
date
Sat, 22 Oct 2005 14:30:45 +0000
changeset 11714
2e075e8b2347
parent 11713
775a09a070b7
child 11715
7a7749be3ef9

[gaim-migrate @ 14005]
Fix for unloading and re-loading the docklet plugin so that closing the
buddy list will still minimize to the tray, and connect to the
account-status-changed signal instead of the (now gone) account-away one.

plugins/docklet/docklet.c file | annotate | diff | comparison | revisions
--- a/plugins/docklet/docklet.c	Sat Oct 22 14:08:57 2005 +0000
+++ b/plugins/docklet/docklet.c	Sat Oct 22 14:30:45 2005 +0000
@@ -496,7 +496,7 @@
 						plugin, GAIM_CALLBACK(docklet_signed_off_cb), NULL);
 	gaim_signal_connect(accounts_handle, "account-connecting",
 						plugin, GAIM_CALLBACK(docklet_update_status_cb), NULL);
-	gaim_signal_connect(accounts_handle, "account-away",
+	gaim_signal_connect(accounts_handle, "account-status-changed",
 						plugin, GAIM_CALLBACK(docklet_update_status_cb), NULL);
 	gaim_signal_connect(conv_handle, "received-im-msg",
 						plugin, GAIM_CALLBACK(docklet_update_status_cb), NULL);
@@ -532,6 +532,7 @@
     gaim_signals_disconnect_by_handle(handle);
 	if(gtkblist_delete_cb_id!=0)
 		g_signal_handler_disconnect(G_OBJECT(gtkblist->window), gtkblist_delete_cb_id);
+	gtkblist_delete_cb_id = 0;
 
 	unminimize_from_tray();
 

mercurial