root: Require GtkNative

This commit is contained in:
Matthias Clasen 2019-04-29 05:42:39 +00:00
parent 5bf2b633bb
commit d4257d20f8

View File

@ -20,6 +20,9 @@
#include "config.h"
#include "gtkrootprivate.h"
#include "gtknative.h"
#include "gtkcssnodeprivate.h"
#include "gtkwidgetprivate.h"
#include "gdk/gdk-private.h"
#include "gtkprivate.h"
#include "gtkintl.h"
@ -38,7 +41,8 @@
* The obvious example of a #GtkRoot is #GtkWindow.
*/
G_DEFINE_INTERFACE (GtkRoot, gtk_root, GTK_TYPE_WIDGET)
G_DEFINE_INTERFACE_WITH_CODE (GtkRoot, gtk_root, GTK_TYPE_WIDGET,
g_type_interface_add_prerequisite (g_define_type_id, GTK_TYPE_NATIVE))
static GdkDisplay *
gtk_root_default_get_display (GtkRoot *self)