changeset 22085:a2db27c84346

Fix CID #380 by using an assigned variable.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sat, 12 Jan 2008 07:31:25 +0000
parents b1a5385de557
children 1d02fa7737eb
files finch/gntroomlist.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/finch/gntroomlist.c	Sat Jan 12 05:37:12 2008 +0000
+++ b/finch/gntroomlist.c	Sat Jan 12 07:31:25 2008 +0000
@@ -287,10 +287,10 @@
 
 	froomlist.accounts = accounts = gnt_combo_box_new();
 	reset_account_list(account);
-	gnt_box_add_widget(GNT_BOX(window), froomlist.accounts);
-	g_signal_connect(G_OBJECT(froomlist.accounts), "selection-changed",
+	gnt_box_add_widget(GNT_BOX(window), accounts);
+	g_signal_connect(G_OBJECT(accounts), "selection-changed",
 			G_CALLBACK(roomlist_account_changed), NULL);
-	froomlist.account = gnt_combo_box_get_selected_data(GNT_COMBO_BOX(froomlist.accounts));
+	froomlist.account = gnt_combo_box_get_selected_data(GNT_COMBO_BOX(accounts));
 
 	froomlist.tree = tree = gnt_tree_new_with_columns(2);
 	gnt_tree_set_show_title(GNT_TREE(tree), TRUE);