[epiphany] ephy-hosts-store: sort the model by URL



commit 7595a6a4adc6a3e75b1c042efa88ba8769fe63d8
Author: Claudio Saavedra <csaavedra igalia com>
Date:   Wed Mar 7 14:25:54 2012 +0200

    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 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/lib/widgets/ephy-hosts-store.c b/lib/widgets/ephy-hosts-store.c
index 77d6a93..ed76072 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 *



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]