diff pidgin/gtkconn.c @ 21369:318b3f5d1516

Call pidgin_blist_update_account_error_state in response to account-error-changed rather than in various places in gtkconn.c.
author Will Thompson <will.thompson@collabora.co.uk>
date Sat, 27 Oct 2007 17:45:05 +0000
parents ba41f2a60253
children 2b5f1b47b1ba
line wrap: on
line diff
--- a/pidgin/gtkconn.c	Sat Oct 27 17:43:49 2007 +0000
+++ b/pidgin/gtkconn.c	Sat Oct 27 17:45:05 2007 +0000
@@ -82,8 +82,6 @@
 					   (purple_connections_get_connecting() != NULL));
 
 	g_hash_table_remove(auto_reconns, account);
-
-	pidgin_blist_update_account_error_state(account, NULL);
 }
 
 static void
@@ -149,7 +147,6 @@
 	account = purple_connection_get_account(gc);
 	info = g_hash_table_lookup(auto_reconns, account);
 
-	pidgin_blist_update_account_error_state(account, text);
 	if (!purple_connection_error_is_fatal (reason)) {
 		if (info == NULL) {
 			info = g_new0(PidginAutoRecon, 1);
@@ -301,8 +298,6 @@
 account_removed_cb(PurpleAccount *account, gpointer user_data)
 {
 	g_hash_table_remove(auto_reconns, account);
-
-	pidgin_blist_update_account_error_state(account, NULL);
 }