From: <sl...@ke...> - 2010-06-27 08:41:50
|
Module: gst-plugins-bad Branch: master Commit: a189cef9c87734b7238152c02f662fef27ff74fd URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=a189cef9c87734b7238152c02f662fef27ff74fd Author: Sebastian Dröge <seb...@co...> Date: Sun Jun 27 10:41:16 2010 +0200 tests: Fix build with GTK+ < 2.17.7 gtk_widget_get_allocation() was added in that version. --- tests/examples/camerabin/gst-camera.c | 8 ++++++++ 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 b47e0cb..6b121fb 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 d17d506..8dae82e 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 */ |