]> spindle.queued.net Git - midori/commitdiff
Fix hashtable lookup of the location completion
authorDale Whittaker <dayul@users.sf.net>
Wed, 12 Aug 2009 21:58:38 +0000 (23:58 +0200)
committerChristian Dywan <christian@twotoasts.de>
Wed, 12 Aug 2009 22:27:48 +0000 (00:27 +0200)
midori/midori-locationaction.c

index c9745866ae1204c21a6585dc9bf6c05dffc59dd7..a55f252ccbb714f34ff97f7a446853b869b6ad06 100644 (file)
@@ -312,6 +312,10 @@ midori_location_action_thaw (MidoriLocationAction* location_action)
     g_return_if_fail (MIDORI_IS_LOCATION_ACTION (location_action));
     g_return_if_fail (midori_location_action_is_frozen (location_action));
 
+    gtk_tree_sortable_set_sort_column_id (
+        GTK_TREE_SORTABLE (location_action->model),
+        VISITS_COL, GTK_SORT_DESCENDING);
+
     filter_model = gtk_tree_model_filter_new (location_action->model, NULL);
     gtk_tree_model_filter_set_visible_column (
         GTK_TREE_MODEL_FILTER (filter_model), VISIBLE_COL);
@@ -333,8 +337,6 @@ midori_location_action_create_model (void)
     GtkTreeModel* model = (GtkTreeModel*) gtk_list_store_new (N_COLS,
         GDK_TYPE_PIXBUF, G_TYPE_STRING, G_TYPE_STRING,
         G_TYPE_INT, G_TYPE_BOOLEAN, G_TYPE_FLOAT);
-    gtk_tree_sortable_set_sort_column_id (GTK_TREE_SORTABLE (model),
-        VISITS_COL, GTK_SORT_DESCENDING);
     return model;
 }