Mercurial > pidgin.yaz
diff pidgin/gtkblist.c @ 21373:cbf197042bad
Add the old error to the account-error-changed signal.
author | Will Thompson <will.thompson@collabora.co.uk> |
---|---|
date | Sun, 28 Oct 2007 13:01:45 +0000 |
parents | 318b3f5d1516 |
children | 71c1f2da4ff2 |
line wrap: on
line diff
--- a/pidgin/gtkblist.c Sun Oct 28 11:04:04 2007 +0000 +++ b/pidgin/gtkblist.c Sun Oct 28 13:01:45 2007 +0000 @@ -4393,12 +4393,14 @@ gtk_widget_show_all(gtkblist->error_buttons); } -void -account_error_changed_cb(PurpleAccount *account, - PurpleAccountCurrentError *err) -{ - if (err) - pidgin_blist_update_account_error_state(account, err->description); +static void +update_account_error_state(PurpleAccount *account, + PurpleAccountCurrentError *old, + PurpleAccountCurrentError *new, + PidginBuddyList *gtkblist) +{ + if (new) + pidgin_blist_update_account_error_state(account, new->description); else pidgin_blist_update_account_error_state(account, NULL); } @@ -4967,7 +4969,7 @@ PURPLE_CALLBACK(account_status_changed), gtkblist); purple_signal_connect(handle, "account-error-changed", gtkblist, - PURPLE_CALLBACK(account_error_changed_cb), + PURPLE_CALLBACK(update_account_error_state), gtkblist); handle = pidgin_account_get_handle();