diff pidgin/gtkcertmgr.c @ 19043:8026af6fbb3b

- 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)
author William Ehlhardt <williamehlhardt@gmail.com>
date Fri, 27 Jul 2007 04:38:56 +0000
parents 276c4b70d9cb
children 78f185af7952
line wrap: on
line diff
--- 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,