[gtk/wip/ebassi/constraint-layout: 2/5] Move the Root interface to a private header
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/ebassi/constraint-layout: 2/5] Move the Root interface to a private header
- Date: Fri, 3 May 2019 16:09:53 +0000 (UTC)
commit ca735a047ca30f9ae25e9bb7c0019628a27899c6
Author: Emmanuele Bassi <ebassi gnome org>
Date: Tue Apr 9 14:13:37 2019 +0100
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.
gtk/gtkroot.h | 19 -------------------
gtk/gtkrootprivate.h | 19 +++++++++++++++++++
2 files changed, 19 insertions(+), 19 deletions(-)
---
diff --git a/gtk/gtkroot.h b/gtk/gtkroot.h
index 4c7ae89e37..e2c7201b4d 100644
--- a/gtk/gtkroot.h
+++ b/gtk/gtkroot.h
@@ -34,25 +34,6 @@ G_BEGIN_DECLS
GDK_AVAILABLE_IN_ALL
G_DECLARE_INTERFACE (GtkRoot, gtk_root, GTK, ROOT, GtkWidget)
-/**
- * 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);
- GskRenderer * (* get_renderer) (GtkRoot *self);
-
- void (* get_surface_transform) (GtkRoot *root,
- int *x,
- int *y);
-};
-
GDK_AVAILABLE_IN_ALL
GtkWidget * gtk_root_get_for_surface (GdkSurface *surface);
diff --git a/gtk/gtkrootprivate.h b/gtk/gtkrootprivate.h
index 357bc6441f..ecdabe4a25 100644
--- a/gtk/gtkrootprivate.h
+++ b/gtk/gtkrootprivate.h
@@ -5,6 +5,25 @@
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);
+ GskRenderer * (* get_renderer) (GtkRoot *self);
+
+ void (* get_surface_transform) (GtkRoot *root,
+ int *x,
+ int *y);
+};
+
GdkDisplay * gtk_root_get_display (GtkRoot *root);
GskRenderer * gtk_root_get_renderer (GtkRoot *self);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]