Mercurial > pidgin.yaz
comparison pidgin/gtkblist.c @ 26776:83e6e710cbf3
Add a new signal which is emitted (after the account is connected) if the
associated account actions are changed. This is necessary since XMPP's
account actions are not known when setting the account to connected. Also
added support for push updates as specified in XEP-0050 2.3.
Refs #7233.
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Sun, 26 Apr 2009 06:45:55 +0000 |
parents | 9484cc400aca |
children | 88c87a40a738 413006df9828 684690dbda4a |
comparison
equal
deleted
inserted
replaced
26775:46b1d6eca6ef | 26776:83e6e710cbf3 |
---|---|
4650 pidgin_blist_select_notebook_page(gtkblist); | 4650 pidgin_blist_select_notebook_page(gtkblist); |
4651 update_menu_bar(gtkblist); | 4651 update_menu_bar(gtkblist); |
4652 } | 4652 } |
4653 | 4653 |
4654 static void | 4654 static void |
4655 account_actions_changed(PurpleAccount *account, gpointer data) | |
4656 { | |
4657 pidgin_blist_update_accounts_menu(); | |
4658 } | |
4659 | |
4660 static void | |
4655 account_status_changed(PurpleAccount *account, PurpleStatus *old, | 4661 account_status_changed(PurpleAccount *account, PurpleStatus *old, |
4656 PurpleStatus *new, PidginBuddyList *gtkblist) | 4662 PurpleStatus *new, PidginBuddyList *gtkblist) |
4657 { | 4663 { |
4658 if (!gtkblist) | 4664 if (!gtkblist) |
4659 return; | 4665 return; |
5835 PURPLE_CALLBACK(account_status_changed), | 5841 PURPLE_CALLBACK(account_status_changed), |
5836 gtkblist); | 5842 gtkblist); |
5837 purple_signal_connect(handle, "account-error-changed", gtkblist, | 5843 purple_signal_connect(handle, "account-error-changed", gtkblist, |
5838 PURPLE_CALLBACK(update_account_error_state), | 5844 PURPLE_CALLBACK(update_account_error_state), |
5839 gtkblist); | 5845 gtkblist); |
5846 purple_signal_connect(handle, "account-actions-changed", gtkblist, | |
5847 PURPLE_CALLBACK(account_actions_changed), NULL); | |
5840 | 5848 |
5841 handle = pidgin_account_get_handle(); | 5849 handle = pidgin_account_get_handle(); |
5842 purple_signal_connect(handle, "account-modified", gtkblist, | 5850 purple_signal_connect(handle, "account-modified", gtkblist, |
5843 PURPLE_CALLBACK(account_modified), gtkblist); | 5851 PURPLE_CALLBACK(account_modified), gtkblist); |
5844 | 5852 |