From: Dale Whittaker Date: Mon, 15 Dec 2008 19:12:51 +0000 (+0100) Subject: Actually remove history items with the Delete tool button X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0fb55faf377fda83d24547431d29acb36b1b7888;p=midori Actually remove history items with the Delete tool button --- diff --git a/midori/midori-browser.c b/midori/midori-browser.c index 6431e849..4bc3ec5c 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -2491,6 +2491,7 @@ midori_browser_model_remove_item (GtkTreeModel* model, { GtkTreeIter child_iter; KatzeItem* child; + KatzeArray* parent; gint i, n; if (KATZE_IS_ARRAY (item)) @@ -2504,6 +2505,11 @@ midori_browser_model_remove_item (GtkTreeModel* model, while (gtk_tree_model_iter_nth_child (model, &child_iter, iter, 0)) gtk_tree_store_remove (GTK_TREE_STORE (model), &child_iter); } + else + { + parent = katze_item_get_parent (item); + katze_array_remove_item (parent, item); + } gtk_tree_store_remove (GTK_TREE_STORE (model), iter); g_object_unref (item);