diff options
author | Ryan Lortie <desrt@desrt.ca> | 2012-09-10 14:36:23 -0400 |
---|---|---|
committer | Ryan Lortie <desrt@desrt.ca> | 2012-09-17 12:31:22 -0400 |
commit | 778aa7ade0107fa645ab1427132551d138c7334a (patch) | |
tree | ecb61096cd6d72d7dc4f4362f8158d2f3c9bcdf8 /gtk/gtkmodelmenuitem.h | |
parent | 338b5f6c2dc6cdb73ec3dfb6973b2269d4664b80 (diff) | |
download | gtk+-778aa7ade0107fa645ab1427132551d138c7334a.tar.gz |
GtkAccelLabel: add manual accel API
Add an API to GtkAccelLabel for hardcoding the accel key to be displayed
(ie: allowing us to bypass the GtkAccelGroup lookup).
Use that from the GMenuModel-based GtkMenu construction code instead of
passing around the accel group.
This makes accel labels work in bloatpad again.
This patch effectively removes any hope of automatic runtime accel
changes in GMenuModel-based menus without additional application
support but it leaves the door open for this to be supported again in
the future (if we decide that it's important).
https://bugzilla.gnome.org/show_bug.cgi?id=683738
Diffstat (limited to 'gtk/gtkmodelmenuitem.h')
-rw-r--r-- | gtk/gtkmodelmenuitem.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gtk/gtkmodelmenuitem.h b/gtk/gtkmodelmenuitem.h index 9e35327f54..655f07341b 100644 --- a/gtk/gtkmodelmenuitem.h +++ b/gtk/gtkmodelmenuitem.h @@ -36,7 +36,6 @@ GType gtk_model_menu_item_get_type (void) G G_GNUC_INTERNAL GtkMenuItem * gtk_model_menu_item_new (GMenuModel *model, gint item_index, - const gchar *action_namespace, - GtkAccelGroup *accels); + const gchar *action_namespace); #endif /* __GTK_MODEL_MENU_ITEM_H__ */ |