summaryrefslogtreecommitdiff
path: root/gtk/gtkroot.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-03-02 08:45:13 -0500
committerMatthias Clasen <mclasen@redhat.com>2019-03-16 21:24:44 -0400
commitab5d3e756b21646ec57f4978fdc2312cf1a845e6 (patch)
treefb4d0ad2414ba8bd7c55c5f56f89bca704c236af /gtk/gtkroot.h
parent92f1bdcf45dbb87ad9a537879bd5c5eae59964e7 (diff)
downloadgtk+-ab5d3e756b21646ec57f4978fdc2312cf1a845e6.tar.gz
root: Add focus
Add a getter and a setter for the focus widget. The default implementations do nothing.
Diffstat (limited to 'gtk/gtkroot.h')
-rw-r--r--gtk/gtkroot.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/gtkroot.h b/gtk/gtkroot.h
index 45e777ba68..4c7ae89e37 100644
--- a/gtk/gtkroot.h
+++ b/gtk/gtkroot.h
@@ -56,6 +56,12 @@ struct _GtkRootInterface
GDK_AVAILABLE_IN_ALL
GtkWidget * gtk_root_get_for_surface (GdkSurface *surface);
+GDK_AVAILABLE_IN_ALL
+void gtk_root_set_focus (GtkRoot *self,
+ GtkWidget *focus);
+GDK_AVAILABLE_IN_ALL
+GtkWidget * gtk_root_get_focus (GtkRoot *self);
+
G_END_DECLS
#endif /* __GTK_ROOT_H__ */