diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-05-19 20:35:59 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-05-28 20:25:02 +0000 |
commit | 8713397948ec079135ed14ebc434053771d24726 (patch) | |
tree | 32e18c83e7889ed88c8a5a2643c092cb02c79d8e | |
parent | f2447e06af674d2f32688f11b3f65223ac290e91 (diff) | |
download | gtk+-8713397948ec079135ed14ebc434053771d24726.tar.gz |
root: Make gtk_root_get_display public
This is following the precedent of making
GtkNative getters public.
-rw-r--r-- | gtk/gtkroot.c | 8 | ||||
-rw-r--r-- | gtk/gtkroot.h | 3 | ||||
-rw-r--r-- | gtk/gtkrootprivate.h | 2 |
3 files changed, 11 insertions, 2 deletions
diff --git a/gtk/gtkroot.c b/gtk/gtkroot.c index 95e8f69f26..919aa65f94 100644 --- a/gtk/gtkroot.c +++ b/gtk/gtkroot.c @@ -63,6 +63,14 @@ gtk_root_default_init (GtkRootInterface *iface) GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY)); } +/** + * gtk_root_get_display: + * @self: a #GtkRoot + * + * Returns the display that this GtkRoot is on. + * + * Returns: (transfer none): the display of @root + */ GdkDisplay * gtk_root_get_display (GtkRoot *self) { diff --git a/gtk/gtkroot.h b/gtk/gtkroot.h index 3136a00911..648defa380 100644 --- a/gtk/gtkroot.h +++ b/gtk/gtkroot.h @@ -49,6 +49,9 @@ struct _GtkRootInterface }; GDK_AVAILABLE_IN_ALL +GdkDisplay * gtk_root_get_display (GtkRoot *root); + +GDK_AVAILABLE_IN_ALL void gtk_root_set_focus (GtkRoot *self, GtkWidget *focus); GDK_AVAILABLE_IN_ALL diff --git a/gtk/gtkrootprivate.h b/gtk/gtkrootprivate.h index ddf4fb01ef..3afbae712c 100644 --- a/gtk/gtkrootprivate.h +++ b/gtk/gtkrootprivate.h @@ -5,8 +5,6 @@ G_BEGIN_DECLS -GdkDisplay * gtk_root_get_display (GtkRoot *root); - enum { GTK_ROOT_PROP_FOCUS_WIDGET, GTK_ROOT_NUM_PROPERTIES |