tests: Fix build with GTK+ < 2.17.7

gtk_widget_get_allocation() was added in that version.
This commit is contained in:
Sebastian Dröge 2010-06-27 10:41:16 +02:00
parent 4b22f8c136
commit a189cef9c8
2 changed files with 16 additions and 0 deletions

View file

@ -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
*/

View file

@ -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
*/