Mercurial > pidgin
comparison src/gtkconn.c @ 11560:c3bbfca00e85
[gaim-migrate @ 13824]
And don't report those errors in the statusbox
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Tue, 20 Sep 2005 23:48:20 +0000 |
parents | 5909ea4e7746 |
children | a9c4e139645f |
comparison
equal
deleted
inserted
replaced
11559:5909ea4e7746 | 11560:c3bbfca00e85 |
---|---|
139 GaimGtkBuddyList *list = gaim_gtk_blist_get_default_gtk_blist(); | 139 GaimGtkBuddyList *list = gaim_gtk_blist_get_default_gtk_blist(); |
140 GaimAccount *account = NULL; | 140 GaimAccount *account = NULL; |
141 GaimAutoRecon *info; | 141 GaimAutoRecon *info; |
142 GSList* listAccount; | 142 GSList* listAccount; |
143 | 143 |
144 gtk_gaim_status_box_set_error(GTK_GAIM_STATUS_BOX(list->statusbox), text); | |
145 if (hash == NULL) { | 144 if (hash == NULL) { |
146 hash = g_hash_table_new_full(g_int_hash, g_int_equal, NULL, | 145 hash = g_hash_table_new_full(g_int_hash, g_int_equal, NULL, |
147 free_auto_recon); | 146 free_auto_recon); |
148 } | 147 } |
149 account = gaim_connection_get_account(gc); | 148 account = gaim_connection_get_account(gc); |
152 listAccount = g_slist_find(accountReconnecting, account); | 151 listAccount = g_slist_find(accountReconnecting, account); |
153 else | 152 else |
154 listAccount = NULL; | 153 listAccount = NULL; |
155 | 154 |
156 if (!gc->wants_to_die) { | 155 if (!gc->wants_to_die) { |
157 if (info == NULL) { | 156 gtk_gaim_status_box_set_error(GTK_GAIM_STATUS_BOX(list->statusbox), text); |
157 | |
158 if (info == NULL) { | |
158 info = g_new0(GaimAutoRecon, 1); | 159 info = g_new0(GaimAutoRecon, 1); |
159 g_hash_table_insert(hash, account, info); | 160 g_hash_table_insert(hash, account, info); |
160 info->delay = INITIAL_RECON_DELAY; | 161 info->delay = INITIAL_RECON_DELAY; |
161 } else { | 162 } else { |
162 info->delay = MIN(2 * info->delay, MAX_RECON_DELAY); | 163 info->delay = MIN(2 * info->delay, MAX_RECON_DELAY); |