Remove separator when expanding bookmark folders

This commit is contained in:
Alexander Butenko 2010-07-02 00:01:39 -04:00 committed by Christian Dywan
parent 93b0b9029b
commit 8306424277

View file

@ -166,9 +166,15 @@ midori_bookmarks_read_from_db_to_model (MidoriBookmarks* bookmarks,
const gchar* folder) const gchar* folder)
{ {
KatzeArray* array; KatzeArray* array;
gint last;
GtkTreeIter child;
array = midori_bookmarks_read_from_db (bookmarks, folder); array = midori_bookmarks_read_from_db (bookmarks, folder);
katze_bookmark_populate_tree_view (array, model, parent); 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 void