diff --git a/tests/examples/camerabin/gst-camera.c b/tests/examples/camerabin/gst-camera.c index b47e0cbf55..6b121fb5b9 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 d17d506297..8dae82ec5f 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 */