mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-26 00:58:12 +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 <time.h>
|
||||||
#include <glib/gstdio.h> // g_fopen()
|
#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
|
* enums, typedefs and defines
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -54,6 +54,14 @@
|
||||||
|
|
||||||
#include <gst/gst.h>
|
#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
|
* Global constants
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue