]> spindle.queued.net Git - midori/commitdiff
Make the Delete key delete history entries again
authorAlexander Butenko <a.butenka@gmail.com>
Wed, 3 Feb 2010 21:15:49 +0000 (22:15 +0100)
committerChristian Dywan <christian@twotoasts.de>
Wed, 3 Feb 2010 21:15:49 +0000 (22:15 +0100)
panels/midori-history.c

index 1c6f748c34dc33a692c36664d593ab8c103726ca..a50b7d8a2e5f18b5f69534bc460098c3a4845f29 100644 (file)
@@ -768,13 +768,10 @@ midori_history_key_release_event_cb (GtkWidget*     widget,
     if (katze_tree_view_get_selected_iter (GTK_TREE_VIEW (widget), &model, &iter))
     {
         KatzeItem* item;
-        KatzeArray* parent;
 
         gtk_tree_model_get (model, &iter, 0, &item, -1);
-
-        parent = katze_item_get_parent (item);
-        katze_array_remove_item (parent, item);
-
+        midori_history_remove_item_from_db (history, item);
+        gtk_tree_store_remove (GTK_TREE_STORE (model), &iter);
         g_object_unref (item);
     }