diff pidgin/gtkcertmgr.c @ 19650:2604ae7c227b

Sort the certificates by hostname
author Mark Doliner <mark@kingant.net>
date Wed, 05 Sep 2007 06:24:35 +0000
parents 759273051b26
children 44b4e8bd759b
line wrap: on
line diff
--- a/pidgin/gtkcertmgr.c	Wed Sep 05 05:43:08 2007 +0000
+++ b/pidgin/gtkcertmgr.c	Wed Sep 05 06:24:35 2007 +0000
@@ -454,6 +454,9 @@
 			"text", TPM_HOSTNAME_COLUMN,
 			NULL);
 		gtk_tree_view_append_column(GTK_TREE_VIEW(listview), column);
+
+		gtk_tree_sortable_set_sort_column_id(GTK_TREE_SORTABLE(store),
+				TPM_HOSTNAME_COLUMN, GTK_SORT_ASCENDING);
 	}
 	
 	/* Get the treeview selector into the struct */