Sun, 28 Oct 2007 00:46:45 +0000
Connect to connection-error in account.c so that the account error is actually
updated and account-error-changed is actually fired.
| libpurple/account.c | file | annotate | diff | comparison | revisions | |
| libpurple/core.c | file | annotate | diff | comparison | revisions |
--- a/libpurple/account.c Sat Oct 27 17:45:05 2007 +0000 +++ b/libpurple/account.c Sun Oct 28 00:46:45 2007 +0000 @@ -2588,6 +2588,8 @@ purple_signal_connect(conn_handle, "signed-on", handle, PURPLE_CALLBACK(signed_on_cb), NULL); + purple_signal_connect(conn_handle, "connection-error", handle, + PURPLE_CALLBACK(connection_error_cb), NULL); load_accounts();
--- a/libpurple/core.c Sat Oct 27 17:45:05 2007 +0000 +++ b/libpurple/core.c Sun Oct 28 00:46:45 2007 +0000 @@ -138,15 +138,17 @@ /* The buddy icon code uses the imgstore, so init it early. */ purple_imgstore_init(); - /* Accounts use status and buddy icons, so initialize these before accounts */ + /* Accounts use status, buddy icons and connection signals, so + * initialize these before accounts + */ purple_status_init(); purple_buddy_icons_init(); + purple_connections_init(); purple_accounts_init(); purple_savedstatuses_init(); purple_notify_init(); purple_certificate_init(); - purple_connections_init(); purple_conversations_init(); purple_blist_init(); purple_log_init();