tests: Fix build with GTK+ < 2.17.7
gtk_widget_get_allocation() was added in that version.
This commit is contained in:
parent
4b22f8c136
commit
a189cef9c8
@ -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
|
||||
*/
|
||||
|
@ -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
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user