diff options
Diffstat (limited to 'plugins/gtkui/actionhandlers.c')
-rw-r--r-- | plugins/gtkui/actionhandlers.c | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/plugins/gtkui/actionhandlers.c b/plugins/gtkui/actionhandlers.c index 04386cca..b1f159fb 100644 --- a/plugins/gtkui/actionhandlers.c +++ b/plugins/gtkui/actionhandlers.c @@ -965,3 +965,46 @@ action_playback_loop_all_handler(DB_plugin_action_t *act, int ctx) { return 0; } +gboolean +action_playback_order_random_handler_cb (void *data) { + gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (lookup_widget (mainwin, "order_random")), 1); +} + +int +action_playback_order_random_handler(DB_plugin_action_t *act, int ctx) { + g_idle_add (action_playback_order_random_handler_cb, NULL); + return 0; +} + +gboolean +action_playback_order_shuffle_albums_handler_cb (void *data) { + gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (lookup_widget (mainwin, "order_shuffle_albums")), 1); +} + +int +action_playback_order_shuffle_albums_handler(DB_plugin_action_t *act, int ctx) { + g_idle_add (action_playback_order_shuffle_albums_handler_cb, NULL); + return 0; +} + +gboolean +action_playback_order_shuffle_handler_cb (void *data) { + gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (lookup_widget (mainwin, "order_shuffle")), 1); +} + +int +action_playback_order_shuffle_handler(DB_plugin_action_t *act, int ctx) { + g_idle_add (action_playback_order_shuffle_handler_cb, NULL); + return 0; +} + +gboolean +action_playback_order_linear_handler_cb (void *data) { + gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (lookup_widget (mainwin, "order_linear")), 1); +} + +int +action_playback_order_linear_handler(DB_plugin_action_t *act, int ctx) { + g_idle_add (action_playback_order_linear_handler_cb, NULL); + return 0; +} |