Mercurial > pidgin
changeset 7552:83453431d722
[gaim-migrate @ 8166]
A much appreciated patch from Daniel "Guru of the Reconnect Dialog" Atallah
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 18 Nov 2003 04:01:23 +0000 |
parents | 2dfbcda49e65 |
children | 7d95978b07d9 |
files | src/gtkconn.c |
diffstat | 1 files changed, 8 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkconn.c Tue Nov 18 03:32:17 2003 +0000 +++ b/src/gtkconn.c Tue Nov 18 04:01:23 2003 +0000 @@ -289,7 +289,6 @@ GtkTreeSelection *sel = NULL; GtkTreeModel *model = NULL; GaimAccount *account = NULL; - GaimConnection *gc = NULL; switch(id) { case GTK_RESPONSE_DELETE_EVENT: @@ -314,18 +313,16 @@ } gtk_tree_model_get_value(model, &iter, 4, &val); account = g_value_get_pointer(&val); - gc = gaim_account_connect(account); g_value_unset(&val); - if (gaim_connection_get_state(gc) != GAIM_DISCONNECTED) { - gtk_list_store_remove(GTK_LIST_STORE(model), &iter); - if (!gtk_tree_model_get_iter_first(model, &iter)) - disconnect_window_hide(); - else { - gtk_tree_selection_select_iter(sel, &iter); - if (!gtk_tree_model_iter_next(model, &iter)) - gtk_widget_hide_all(disconnect_window->sw); - } + gtk_list_store_remove(GTK_LIST_STORE(model), &iter); + if (!gtk_tree_model_get_iter_first(model, &iter)) + disconnect_window_hide(); + else { + gtk_tree_selection_select_iter(sel, &iter); + if (!gtk_tree_model_iter_next(model, &iter)) + gtk_widget_hide_all(disconnect_window->sw); } + gaim_account_connect(account); break; } }