[gtk/wip/matthiasc/popup5: 53/187] root: Require GtkNative
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/matthiasc/popup5: 53/187] root: Require GtkNative
- Date: Thu, 23 May 2019 10:58:00 +0000 (UTC)
commit 5e586bad51da405a79beac0d5a064019998319de
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Apr 29 05:42:39 2019 +0000
root: Require GtkNative
gtk/gtkroot.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/gtk/gtkroot.c b/gtk/gtkroot.c
index a02b17f121..95e8f69f26 100644
--- a/gtk/gtkroot.c
+++ b/gtk/gtkroot.c
@@ -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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]