diff --git a/tests/examples/camerabin/gst-camera.c b/tests/examples/camerabin/gst-camera.c index 71d217f4d3..516229bb6a 100644 --- a/tests/examples/camerabin/gst-camera.c +++ b/tests/examples/camerabin/gst-camera.c @@ -832,6 +832,14 @@ on_buttonPause_clicked (GtkButton * button, gpointer user_data) } } +void +on_drawingareaView_realize (GtkWidget * widget, gpointer data) +{ +#if GTK_CHECK_VERSION (2, 18, 0) + gdk_window_ensure_native (widget->window); +#endif +} + gboolean on_drawingareaView_configure_event (GtkWidget * widget, GdkEventConfigure * event, gpointer data) diff --git a/tests/examples/camerabin/gst-camera.ui b/tests/examples/camerabin/gst-camera.ui index c93616ce7b..1dcf33cb15 100644 --- a/tests/examples/camerabin/gst-camera.ui +++ b/tests/examples/camerabin/gst-camera.ui @@ -374,6 +374,7 @@ True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK +