changeset 21370:0aa18e21a595

Connect to connection-error in account.c so that the account error is actually updated and account-error-changed is actually fired.
author Will Thompson <will.thompson@collabora.co.uk>
date Sun, 28 Oct 2007 00:46:45 +0000
parents 318b3f5d1516
children b6b69faafbe3
files libpurple/account.c libpurple/core.c
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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();