diff src/gtkconn.c @ 13122:d33a225fcb80

[gaim-migrate @ 15484] Remove the gtkstatusbox code for displaying connection errors, since we're using the error buttons in the buddy list, now. I really think showing connection errors in the status box is a bad idea. Users need a way to acknowledge that they've seen an error. Plus there wasn't any way to tell which account it was for. Or view the full text of the error message. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sat, 04 Feb 2006 21:54:55 +0000
parents b4eba6c7f6f8
children 8adf78fc630c
line wrap: on
line diff
--- a/src/gtkconn.c	Sat Feb 04 21:42:02 2006 +0000
+++ b/src/gtkconn.c	Sat Feb 04 21:54:55 2006 +0000
@@ -85,8 +85,6 @@
 	{
 		g_hash_table_remove(errored_accounts, account);
 		gaim_gtk_blist_update_account_error_state(account, NULL);
-		if (g_hash_table_size(errored_accounts) == 0)
-			gtk_gaim_status_box_set_error(GTK_GAIM_STATUS_BOX(gtkblist->statusbox), NULL);
 	}
 }
 
@@ -146,7 +144,6 @@
 static void
 gaim_gtk_connection_report_disconnect(GaimConnection *gc, const char *text)
 {
-	GaimGtkBuddyList *gtkblist = gaim_gtk_blist_get_default_gtk_blist();
 	GaimAccount *account = NULL;
 	GaimAutoRecon *info;
 	GSList* errored_account;
@@ -157,9 +154,6 @@
 
 	gaim_gtk_blist_update_account_error_state(account, text);
 	if (!gc->wants_to_die) {
-		if (gtkblist != NULL)
-			gtk_gaim_status_box_set_error(GTK_GAIM_STATUS_BOX(gtkblist->statusbox), text);
-
 		if (info == NULL) {
 			info = g_new0(GaimAutoRecon, 1);
 			g_hash_table_insert(hash, account, info);
@@ -235,14 +229,6 @@
 	{
 		g_hash_table_remove(errored_accounts, account);
 		gaim_gtk_blist_update_account_error_state(account, NULL);
-		if (g_hash_table_size(errored_accounts) == 0)
-		{
-			GaimGtkBuddyList *gtkblist;
-
-			gtkblist = gaim_gtk_blist_get_default_gtk_blist();
-			if (gtkblist != NULL)
-				gtk_gaim_status_box_set_error(GTK_GAIM_STATUS_BOX(gtkblist->statusbox), NULL);
-		}
 	}
 }