# HG changeset patch # User William Ehlhardt # Date 1185611221 0 # Node ID e5981fc8733f3f102ca00e02ba7b7c4bd92f5b5b # Parent ffeb39523eb686ec1dea1c2af70f82636ab27488 - Code cosmetics diff -r ffeb39523eb6 -r e5981fc8733f pidgin/gtkcertmgr.c --- 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 */