From 7595a6a4adc6a3e75b1c042efa88ba8769fe63d8 Mon Sep 17 00:00:00 2001 From: Claudio Saavedra Date: Wed, 7 Mar 2012 14:25:54 +0200 Subject: ephy-hosts-store: sort the model by URL This puts "Others" to the beginning of the list and the rest alphanumerically sorted. --- lib/widgets/ephy-hosts-store.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/widgets/ephy-hosts-store.c b/lib/widgets/ephy-hosts-store.c index 77d6a9343..ed76072e6 100644 --- a/lib/widgets/ephy-hosts-store.c +++ b/lib/widgets/ephy-hosts-store.c @@ -42,6 +42,9 @@ ephy_hosts_store_init (EphyHostsStore *self) gtk_list_store_set_column_types (GTK_LIST_STORE (self), EPHY_HOSTS_STORE_N_COLUMNS, types); + gtk_tree_sortable_set_sort_column_id (GTK_TREE_SORTABLE (self), + EPHY_HOSTS_STORE_COLUMN_ADDRESS, + GTK_SORT_ASCENDING); } EphyHostsStore * -- cgit v1.2.3