changeset 1967:00db92cf9bfe trunk

[svn] - add code for the shuffle checkbox
author nenolod
date Sun, 12 Nov 2006 05:49:04 -0800
parents fcf3900d05b9
children b5fe3edc3fac
files ChangeLog audacious/newui/newui_window.c
diffstat 2 files changed, 23 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sun Nov 12 05:38:48 2006 -0800
+++ b/ChangeLog	Sun Nov 12 05:49:04 2006 -0800
@@ -1,3 +1,11 @@
+2006-11-12 13:38:48 +0000  William Pitcock <nenolod@nenolod.net>
+  revision [2907]
+  - temporarily display the newui at startup along with the oldui
+  
+  trunk/audacious/main.c |   11 ++++++++++-
+  1 file changed, 10 insertions(+), 1 deletion(-)
+
+
 2006-11-12 13:38:04 +0000  William Pitcock <nenolod@nenolod.net>
   revision [2905]
   - add some more controls (seekbar and such)
--- a/audacious/newui/newui_window.c	Sun Nov 12 05:38:48 2006 -0800
+++ b/audacious/newui/newui_window.c	Sun Nov 12 05:49:04 2006 -0800
@@ -197,3 +197,18 @@
 
         g_free(fullpath);
 }
+
+/* ********** signals ********** */
+
+void
+on_newui_shuffle_cb_realize(GtkToggleButton *button, gpointer data)
+{
+	gtk_toggle_button_set_active(button, cfg.shuffle);
+}
+
+void
+on_newui_shuffle_cb_toggled(GtkToggleButton *button, gpointer data)
+{
+	cfg.shuffle = gtk_toggle_button_get_active(button);
+	mainwin_shuffle_pushed(cfg.shuffle);
+}