[Xfce4-commits] <midori:master> Make Delete key in bookmark panel the same as menu item

Christian Dywan noreply at xfce.org
Mon Nov 22 03:50:02 CET 2010


Updating branch refs/heads/master
         to 93c483c9043193a2ff71018fbe1b23c3e254f268 (commit)
       from 6246987ba8e866371615363d6de14d3b83167d04 (commit)

commit 93c483c9043193a2ff71018fbe1b23c3e254f268
Author: Christian Dywan <christian at twotoasts.de>
Date:   Sun Nov 21 16:25:27 2010 +0100

    Make Delete key in bookmark panel the same as menu item

 panels/midori-bookmarks.c |   19 ++-----------------
 1 files changed, 2 insertions(+), 17 deletions(-)

diff --git a/panels/midori-bookmarks.c b/panels/midori-bookmarks.c
index b843e4f..4933f46 100644
--- a/panels/midori-bookmarks.c
+++ b/panels/midori-bookmarks.c
@@ -777,23 +777,8 @@ midori_bookmarks_key_release_event_cb (GtkWidget*       widget,
                                        GdkEventKey*     event,
                                        MidoriBookmarks* bookmarks)
 {
-    GtkTreeModel* model;
-    GtkTreeIter iter;
-
-    if (event->keyval != GDK_Delete)
-        return FALSE;
-
-    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);
-
-        g_object_unref (item);
-    }
+    if (event->keyval == GDK_Delete)
+        midori_bookmarks_delete_clicked_cb (widget, bookmarks);
 
     return FALSE;
 }



More information about the Xfce4-commits mailing list