From f170ee5c4efacd42c0180da3b2c249a2a1a7b06e Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Sun, 8 Jun 2014 20:54:35 +0200 Subject: gtkui: remove unnecessary code which was handling Menu key for popup menu (this is handled by GTK popup-menu signal) --- plugins/gtkui/ddblistview.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/plugins/gtkui/ddblistview.c b/plugins/gtkui/ddblistview.c index 2e76f47d..2234643d 100644 --- a/plugins/gtkui/ddblistview.c +++ b/plugins/gtkui/ddblistview.c @@ -2079,20 +2079,6 @@ ddb_listview_handle_keypress (DdbListview *ps, int keyval, int state) { cursor = 0; gtk_range_set_value (GTK_RANGE (range), gtk_adjustment_get_lower (adj)); } - else if (keyval == GDK_Menu) { - DdbListviewIter it = ps->binding->head (); - while (it && !ps->binding->is_selected (it)) { - DdbListviewIter next = ps->binding->next (it); - ps->binding->unref (it); - it = next; - } - if (it) { - int sel = ps->binding->get_idx (it); - ps->binding->list_context_menu (ps, it, sel); - ps->binding->unref (it); - } - return TRUE; - } else { return FALSE; } -- cgit v1.2.3