comparison src/gtkconn.c @ 13015:2d71d4081e06

[gaim-migrate @ 15368] Alright, no beta tonight, I need sleep :-( We'll do it soon. Here's my implementation for connection error reporting. It's currently ugly, but I think you'll get the idea. Is this acceptable to people? I might not have a lot of time to finish this up on Monday. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Mon, 23 Jan 2006 08:08:33 +0000
parents 5efbb0162f86
children 6728a282269b
comparison
equal deleted inserted replaced
13014:5efbb0162f86 13015:2d71d4081e06
82 g_hash_table_remove(hash, account); 82 g_hash_table_remove(hash, account);
83 83
84 if (g_hash_table_size(errored_accounts) > 0) 84 if (g_hash_table_size(errored_accounts) > 0)
85 { 85 {
86 g_hash_table_remove(errored_accounts, account); 86 g_hash_table_remove(errored_accounts, account);
87 gaim_gtk_blist_update_account_error_state(account, NULL);
87 if (g_hash_table_size(errored_accounts) == 0) 88 if (g_hash_table_size(errored_accounts) == 0)
88 gtk_gaim_status_box_set_error(GTK_GAIM_STATUS_BOX(gtkblist->statusbox), NULL); 89 gtk_gaim_status_box_set_error(GTK_GAIM_STATUS_BOX(gtkblist->statusbox), NULL);
89 } 90 }
90 } 91 }
91 92
153 account = gaim_connection_get_account(gc); 154 account = gaim_connection_get_account(gc);
154 info = g_hash_table_lookup(hash, account); 155 info = g_hash_table_lookup(hash, account);
155 errored_account = g_hash_table_lookup(errored_accounts, account); 156 errored_account = g_hash_table_lookup(errored_accounts, account);
156 157
157 if (!gc->wants_to_die) { 158 if (!gc->wants_to_die) {
159 gaim_gtk_blist_update_account_error_state(account, text);
158 if (gtkblist != NULL) 160 if (gtkblist != NULL)
159 gtk_gaim_status_box_set_error(GTK_GAIM_STATUS_BOX(gtkblist->statusbox), text); 161 gtk_gaim_status_box_set_error(GTK_GAIM_STATUS_BOX(gtkblist->statusbox), text);
160 162
161 if (info == NULL) { 163 if (info == NULL) {
162 info = g_new0(GaimAutoRecon, 1); 164 info = g_new0(GaimAutoRecon, 1);
230 g_hash_table_remove(hash, account); 232 g_hash_table_remove(hash, account);
231 233
232 if (g_hash_table_size(errored_accounts) > 0) 234 if (g_hash_table_size(errored_accounts) > 0)
233 { 235 {
234 g_hash_table_remove(errored_accounts, account); 236 g_hash_table_remove(errored_accounts, account);
237 gaim_gtk_blist_update_account_error_state(account, NULL);
235 if (g_hash_table_size(errored_accounts) == 0) 238 if (g_hash_table_size(errored_accounts) == 0)
236 { 239 {
237 GaimGtkBuddyList *gtkblist; 240 GaimGtkBuddyList *gtkblist;
238 241
239 gtkblist = gaim_gtk_blist_get_default_gtk_blist(); 242 gtkblist = gaim_gtk_blist_get_default_gtk_blist();