diff options
author | waker <wakeroid@gmail.com> | 2010-12-12 19:48:14 +0100 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2010-12-12 19:48:14 +0100 |
commit | 05b8e93059778fafb922846a2f8b516db94deaf6 (patch) | |
tree | 7841df002ed07a6628f137aa138edd47e5de75d4 /plugins/gtkui/callbacks.c | |
parent | 5a4aeb4e31115e65f07613fa854d9638592cbaf3 (diff) |
added support for shuffle albums
Diffstat (limited to 'plugins/gtkui/callbacks.c')
-rw-r--r-- | plugins/gtkui/callbacks.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/plugins/gtkui/callbacks.c b/plugins/gtkui/callbacks.c index e7f6f77c..a601b205 100644 --- a/plugins/gtkui/callbacks.c +++ b/plugins/gtkui/callbacks.c @@ -345,7 +345,7 @@ void on_order_linear_activate (GtkMenuItem *menuitem, gpointer user_data) { - deadbeef->conf_set_int ("playback.order", 0); + deadbeef->conf_set_int ("playback.order", PLAYBACK_ORDER_LINEAR); } @@ -353,15 +353,21 @@ void on_order_shuffle_activate (GtkMenuItem *menuitem, gpointer user_data) { - deadbeef->conf_set_int ("playback.order", 1); + deadbeef->conf_set_int ("playback.order", PLAYBACK_ORDER_SHUFFLE_TRACKS); } +void +on_order_shuffle_albums_activate (GtkMenuItem *menuitem, + gpointer user_data) +{ + deadbeef->conf_set_int ("playback.order", PLAYBACK_ORDER_SHUFFLE_ALBUMS); +} void on_order_random_activate (GtkMenuItem *menuitem, gpointer user_data) { - deadbeef->conf_set_int ("playback.order", 2); + deadbeef->conf_set_int ("playback.order", PLAYBACK_ORDER_RANDOM); } @@ -1180,4 +1186,3 @@ encoder_cmdline_help_link_create (gchar *widget_name, gchar *string1, gchar *str GtkWidget *link = gtk_link_button_new_with_label ("http://sourceforge.net/apps/mediawiki/deadbeef/index.php?title=Encoder_Command_Line", "Help"); return link; } - |