summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <waker@users.sourceforge.net>2014-06-08 20:54:35 +0200
committerGravatar Alexey Yakovenko <waker@users.sourceforge.net>2014-06-08 20:54:35 +0200
commitf170ee5c4efacd42c0180da3b2c249a2a1a7b06e (patch)
tree84c187de3804981a8c9894b15f0d79ec178d4b07 /plugins
parent1fd01b19689e1328cf51cab4ebd350c9434a3396 (diff)
gtkui: remove unnecessary code which was handling Menu key for popup menu (this is handled by GTK popup-menu signal)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/gtkui/ddblistview.c14
1 files changed, 0 insertions, 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;
}