From 8eff144e48eb4682a48735ffbdfa915adfc4a4e4 Mon Sep 17 00:00:00 2001 From: Luis de Bethencourt Date: Fri, 10 Apr 2015 13:41:39 +0100 Subject: [PATCH] examples: remove deprecated function in gtk-videooverlay gtk_widget_set_double_buffered () has been deprecated since GTK 3.14. Also, widgets are realized automatically and gtk_wiget_realize () is only meant to be used in widget implementations. --- tests/examples/overlay/gtk-videooverlay.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/examples/overlay/gtk-videooverlay.c b/tests/examples/overlay/gtk-videooverlay.c index 76eac7c..929d87e 100644 --- a/tests/examples/overlay/gtk-videooverlay.c +++ b/tests/examples/overlay/gtk-videooverlay.c @@ -125,12 +125,10 @@ main (int argc, char **argv) gtk_window_set_title (GTK_WINDOW (window), "GstVideoOverlay Gtk+ demo"); video_window = gtk_drawing_area_new (); - gtk_widget_set_double_buffered (video_window, FALSE); gtk_container_add (GTK_CONTAINER (window), video_window); gtk_container_set_border_width (GTK_CONTAINER (window), 16); gtk_widget_show_all (window); - gtk_widget_realize (window); video_window_xwindow = gtk_widget_get_window (video_window); embed_xid = GDK_WINDOW_XID (video_window_xwindow); -- 2.7.4