Mercurial > pidgin
diff src/gtkconn.c @ 12583:301e9f0841d7
[gaim-migrate @ 14911]
Brutally murdered the per-account statusboxes; but didn't come up with any
replacement
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Tue, 20 Dec 2005 22:57:54 +0000 |
parents | 7c7cb03e5475 |
children | 78048f8af66f |
line wrap: on
line diff
--- a/src/gtkconn.c Tue Dec 20 21:58:15 2005 +0000 +++ b/src/gtkconn.c Tue Dec 20 22:57:54 2005 +0000 @@ -48,25 +48,6 @@ static GHashTable *hash = NULL; static GSList *accountReconnecting = NULL; -static GtkGaimStatusBox * -find_status_box_for_account(GaimAccount *account) -{ - GaimGtkBuddyList *gtkblist; - GList *iter; - - gtkblist = gaim_gtk_blist_get_default_gtk_blist(); - if (!gtkblist) - return NULL; - - for (iter = gtkblist->statusboxes; iter; iter=iter->next) - { - GtkGaimStatusBox *box = iter->data; - if (box->account == account) - return box; - } - return NULL; -} - static void gaim_gtk_connection_connect_progress(GaimConnection *gc, const char *text, size_t step, size_t step_count) { @@ -77,13 +58,6 @@ gtk_gaim_status_box_set_connecting(GTK_GAIM_STATUS_BOX(gtkblist->statusbox), (gaim_connections_get_connecting() != NULL)); gtk_gaim_status_box_pulse_connecting(GTK_GAIM_STATUS_BOX(gtkblist->statusbox)); - - if ((box = find_status_box_for_account(gc->account)) != NULL) - { - gtk_gaim_status_box_set_error(box, NULL); - gtk_gaim_status_box_set_connecting(box, TRUE); - gtk_gaim_status_box_pulse_connecting(box); - } } static void gaim_gtk_connection_connected(GaimConnection *gc) @@ -97,12 +71,6 @@ (gaim_connections_get_connecting() != NULL)); account = gaim_connection_get_account(gc); - if ((box = find_status_box_for_account(account)) != NULL) - { - gtk_gaim_status_box_set_connecting(box, FALSE); - gtk_gaim_status_box_set_error(box, NULL); - } - if (hash != NULL) g_hash_table_remove(hash, account); if (accountReconnecting == NULL) @@ -119,8 +87,6 @@ return; gtk_gaim_status_box_set_connecting(GTK_GAIM_STATUS_BOX(gtkblist->statusbox), (gaim_connections_get_connecting() != NULL)); - gtk_gaim_status_box_set_connecting(find_status_box_for_account(gc->account), - FALSE); if (gaim_connections_get_all() != NULL) return; @@ -189,8 +155,7 @@ if (!gc->wants_to_die) { if (gtkblist != NULL) gtk_gaim_status_box_set_error(GTK_GAIM_STATUS_BOX(gtkblist->statusbox), text); - gtk_gaim_status_box_set_error(find_status_box_for_account(account), text); - + if (info == NULL) { info = g_new0(GaimAutoRecon, 1); g_hash_table_insert(hash, account, info);