gst/spectrum/: Do not use deprecated gtk functions.
authorStefan Kost <ensonic@users.sourceforge.net>
Sat, 15 Jul 2006 11:50:25 +0000 (11:50 +0000)
committerStefan Kost <ensonic@users.sourceforge.net>
Sat, 15 Jul 2006 11:50:25 +0000 (11:50 +0000)
Original commit message from CVS:
* gst/spectrum/demo-audiotest.c: (main):
* gst/spectrum/demo-osssrc.c: (main):
Do not use deprecated gtk functions.

ChangeLog
gst/spectrum/demo-audiotest.c
gst/spectrum/demo-osssrc.c

index 1f23c2340dac3e88fd5f9a74fdebea578a4b07bf..438228e921a046ebc5a25faf714461af2dc8fd21 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-07-15  Stefan Kost  <ensonic@users.sf.net>
+
+       * gst/spectrum/demo-audiotest.c: (main):
+       * gst/spectrum/demo-osssrc.c: (main):
+        Do not use deprecated gtk functions.
+
 2006-07-14  Wim Taymans  <wim@fluendo.com>
 
        * gst/nsf/Makefile.am:
index e69aef34a3b84eb9cab4bfdd0b5d0b18ad96d2bc..f55bad968e4ddc74f922df016ab2fab985f41d06 100644 (file)
@@ -143,7 +143,7 @@ main (int argc, char *argv[])
   gtk_container_add (GTK_CONTAINER (vbox), widget);
 
   drawingarea = gtk_drawing_area_new ();
-  gtk_drawing_area_size (GTK_DRAWING_AREA (drawingarea), SPECT_BANDS, 64);
+  gtk_widget_set_size_request (drawingarea, SPECT_BANDS, 64);
   gtk_container_add (GTK_CONTAINER (vbox), drawingarea);
 
   gtk_container_add (GTK_CONTAINER (appwindow), vbox);
index 522a3e7adb1141e9f968c47fe81bd04908cbb110..e3d7f7e16192430736b909ea98ce0b93dc07566c 100644 (file)
@@ -120,7 +120,7 @@ main (int argc, char *argv[])
       G_CALLBACK (on_window_destroy), NULL);
 
   drawingarea = gtk_drawing_area_new ();
-  gtk_drawing_area_size (GTK_DRAWING_AREA (drawingarea), SPECT_BANDS, 64);
+  gtk_widget_set_size_request (drawingarea, SPECT_BANDS, 64);
   gtk_container_add (GTK_CONTAINER (appwindow), drawingarea);
   gtk_widget_show_all (appwindow);