summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/menu_gtk.h
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-11 23:04:23 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-11 23:04:23 +0000
commit60627a1fc425b47fd658440a9fad776237a87ec1 (patch)
treeed0b5fc3e9da3fc8b65b3036375665c6f6a2c384 /chrome/browser/gtk/menu_gtk.h
parent589df05308e0d8a014ae4f0501d63c38f1144c6f (diff)
downloadchromium_src-60627a1fc425b47fd658440a9fad776237a87ec1.zip
chromium_src-60627a1fc425b47fd658440a9fad776237a87ec1.tar.gz
chromium_src-60627a1fc425b47fd658440a9fad776237a87ec1.tar.bz2
GTK: Set the back/forward and bookmark bar menus to always show their images.
This only works for GTK 2.16+. BUG=21495 Review URL: http://codereview.chromium.org/199099 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26043 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/menu_gtk.h')
-rw-r--r--chrome/browser/gtk/menu_gtk.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/gtk/menu_gtk.h b/chrome/browser/gtk/menu_gtk.h
index 2d47f67..f0dc661 100644
--- a/chrome/browser/gtk/menu_gtk.h
+++ b/chrome/browser/gtk/menu_gtk.h
@@ -43,6 +43,9 @@ class MenuGtk {
virtual std::string GetLabel(int command_id) const { return std::string(); }
virtual bool HasIcon(int command_id) const { return false; }
virtual const SkBitmap* GetIcon(int command_id) const { return NULL; }
+ // Return true if we should override the "gtk-menu-images" system setting
+ // when showing image menu items for this menu.
+ virtual bool AlwaysShowImages() const { return false; }
};
// Builds a MenuGtk that uses |delegate| to perform actions and |menu_data|