# HG changeset patch # User William Ehlhardt # Date 1185511136 0 # Node ID 8026af6fbb3b7c12cb793fe57da8db85fce200b6 # Parent 276c4b70d9cbee8df0807a73c141dc841b5b8a98 - Specify the selection mode on the tls_peers_mgmt listview (may not be necessary, but I can't find any guarantees of what the default is in the documentation) diff -r 276c4b70d9cb -r 8026af6fbb3b pidgin/gtkcertmgr.c --- a/pidgin/gtkcertmgr.c Fri Jul 27 00:42:51 2007 +0000 +++ b/pidgin/gtkcertmgr.c Fri Jul 27 04:38:56 2007 +0000 @@ -119,7 +119,9 @@ { GtkCellRenderer *renderer; GtkTreeViewColumn *column; + GtkTreeSelection *select; + /* Set up the display columns */ renderer = gtk_cell_renderer_text_new(); column = gtk_tree_view_column_new_with_attributes( "Hostname", @@ -127,6 +129,10 @@ "text", TPM_HOSTNAME_COLUMN, NULL); gtk_tree_view_append_column(GTK_TREE_VIEW(listview), column); + + /* Force the selection mode */ + select = gtk_tree_view_get_selection(GTK_TREE_VIEW(listview)); + gtk_tree_selection_set_mode(select, GTK_SELECTION_SINGLE); } gtk_box_pack_start(GTK_BOX(mgmt_widget), listview,