From: Alexander Butenko Date: Fri, 2 Jul 2010 04:01:39 +0000 (-0400) Subject: Remove separator when expanding bookmark folders X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8306424277ad031f5c5bda3794caeb95036482b2;p=midori Remove separator when expanding bookmark folders --- diff --git a/panels/midori-bookmarks.c b/panels/midori-bookmarks.c index 4d8985d4..286524ca 100644 --- a/panels/midori-bookmarks.c +++ b/panels/midori-bookmarks.c @@ -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