changeset 19055:e5981fc8733f

- Code cosmetics
author William Ehlhardt <williamehlhardt@gmail.com>
date Sat, 28 Jul 2007 08:27:01 +0000
parents ffeb39523eb6
children 9e747806bb07
files pidgin/gtkcertmgr.c
diffstat 1 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkcertmgr.c	Sat Jul 28 08:24:55 2007 +0000
+++ b/pidgin/gtkcertmgr.c	Sat Jul 28 08:27:01 2007 +0000
@@ -148,6 +148,7 @@
 
 	/* This block of variables will end up in tpm_dat */
 	GtkTreeView *listview;
+	GtkTreeSelection *select;
 	GtkWidget *importbutton;
 	GtkWidget *exportbutton;
 	GtkWidget *infobutton;
@@ -177,7 +178,6 @@
 	{
 		GtkCellRenderer *renderer;
 		GtkTreeViewColumn *column;
-		GtkTreeSelection *select;
 
 		/* Set up the display columns */
 		renderer = gtk_cell_renderer_text_new();
@@ -187,15 +187,15 @@
 			"text", TPM_HOSTNAME_COLUMN,
 			NULL);
 		gtk_tree_view_append_column(GTK_TREE_VIEW(listview), column);
-
-		/* Get the treeview selector into the struct */
-		tpm_dat->listselect = select =
-			gtk_tree_view_get_selection(GTK_TREE_VIEW(listview));
-		
-		/* Force the selection mode */
-		gtk_tree_selection_set_mode(select, GTK_SELECTION_SINGLE);
 	}
 	
+	/* Get the treeview selector into the struct */
+	tpm_dat->listselect = select =
+		gtk_tree_view_get_selection(GTK_TREE_VIEW(listview));
+	
+	/* Force the selection mode */
+	gtk_tree_selection_set_mode(select, GTK_SELECTION_SINGLE);
+	
 	gtk_box_pack_start(GTK_BOX(mgmt_widget), GTK_WIDGET(listview),
 			   TRUE, TRUE, /* Take up lots of space */
 			   0); /* TODO: this padding is wrong */