]> spindle.queued.net Git - midori/commitdiff
Remove separator when expanding bookmark folders
authorAlexander Butenko <a.butenka@gmail.com>
Fri, 2 Jul 2010 04:01:39 +0000 (00:01 -0400)
committerChristian Dywan <christian@twotoasts.de>
Fri, 2 Jul 2010 21:11:03 +0000 (23:11 +0200)
panels/midori-bookmarks.c

index 4d8985d4927098e799b39365143c3b52a79a9aeb..286524ca7b141b7211356a3cc2d32433b844bf78 100644 (file)
@@ -166,9 +166,15 @@ midori_bookmarks_read_from_db_to_model (MidoriBookmarks* bookmarks,
                                         const gchar*     folder)
 {
     KatzeArray* array;
+    gint last;
+    GtkTreeIter child;
 
     array = midori_bookmarks_read_from_db (bookmarks, folder);
     katze_bookmark_populate_tree_view (array, model, parent);
+    /* Remove invisible dummy row */
+    last = gtk_tree_model_iter_n_children (GTK_TREE_MODEL (model), parent);
+    gtk_tree_model_iter_nth_child (GTK_TREE_MODEL (model), &child, parent, last - 1);
+    gtk_tree_store_remove (model, &child);
 }
 
 void