[Xfce4-commits] <midori:master> Remove separator when expanding bookmark folders

Christian Dywan noreply at xfce.org
Fri Jul 2 23:36:03 CEST 2010


Updating branch refs/heads/master
         to 8306424277ad031f5c5bda3794caeb95036482b2 (commit)
       from 93b0b9029ba241614d60cf0fead7be0d68a31618 (commit)

commit 8306424277ad031f5c5bda3794caeb95036482b2
Author: Alexander Butenko <a.butenka at gmail.com>
Date:   Fri Jul 2 00:01:39 2010 -0400

    Remove separator when expanding bookmark folders

 panels/midori-bookmarks.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/panels/midori-bookmarks.c b/panels/midori-bookmarks.c
index 4d8985d..286524c 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



More information about the Xfce4-commits mailing list