summaryrefslogtreecommitdiff
path: root/gtk/gtkrootprivate.h
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2019-04-09 14:13:37 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2019-06-30 23:42:44 +0100
commitc694dd6049aa59ad0f497092479970cf4948cc2a (patch)
tree69d9046d139c7456697e003a066c04aff0ce84dc /gtk/gtkrootprivate.h
parent6b308cd71e1c6d37cd32a3b99d21e729e181aa8d (diff)
downloadgtk+-c694dd6049aa59ad0f497092479970cf4948cc2a.tar.gz
Move the Root interface to a private header
We don't expect out of tree implementations of GtkRoot, and having the interface structure private to the GTK code allows us to add virtual functions involving private types.
Diffstat (limited to 'gtk/gtkrootprivate.h')
-rw-r--r--gtk/gtkrootprivate.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/gtk/gtkrootprivate.h b/gtk/gtkrootprivate.h
index 3afbae712c..37e8149f33 100644
--- a/gtk/gtkrootprivate.h
+++ b/gtk/gtkrootprivate.h
@@ -5,6 +5,20 @@
G_BEGIN_DECLS
+/**
+ * GtkRootIface:
+ *
+ * The list of functions that must be implemented for the #GtkRoot interface.
+ */
+struct _GtkRootInterface
+{
+ /*< private >*/
+ GTypeInterface g_iface;
+
+ /*< public >*/
+ GdkDisplay * (* get_display) (GtkRoot *self);
+};
+
enum {
GTK_ROOT_PROP_FOCUS_WIDGET,
GTK_ROOT_NUM_PROPERTIES