im.pidgin.cpw.resiak.disconnectreason: 59ae1baa5170a6a40f17cc5d213864be55009356

resiak at soc.pidgin.im resiak at soc.pidgin.im
Sun Oct 28 12:56:06 EDT 2007


-----------------------------------------------------------------
Revision: 59ae1baa5170a6a40f17cc5d213864be55009356
Ancestor: 1c4a76a16cd4f8e8ae374ea786d9c7001acf7918
Author: resiak at soc.pidgin.im
Date: 2007-10-28T00:46:45
Branch: im.pidgin.cpw.resiak.disconnectreason

Modified files:
        libpurple/account.c libpurple/core.c

ChangeLog: 

Connect to connection-error in account.c so that the account error is actually
updated and account-error-changed is actually fired.

-------------- next part --------------
============================================================
--- libpurple/account.c	38d2e4fafde1c709cb025e302889e586e85a11c0
+++ libpurple/account.c	47a1ec154aa64ecdb8a19d471f52916736946d15
@@ -2588,6 +2588,8 @@ purple_accounts_init(void)
 
 	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();
 
============================================================
--- libpurple/core.c	653769a1381c3bedd82f42ff8cee9c01415e5c23
+++ libpurple/core.c	71bca8b67a1aed03be7ac915864b96b8d9096470
@@ -138,15 +138,17 @@ purple_core_init(const char *ui)
 	/* 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();


More information about the Commits mailing list