changeset 10915:ceb530338123

[gaim-migrate @ 12673] Hopefully this will fix those annoying reconnect crashes, or at least some of them. Yay! committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Sat, 14 May 2005 14:46:06 +0000
parents 0249b1ad6322
children e52ec3cffff4
files src/gtkconn.c
diffstat 1 files changed, 9 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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);
 }