summaryrefslogtreecommitdiff
path: root/tests/examples
diff options
context:
space:
mode:
Diffstat (limited to 'tests/examples')
-rw-r--r--tests/examples/camerabin/gst-camera.c2
-rw-r--r--tests/examples/camerabin2/gst-camera2.c4
-rw-r--r--tests/examples/scaletempo/demo-gui.c2
3 files changed, 7 insertions, 1 deletions
diff --git a/tests/examples/camerabin/gst-camera.c b/tests/examples/camerabin/gst-camera.c
index d4ce6dd8a..5b33f54a7 100644
--- a/tests/examples/camerabin/gst-camera.c
+++ b/tests/examples/camerabin/gst-camera.c
@@ -276,7 +276,7 @@ my_bus_sync_callback (GstBus * bus, GstMessage * message, gpointer data)
/* FIXME: make sure to get XID in main thread */
gst_x_overlay_set_window_handle (GST_X_OVERLAY (message->src),
#if GTK_CHECK_VERSION (2, 91, 6)
- GDK_WINDOW_XID (gtk_widget_get_window (ui_drawing));
+ GDK_WINDOW_XID (gtk_widget_get_window (ui_drawing)));
#else
GDK_WINDOW_XWINDOW (gtk_widget_get_window (ui_drawing)));
#endif
diff --git a/tests/examples/camerabin2/gst-camera2.c b/tests/examples/camerabin2/gst-camera2.c
index 14e3be10f..bd612e701 100644
--- a/tests/examples/camerabin2/gst-camera2.c
+++ b/tests/examples/camerabin2/gst-camera2.c
@@ -98,7 +98,11 @@ bus_sync_callback (GstBus * bus, GstMessage * message, gpointer data)
/* FIXME: make sure to get XID in main thread */
ui_drawing = GTK_WIDGET (gtk_builder_get_object (builder, "viewfinderArea"));
gst_x_overlay_set_window_handle (GST_X_OVERLAY (message->src),
+#if GTK_CHECK_VERSION (2, 91, 6)
+ GDK_WINDOW_XID (gtk_widget_get_window (ui_drawing)));
+#else
GDK_WINDOW_XWINDOW (gtk_widget_get_window (ui_drawing)));
+#endif
gst_message_unref (message);
return GST_BUS_DROP;
diff --git a/tests/examples/scaletempo/demo-gui.c b/tests/examples/scaletempo/demo-gui.c
index 55c764373..c31c2bf19 100644
--- a/tests/examples/scaletempo/demo-gui.c
+++ b/tests/examples/scaletempo/demo-gui.c
@@ -1035,8 +1035,10 @@ demo_gui_show_func (DemoGui * gui)
seek_range =
gtk_hscale_new (GTK_ADJUSTMENT (gtk_adjustment_new (0.0, 0.0, 0.0, 5.0,
30.0, 0.00)));
+#if !GTK_CHECK_VERSION (3, 0, 0)
gtk_range_set_update_policy (GTK_RANGE (seek_range),
GTK_UPDATE_DISCONTINUOUS);
+#endif
seek_bar = gtk_hbox_new (FALSE, 0);
gtk_box_pack_start (GTK_BOX (seek_bar), amount_played, FALSE, FALSE, 2);
gtk_box_pack_start (GTK_BOX (seek_bar), seek_range, TRUE, TRUE, 2);