mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
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
2 changed files with 16 additions and 0 deletions
|
@ -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…
Reference in a new issue