changeset 1147:aef9aa10e0c0 trunk

[svn] - hookup buffer size option
author nenolod
date Sun, 04 Jun 2006 21:28:53 -0700
parents 7e208feb36a2
children ae39b599cd25
files audacious/glade/prefswin.glade audacious/main.c audacious/prefswin.c
diffstat 3 files changed, 18 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/audacious/glade/prefswin.glade	Sun Jun 04 21:21:33 2006 -0700
+++ b/audacious/glade/prefswin.glade	Sun Jun 04 21:28:53 2006 -0700
@@ -3338,7 +3338,7 @@
 			      </child>
 
 			      <child>
-				<widget class="GtkSpinButton" id="spinbutton1">
+				<widget class="GtkSpinButton" id="output_plugin_bufsize">
 				  <property name="visible">True</property>
 				  <property name="can_focus">True</property>
 				  <property name="climb_rate">1</property>
@@ -3348,6 +3348,8 @@
 				  <property name="snap_to_ticks">False</property>
 				  <property name="wrap">False</property>
 				  <property name="adjustment">0 0 100 1 10 10</property>
+				  <signal name="realize" handler="on_output_plugin_bufsize_realize" after="yes" last_modification_time="Mon, 05 Jun 2006 04:28:43 GMT"/>
+				  <signal name="value_changed" handler="on_output_plugin_bufsize_value_changed" last_modification_time="Mon, 05 Jun 2006 04:28:51 GMT"/>
 				</widget>
 				<packing>
 				  <property name="left_attach">1</property>
--- a/audacious/main.c	Sun Jun 04 21:21:33 2006 -0700
+++ b/audacious/main.c	Sun Jun 04 21:28:53 2006 -0700
@@ -195,6 +195,7 @@
     3,                          /* scroll pl by */
     FALSE,                      /* resume playback on startup */
     -1,                         /* resume playback on startup time */
+    TRUE,			/* show seperators in pl */
     NULL,
     NULL,
     3000,
--- a/audacious/prefswin.c	Sun Jun 04 21:21:33 2006 -0700
+++ b/audacious/prefswin.c	Sun Jun 04 21:28:53 2006 -0700
@@ -1434,9 +1434,19 @@
     effect_about(id);
 }
 
-
+static void
+on_output_plugin_bufsize_realize(GtkSpinButton *button,
+				 gpointer data)
+{
+    gtk_spin_button_set_value(button, cfg.output_buffer_size);
+}
 
-
+static void
+on_output_plugin_bufsize_value_changed(GtkSpinButton *button,
+				 gpointer data)
+{
+    cfg.output_buffer_size = gtk_spin_button_get_value_as_int(button);
+}
 
 static void
 on_mouse_wheel_volume_realize(GtkSpinButton * button,
@@ -2011,6 +2021,8 @@
     FUNC_MAP_ENTRY(on_chardet_detector_cbox_changed)
     FUNC_MAP_ENTRY(on_chardet_fallback_realize)
     FUNC_MAP_ENTRY(on_chardet_fallback_changed)
+    FUNC_MAP_ENTRY(on_output_plugin_bufsize_realize)
+    FUNC_MAP_ENTRY(on_output_plugin_bufsize_value_changed)
 FUNC_MAP_END
 
 void