summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2012-08-17 20:47:26 +0200
committerGravatar waker <wakeroid@gmail.com>2012-08-17 20:47:26 +0200
commitc05c9b5fec01fa9c1075d5fc7536a72d72045f13 (patch)
treeb21cf5c3a6f289f78c1f4f55e490d197e8a4788e /plugins
parent2b2913ec01412bd5d931f0d86e30f3469b078c82 (diff)
gtkui: menu key support in playlist
Diffstat (limited to 'plugins')
-rw-r--r--plugins/gtkui/ddblistview.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/gtkui/ddblistview.c b/plugins/gtkui/ddblistview.c
index 38b23589..d0265fec 100644
--- a/plugins/gtkui/ddblistview.c
+++ b/plugins/gtkui/ddblistview.c
@@ -1984,6 +1984,20 @@ ddb_listview_handle_keypress (DdbListview *ps, int keyval, int state) {
ps->binding->delete_selected ();
cursor = ps->binding->cursor ();
}
+ 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 0;
+ }
else {
return 0;
}