summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2010-10-12 12:11:37 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2010-10-12 12:11:37 +0200
commit18f38a747a0380b9ac61134c2f9fe8d9ed37c5f7 (patch)
tree7a4cdd7b4313ad2bc88b63579a2c8ce7dd3cdb3f /tests
parente8341d2129c52b6d6b4ffb02587055134565ded9 (diff)
downloadgstreamer-plugins-bad-18f38a747a0380b9ac61134c2f9fe8d9ed37c5f7.tar.gz
examples: Fix compilation with GTK+ 3.0
Diffstat (limited to 'tests')
-rw-r--r--tests/examples/camerabin/gst-camera.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/examples/camerabin/gst-camera.c b/tests/examples/camerabin/gst-camera.c
index b56402a0a..c837ba520 100644
--- a/tests/examples/camerabin/gst-camera.c
+++ b/tests/examples/camerabin/gst-camera.c
@@ -1035,6 +1035,9 @@ on_color_control_value_changed (GtkRange * range, gpointer user_data)
gst_color_balance_set_value (balance, channel, val);
}
+#ifndef GDK_KEY_F11
+#define GDK_KEY_F11 GDK_F11
+#endif
gboolean
on_key_released (GtkWidget * widget, GdkEventKey * event, gpointer user_data)
@@ -1042,7 +1045,7 @@ on_key_released (GtkWidget * widget, GdkEventKey * event, gpointer user_data)
g_return_val_if_fail (event != NULL, FALSE);
switch (event->keyval) {
- case GDK_F11:
+ case GDK_KEY_F11:
#ifdef HAVE_GST_PHOTO_IFACE_H
gst_photography_set_autofocus (GST_PHOTOGRAPHY (gst_videosrc), FALSE);
#endif
@@ -1060,7 +1063,7 @@ on_key_pressed (GtkWidget * widget, GdkEventKey * event, gpointer user_data)
g_return_val_if_fail (event != NULL, FALSE);
switch (event->keyval) {
- case GDK_F11:
+ case GDK_KEY_F11:
#ifdef HAVE_GST_PHOTO_IFACE_H
gst_photography_set_autofocus (GST_PHOTOGRAPHY (gst_videosrc), TRUE);
#endif