diff options
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; +} + |