* <title>GstXOverlay and Gtk+</title>
* <para>
* |[
+ * #include <gst/interfaces/xoverlay.h>
* #include <gtk/gtk.h>
* #ifdef GDK_WINDOWING_X11
* #include <gdk/gdkx.h> // for GDK_WINDOW_XID
* #endif
*
* #ifdef GDK_WINDOWING_X11
- * video_window_xid = GDK_WINDOW_XID (video_window->window);
+ * video_window_xid = GDK_WINDOW_XID (gtk_widget_get_window (video_window));
* #endif
* }
* ...
* // realize window now so that the video window gets created and we can
* // obtain its XID before the pipeline is started up and the videosink
* // asks for the XID of the window to render onto
- * gtk_widget_realize (window);
+ * gtk_widget_realize (video_window);
*
* // we should have the XID now
* g_assert (video_window_xid != 0);