diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-10-21 00:11:59 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-10-21 15:33:09 -0400 |
commit | f6d9f9f93de1c3c5a7ab5d9c64783e941189d9b5 (patch) | |
tree | 4171de6aadd096aa4b088f167b0fc27ae6c78545 /gtk/gtkapplicationwindow.h | |
parent | 310781ecdd573c299e536ab0070910c484aa23d7 (diff) | |
download | gtk+-f6d9f9f93de1c3c5a7ab5d9c64783e941189d9b5.tar.gz |
Add automatic help overlay support to GtkApplication
When the $(resource_prefix)/gtk/help-overlay.ui resource exists,
load a GtkShortcutsWindow from it for each GtkApplicationWindow,
and set up a win.show-help-overlay action with accels <Primary>F1
and <Primary>? to show it.
Diffstat (limited to 'gtk/gtkapplicationwindow.h')
-rw-r--r-- | gtk/gtkapplicationwindow.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk/gtkapplicationwindow.h b/gtk/gtkapplicationwindow.h index 234283c6b4..abe41c9403 100644 --- a/gtk/gtkapplicationwindow.h +++ b/gtk/gtkapplicationwindow.h @@ -25,6 +25,7 @@ #endif #include <gtk/gtkwindow.h> +#include <gtk/gtkshortcutswindow.h> G_BEGIN_DECLS @@ -78,6 +79,13 @@ gboolean gtk_application_window_get_show_menubar (GtkApplicationWindow *windo GDK_AVAILABLE_IN_3_6 guint gtk_application_window_get_id (GtkApplicationWindow *window); +GDK_AVAILABLE_IN_3_20 +void gtk_application_window_set_help_overlay (GtkApplicationWindow *window, + GtkShortcutsWindow *help_overlay); +GDK_AVAILABLE_IN_3_20 +GtkShortcutsWindow * + gtk_application_window_get_help_overlay (GtkApplicationWindow *window); + G_END_DECLS #endif /* __GTK_APPLICATION_WINDOW_H__ */ |