summaryrefslogtreecommitdiff
path: root/plugins/gtkui/gtkui.c
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2012-11-16 20:06:50 +0100
committerGravatar waker <wakeroid@gmail.com>2012-11-16 20:06:50 +0100
commit1e2be37d17419a97289b33cd9d50142241cecbe0 (patch)
tree504d3ae5b12146d28ab0c267697160cd6c189986 /plugins/gtkui/gtkui.c
parent436fdc5411f4d91ad289615364a3b9424202bfbb (diff)
hotkeys WIP
Diffstat (limited to 'plugins/gtkui/gtkui.c')
-rw-r--r--plugins/gtkui/gtkui.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/plugins/gtkui/gtkui.c b/plugins/gtkui/gtkui.c
index 762b1371..fc80f268 100644
--- a/plugins/gtkui/gtkui.c
+++ b/plugins/gtkui/gtkui.c
@@ -1083,6 +1083,7 @@ gtkui_thread (void *ctx) {
deadbeef->conf_set_str ("hotkey.key7", "\"Ctrl m\" 0 0 toggle_stop_after_current");
deadbeef->conf_set_str ("hotkey.key8", "\"Ctrl j\" 0 0 jump_to_current_track");
deadbeef->conf_set_str ("hotkey.key9", "\"F1\" 0 0 help");
+ deadbeef->conf_set_str ("hotkey.key11", "\"Delete\" 1 0 remove_from_playlist");
}
// construct mainwindow widgets
@@ -1579,12 +1580,29 @@ static DB_plugin_action_t action_sort_custom = {
.next = &action_preferences
};
+static DB_plugin_action_t action_crop_selected = {
+ .title = "Edit/[stub] Crop Selected",
+ .name = "crop_selected",
+ .flags = DB_ACTION_COMMON,
+ .callback = NULL,
+ .next = &action_sort_custom
+};
+
+static DB_plugin_action_t action_remove_from_playlist = {
+ .title = "Edit/Remove from current playlist",
+ .name = "remove_from_playlist",
+ .flags = DB_ACTION_MULTIPLE_TRACKS,
+ .callback = action_remove_from_playlist_handler,
+ .next = &action_crop_selected
+};
+
+
static DB_plugin_action_t action_save_playlist = {
.title = "File/[stub] Save Playlist",
.name = "save_playlist",
.flags = DB_ACTION_COMMON,
.callback = NULL,
- .next = &action_sort_custom
+ .next = &action_remove_from_playlist
};
static DB_plugin_action_t action_load_playlist = {