diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-14 01:39:41 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-14 01:39:41 +0000 |
commit | 3401b00e41731a8816d9aec9592b09efb4bf5eac (patch) | |
tree | 0f267305ddb937ef4b25ad79ccc4e69115bc9cd9 /chrome/browser/gtk/menu_gtk.h | |
parent | e5b2eaa2a2a52c104f038e520b61dcbcf7c835dd (diff) | |
download | chromium_src-3401b00e41731a8816d9aec9592b09efb4bf5eac.zip chromium_src-3401b00e41731a8816d9aec9592b09efb4bf5eac.tar.gz chromium_src-3401b00e41731a8816d9aec9592b09efb4bf5eac.tar.bz2 |
Linux: Ignore certain menu accelerators.
Review URL: http://codereview.chromium.org/73003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13643 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/menu_gtk.h')
-rw-r--r-- | chrome/browser/gtk/menu_gtk.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/gtk/menu_gtk.h b/chrome/browser/gtk/menu_gtk.h index 0506ff3..428aae1 100644 --- a/chrome/browser/gtk/menu_gtk.h +++ b/chrome/browser/gtk/menu_gtk.h @@ -96,6 +96,11 @@ class MenuGtk { // Queries this object about the menu state. MenuGtk::Delegate* delegate_; + // For some menu items, we want to show the accelerator, but not actually + // explicitly handle it. To this end we connect those menu items' accelerators + // to this group, but don't attach this group to any top level window. + GtkAccelGroup* dummy_accel_group_; + // gtk_menu_popup() does not appear to take ownership of popup menus, so // MenuGtk explicitly manages the lifetime of the menu. OwnedWidgetGtk menu_; |