diff options
author | 2012-11-23 23:37:57 +0100 | |
---|---|---|
committer | 2012-11-23 23:37:57 +0100 | |
commit | 6e791c9fb449c0da4f8606db1cc5a477ad5742ec (patch) | |
tree | 4529e0131a1161e78234e219e3a01210b3f2391c /plugins/gtkui/actionhandlers.c | |
parent | 7c29cb0c857496e4a7c9c2980c4277b88d187c6f (diff) |
gtkui: added crop selected hotkey
Diffstat (limited to 'plugins/gtkui/actionhandlers.c')
-rw-r--r-- | plugins/gtkui/actionhandlers.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/gtkui/actionhandlers.c b/plugins/gtkui/actionhandlers.c index 4c08f070..e3be709a 100644 --- a/plugins/gtkui/actionhandlers.c +++ b/plugins/gtkui/actionhandlers.c @@ -876,3 +876,11 @@ action_sort_custom_handler (DB_plugin_action_t *act, int ctx) { gdk_threads_add_idle (action_sort_custom_handler_cb, NULL); return 0; } + +int +action_crop_selected_handler (DB_plugin_action_t *act, int ctx) { + deadbeef->pl_crop_selected (); + deadbeef->pl_save_all (); + deadbeef->sendmessage (DB_EV_PLAYLISTCHANGED, 0, 0, 0); + return 0; +} |