diff options
Diffstat (limited to 'plugins/gtkui/callbacks.c')
-rw-r--r-- | plugins/gtkui/callbacks.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/plugins/gtkui/callbacks.c b/plugins/gtkui/callbacks.c index 02abba62..761bd930 100644 --- a/plugins/gtkui/callbacks.c +++ b/plugins/gtkui/callbacks.c @@ -292,7 +292,7 @@ on_mainwin_key_press_event (GtkWidget *widget, gpointer user_data) { - if (event->keyval == GDK_n) { + if (event->keyval == GDK_n && !(event->state&(GDK_SHIFT_MASK|GDK_CONTROL_MASK|GDK_MOD1_MASK))) { // button for that one is not in toolbar anymore, so handle it manually deadbeef->sendmessage (M_PLAYRANDOM, 0, 0, 0); } @@ -1064,3 +1064,15 @@ on_invert_selection1_activate (GtkMenuItem *menuitem, ddb_listview_refresh (pl, DDB_REFRESH_LIST | DDB_EXPOSE_LIST); } + +void +on_new_playlist1_activate (GtkMenuItem *menuitem, + gpointer user_data) +{ + int pl = gtkui_add_new_playlist (); + if (pl != -1) { + deadbeef->plt_set_curr (pl); + deadbeef->conf_set_int ("playlist.current", pl); + } +} + |