aboutsummaryrefslogtreecommitdiffstats
path: root/lib/widgets
diff options
context:
space:
mode:
authorClaudio Saavedra <csaavedra@igalia.com>2012-03-07 20:25:54 +0800
committerClaudio Saavedra <csaavedra@igalia.com>2012-03-07 20:27:29 +0800
commit7595a6a4adc6a3e75b1c042efa88ba8769fe63d8 (patch)
tree9b47a418e02e52ea2e46bf820686055321dc39a6 /lib/widgets
parentbbdcd43032a808f81a1a04e694e92a33526b4fe6 (diff)
downloadgsoc2013-epiphany-7595a6a4adc6a3e75b1c042efa88ba8769fe63d8.tar.gz
gsoc2013-epiphany-7595a6a4adc6a3e75b1c042efa88ba8769fe63d8.tar.zst
gsoc2013-epiphany-7595a6a4adc6a3e75b1c042efa88ba8769fe63d8.zip
ephy-hosts-store: sort the model by URL
This puts "Others" to the beginning of the list and the rest alphanumerically sorted.
Diffstat (limited to 'lib/widgets')
-rw-r--r--lib/widgets/ephy-hosts-store.c3
1 files changed, 3 insertions, 0 deletions
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 *