mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 14:08:56 +00:00
gst/spectrum/: Do not use deprecated gtk functions.
Original commit message from CVS: * gst/spectrum/demo-audiotest.c: (main): * gst/spectrum/demo-osssrc.c: (main): Do not use deprecated gtk functions.
This commit is contained in:
parent
0d462be70a
commit
8ad4273ac5
2 changed files with 2 additions and 2 deletions
|
@ -143,7 +143,7 @@ main (int argc, char *argv[])
|
||||||
gtk_container_add (GTK_CONTAINER (vbox), widget);
|
gtk_container_add (GTK_CONTAINER (vbox), widget);
|
||||||
|
|
||||||
drawingarea = gtk_drawing_area_new ();
|
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 (vbox), drawingarea);
|
||||||
|
|
||||||
gtk_container_add (GTK_CONTAINER (appwindow), vbox);
|
gtk_container_add (GTK_CONTAINER (appwindow), vbox);
|
||||||
|
|
|
@ -120,7 +120,7 @@ main (int argc, char *argv[])
|
||||||
G_CALLBACK (on_window_destroy), NULL);
|
G_CALLBACK (on_window_destroy), NULL);
|
||||||
|
|
||||||
drawingarea = gtk_drawing_area_new ();
|
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_container_add (GTK_CONTAINER (appwindow), drawingarea);
|
||||||
gtk_widget_show_all (appwindow);
|
gtk_widget_show_all (appwindow);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue