From: <en...@ke...> - 2007-11-08 15:56:59
|
CVS Root: /cvs/gstreamer Module: gst-plugins-bad Changes by: ensonic Date: Thu Nov 08 2007 15:57:00 UTC Log message: * gst/equalizer/demo.c: Make default volume a bit less. Improve layout by giving more space to the slider with big-numbers and enable fill. Modified files: . : ChangeLog gst/equalizer : demo.c Links: http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-bad/ChangeLog.diff?r1=1.2846&r2=1.2847 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-bad/gst/equalizer/demo.c.diff?r1=1.2&r2=1.3 ====Begin Diffs==== Index: ChangeLog =================================================================== RCS file: /cvs/gstreamer/gst-plugins-bad/ChangeLog,v retrieving revision 1.2846 retrieving revision 1.2847 diff -u -d -r1.2846 -r1.2847 --- ChangeLog 7 Nov 2007 16:47:31 -0000 1.2846 +++ ChangeLog 8 Nov 2007 15:56:45 -0000 1.2847 @@ -1,3 +1,9 @@ +2007-11-08 Stefan Kost <en...@us...> + + * gst/equalizer/demo.c: + Make default volume a bit less. Improve layout by giving more space to + the slider with big-numbers and enable fill. 2007-11-07 Sebastian Dröge <sl...@ci...> * configure.ac: Index: demo.c RCS file: /cvs/gstreamer/gst-plugins-bad/gst/equalizer/demo.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- demo.c 3 Nov 2007 19:50:10 -0000 1.2 +++ demo.c 8 Nov 2007 15:56:46 -0000 1.3 @@ -132,8 +132,9 @@ bin = gst_pipeline_new ("bin"); + /* White noise */ src = gst_element_factory_make ("audiotestsrc", "src"); - g_object_set (G_OBJECT (src), "wave", 5, NULL); /* White noise */ + g_object_set (G_OBJECT (src), "wave", 5, "volume", 0.5, NULL); /* Force float32 samples */ capsfilter = gst_element_factory_make ("capsfilter", "capsfilter"); @@ -175,7 +176,7 @@ G_CALLBACK (on_configure_event), (gpointer) spectrum); gtk_box_pack_start (GTK_BOX (vbox), drawingarea, TRUE, TRUE, 0); - hbox = gtk_hbox_new (FALSE, 30); + hbox = gtk_hbox_new (FALSE, 20); int i; @@ -215,7 +216,7 @@ gtk_widget_set_size_request (widget, 25, 150); g_signal_connect (G_OBJECT (widget), "value-changed", G_CALLBACK (on_bandwidth_changed), (gpointer) band); - gtk_box_pack_start (GTK_BOX (scales_hbox), widget, FALSE, FALSE, 0); + gtk_box_pack_start (GTK_BOX (scales_hbox), widget, TRUE, TRUE, 0); widget = gtk_vscale_new_with_range (20.0, 20000.0, 5.0); gtk_scale_set_draw_value (GTK_SCALE (widget), TRUE); @@ -224,11 +225,11 @@ G_CALLBACK (on_freq_changed), (gpointer) band); gtk_container_add (GTK_CONTAINER (frame), scales_hbox); - gtk_box_pack_start (GTK_BOX (hbox), frame, FALSE, FALSE, 0); + gtk_box_pack_start (GTK_BOX (hbox), frame, TRUE, TRUE, 0); } gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, TRUE, 0); |