diff options
author | Ryan Lortie <desrt@desrt.ca> | 2013-07-09 23:44:51 -0400 |
---|---|---|
committer | Ryan Lortie <desrt@desrt.ca> | 2013-10-15 09:24:12 -0400 |
commit | 9a6ee36e9c5db83ce2e216a89706e547d73efd93 (patch) | |
tree | 2249f17440f8a7efb7e519664dc42886fb602acb /gtk/gtkwindowprivate.h | |
parent | afa8b0178fa57b49eb13aa4c4e3b460bcedcd9c9 (diff) | |
download | gtk+-9a6ee36e9c5db83ce2e216a89706e547d73efd93.tar.gz |
GtkApplication: a new approach to accels
Rework how accels are handled on GtkApplicationWindow.
Instead of having GtkApplication fill the GtkAccelMap which is then used
by GtkApplicationWindow to create a GtkAccelGroup filled with closures
that is then associated with the window, do it directly.
GtkApplication now keeps a list of accels and their actions.
Accelerators on a GtkApplicationWindow ask GtkApplication to execute the
appropriate action.
This saves a fair bit of complexity and memory use (due to not having to
create all those closures and accelmap entries). The new approach also
supports multiple accels per action (although there is not yet a public
API for it).
This patch (and the ones before) Reviewed and ACK'd by Matthias Clasen.
Diffstat (limited to 'gtk/gtkwindowprivate.h')
-rw-r--r-- | gtk/gtkwindowprivate.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkwindowprivate.h b/gtk/gtkwindowprivate.h index 507d79671f..3c27e2e2e1 100644 --- a/gtk/gtkwindowprivate.h +++ b/gtk/gtkwindowprivate.h @@ -82,6 +82,8 @@ gboolean _gtk_window_query_nonaccels (GtkWindow *window, void _gtk_window_schedule_mnemonics_visible (GtkWindow *window); +void _gtk_window_notify_keys_changed (GtkWindow *window); + G_END_DECLS #endif /* __GTK_WINDOW_PRIVATE_H__ */ |