summaryrefslogtreecommitdiffstats
path: root/chrome/common/gtk_util.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/common/gtk_util.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/common/gtk_util.h')
-rw-r--r--chrome/common/gtk_util.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/common/gtk_util.h b/chrome/common/gtk_util.h
index c12fe98..07c469f 100644
--- a/chrome/common/gtk_util.h
+++ b/chrome/common/gtk_util.h
@@ -171,6 +171,11 @@ void DrawTextEntryBackground(GtkWidget* offscreen_entry,
// Returns the two colors averaged together.
GdkColor AverageColors(GdkColor color_one, GdkColor color_two);
+// Show the image for the given menu item, even if the user's default is to not
+// show images. Only to be used for favicons or other menus where the image is
+// crucial to its functionality.
+void SetAlwaysShowImage(GtkWidget* image_menu_item);
+
} // namespace gtk_util
#endif // CHROME_COMMON_GTK_UTIL_H_