Mercurial > pidgin
changeset 16861:38b3ca4b353d
Docklet icon is now tied to the saved status, so listen to the
savedstatus-changed signal instead of account-status-changed. Also
listen to account-connecting to make connecting icon to display
when an account is connecting without changing the status selector.
author | Casey Harkins <charkins@pidgin.im> |
---|---|
date | Fri, 04 May 2007 04:12:17 +0000 |
parents | 86ba72a2b31e |
children | 90184b199e58 8c19752df0e6 |
files | pidgin/gtkdocklet.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin/gtkdocklet.c Fri May 04 04:02:14 2007 +0000 +++ b/pidgin/gtkdocklet.c Fri May 04 04:12:17 2007 +0000 @@ -648,6 +648,7 @@ void *conn_handle = purple_connections_get_handle(); void *conv_handle = purple_conversations_get_handle(); void *accounts_handle = purple_accounts_get_handle(); + void *status_handle = purple_savedstatuses_get_handle(); void *docklet_handle = pidgin_docklet_get_handle(); purple_prefs_add_none(PIDGIN_PREFS_ROOT "/docklet"); @@ -664,7 +665,7 @@ docklet_handle, PURPLE_CALLBACK(docklet_signed_on_cb), NULL); purple_signal_connect(conn_handle, "signed-off", docklet_handle, PURPLE_CALLBACK(docklet_signed_off_cb), NULL); - purple_signal_connect(accounts_handle, "account-status-changed", + purple_signal_connect(accounts_handle, "account-connecting", docklet_handle, PURPLE_CALLBACK(docklet_update_status_cb), NULL); purple_signal_connect(conv_handle, "received-im-msg", docklet_handle, PURPLE_CALLBACK(docklet_update_status_cb), NULL); @@ -674,6 +675,8 @@ docklet_handle, PURPLE_CALLBACK(docklet_update_status_cb), NULL); purple_signal_connect(conv_handle, "conversation-updated", docklet_handle, PURPLE_CALLBACK(docklet_conv_updated_cb), NULL); + purple_signal_connect(status_handle, "savedstatus-changed", + docklet_handle, PURPLE_CALLBACK(docklet_update_status_cb), NULL); #if 0 purple_signal_connect(purple_get_core(), "quitting", docklet_handle, PURPLE_CALLBACK(purple_quit_cb), NULL);