# HG changeset patch # User Stu Tomlinson # Date 1116081966 0 # Node ID ceb530338123250ebd0b07454c61cdd57362f9a2 # Parent 0249b1ad63223d34861936676c859cf51336c703 [gaim-migrate @ 12673] Hopefully this will fix those annoying reconnect crashes, or at least some of them. Yay! committer: Tailor Script diff -r 0249b1ad6322 -r ceb530338123 src/gtkconn.c --- a/src/gtkconn.c Sat May 14 14:40:57 2005 +0000 +++ b/src/gtkconn.c Sat May 14 14:46:06 2005 +0000 @@ -118,13 +118,16 @@ * is more than one account then make sure the GtkTreeView is shown. * If there are no accounts disconnected then hide the dialog. */ -static void disconnect_window_update_buttons(GtkTreeModel *model) +static void disconnect_window_update_buttons() { GtkTreeIter iter; GtkTreeSelection *sel; + GtkTreeModel *model; char *label_text; GaimAccount *account = NULL; + model = gtk_tree_view_get_model(GTK_TREE_VIEW(disconnect_window->treeview)); + if ((disconnect_window == NULL) || (model == NULL)) return; @@ -229,7 +232,7 @@ } - disconnect_window_update_buttons(model); + disconnect_window_update_buttons(); break; @@ -280,7 +283,7 @@ } gaim_account_connect(account); - disconnect_window_update_buttons(model); + disconnect_window_update_buttons(); break; @@ -297,7 +300,7 @@ */ static void disconnect_tree_cb(GtkTreeSelection *sel, GtkTreeModel *model) { - disconnect_window_update_buttons(model); + disconnect_window_update_buttons(); } /* @@ -348,7 +351,7 @@ if (scale != NULL) g_object_unref(G_OBJECT(scale)); - disconnect_window_update_buttons(model); + disconnect_window_update_buttons(); } static void @@ -464,7 +467,7 @@ sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(disconnect_window->treeview)); gtk_tree_selection_select_iter(sel, &new_iter); - disconnect_window_update_buttons(GTK_TREE_MODEL(list_store)); + disconnect_window_update_buttons(); g_free(label_text); }