diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2010-06-27 10:41:16 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2010-06-27 10:41:16 +0200 |
commit | a189cef9c87734b7238152c02f662fef27ff74fd (patch) | |
tree | 77a6687353748b8334597d009d9e6ab75c099270 | |
parent | 4b22f8c136c07708074506ac5022d7fd1a15fd34 (diff) | |
download | gstreamer-plugins-bad-a189cef9c87734b7238152c02f662fef27ff74fd.tar.gz |
tests: Fix build with GTK+ < 2.17.7
gtk_widget_get_allocation() was added in that version.
-rw-r--r-- | tests/examples/camerabin/gst-camera.c | 8 | ||||
-rw-r--r-- | tests/icles/metadata_editor.c | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/tests/examples/camerabin/gst-camera.c b/tests/examples/camerabin/gst-camera.c index b47e0cbf5..6b121fb5b 100644 --- a/tests/examples/camerabin/gst-camera.c +++ b/tests/examples/camerabin/gst-camera.c @@ -45,6 +45,14 @@ #include <time.h> #include <glib/gstdio.h> // g_fopen() +#if !GTK_CHECK_VERSION (2, 17, 7) +static void +gtk_widget_get_allocation (GtkWidget * w, GtkAllocation * a) +{ + *a = w->allocation; +} +#endif + /* * enums, typedefs and defines */ diff --git a/tests/icles/metadata_editor.c b/tests/icles/metadata_editor.c index d17d50629..8dae82ec5 100644 --- a/tests/icles/metadata_editor.c +++ b/tests/icles/metadata_editor.c @@ -54,6 +54,14 @@ #include <gst/gst.h> +#if !GTK_CHECK_VERSION (2, 17, 7) +static void +gtk_widget_get_allocation (GtkWidget * w, GtkAllocation * a) +{ + *a = w->allocation; +} +#endif + /* * Global constants */ |