diff options
author | waker <wakeroid@gmail.com> | 2012-11-24 13:30:22 +0100 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2012-11-24 13:30:22 +0100 |
commit | 5bfdd5e0c4021ff0dd3f5670bce335465350c3b3 (patch) | |
tree | 02d41e3cd653edce6f8eb45903d88d283c52407b /plugins/gtkui/actionhandlers.c | |
parent | 7bcde9ee91093fc791a246e3dd06bb2d4f499911 (diff) |
gtkui: added loopmode hotkeys
Diffstat (limited to 'plugins/gtkui/actionhandlers.c')
-rw-r--r-- | plugins/gtkui/actionhandlers.c | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/plugins/gtkui/actionhandlers.c b/plugins/gtkui/actionhandlers.c index d3d80082..04386cca 100644 --- a/plugins/gtkui/actionhandlers.c +++ b/plugins/gtkui/actionhandlers.c @@ -932,3 +932,36 @@ action_hide_eq_handler(DB_plugin_action_t *act, int ctx) { return 0; } +gboolean +action_playback_loop_off_handler_cb (void *data) { + gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (lookup_widget (mainwin, "loop_disable")), 1); +} + +int +action_playback_loop_off_handler(DB_plugin_action_t *act, int ctx) { + g_idle_add (action_playback_loop_off_handler_cb, NULL); + return 0; +} + +gboolean +action_playback_loop_single_handler_cb (void *data) { + gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (lookup_widget (mainwin, "loop_single")), 1); +} + +int +action_playback_loop_single_handler(DB_plugin_action_t *act, int ctx) { + g_idle_add (action_playback_loop_single_handler_cb, NULL); + return 0; +} + +gboolean +action_playback_loop_all_handler_cb (void *data) { + gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (lookup_widget (mainwin, "loop_all")), 1); +} + +int +action_playback_loop_all_handler(DB_plugin_action_t *act, int ctx) { + g_idle_add (action_playback_loop_all_handler_cb, NULL); + return 0; +} + |