diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-24 21:03:05 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-24 21:03:05 +0000 |
commit | bcb71cf13f3997254c8c054590f2c43819f5c0cc (patch) | |
tree | 3954a4ba6035456139a422e6075833b8eabe2e00 /chrome/browser/gtk/browser_toolbar_gtk.cc | |
parent | 062f0518d01e2adcd33130826a827db7dfd0f485 (diff) | |
download | chromium_src-bcb71cf13f3997254c8c054590f2c43819f5c0cc.zip chromium_src-bcb71cf13f3997254c8c054590f2c43819f5c0cc.tar.gz chromium_src-bcb71cf13f3997254c8c054590f2c43819f5c0cc.tar.bz2 |
GTK: Let custom draw buttons specify their stock size as well as their stock image.
I tried to also make the tab strip use stock gtk close button but that is gonna require a lot more work to get layout right so leave it alone for now.
BUG=none
TEST=close button on download shelf is sanely sized
Review URL: http://codereview.chromium.org/159325
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21575 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/browser_toolbar_gtk.cc')
-rw-r--r-- | chrome/browser/gtk/browser_toolbar_gtk.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/gtk/browser_toolbar_gtk.cc b/chrome/browser/gtk/browser_toolbar_gtk.cc index e626983..8a03f5f 100644 --- a/chrome/browser/gtk/browser_toolbar_gtk.cc +++ b/chrome/browser/gtk/browser_toolbar_gtk.cc @@ -392,7 +392,8 @@ CustomDrawButton* BrowserToolbarGtk::BuildToolbarButton( const std::string& localized_tooltip, const char* stock_id) { CustomDrawButton* button = new CustomDrawButton( GtkThemeProvider::GetFrom(profile_), - normal_id, active_id, highlight_id, depressed_id, stock_id); + normal_id, active_id, highlight_id, depressed_id, stock_id, + GTK_ICON_SIZE_SMALL_TOOLBAR); gtk_widget_set_tooltip_text(button->widget(), localized_tooltip.c_str()); |