From a189cef9c87734b7238152c02f662fef27ff74fd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Sun, 27 Jun 2010 10:41:16 +0200 Subject: [PATCH] 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(+) 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 #include // 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 +#if !GTK_CHECK_VERSION (2, 17, 7) +static void +gtk_widget_get_allocation (GtkWidget * w, GtkAllocation * a) +{ + *a = w->allocation; +} +#endif + /* * Global constants */ -- 2.7.4