diff options
author | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-11 22:56:30 +0000 |
---|---|---|
committer | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-11 22:56:30 +0000 |
commit | 4efb56d87a1927f4e497257805b54ad3bda87bec (patch) | |
tree | d9d565e8b908f576066fb47ec5bf081afd093422 /chrome/browser/gtk/go_button_gtk.cc | |
parent | f8d172cbaeb8cd49be95b5581473805989e89ca6 (diff) | |
download | chromium_src-4efb56d87a1927f4e497257805b54ad3bda87bec.zip chromium_src-4efb56d87a1927f4e497257805b54ad3bda87bec.tar.gz chromium_src-4efb56d87a1927f4e497257805b54ad3bda87bec.tar.bz2 |
GTK: Use themed background images in toolbar buttons.
When a chrome theme asks to use a background image on a toolbar button,
use it. Oddly enough, all of the graphics drawing was written but the
plumbing of actually setting the background wasn't...
TEST=Good Smile, Chuck Anderson, etc. should have button backgrounds which
are very different from the toolbar background in the GTK port.
BUG=NONE
Review URL: http://codereview.chromium.org/384057
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31728 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/go_button_gtk.cc')
-rw-r--r-- | chrome/browser/gtk/go_button_gtk.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/gtk/go_button_gtk.cc b/chrome/browser/gtk/go_button_gtk.cc index bd3bc23..03bc77f 100644 --- a/chrome/browser/gtk/go_button_gtk.cc +++ b/chrome/browser/gtk/go_button_gtk.cc @@ -33,8 +33,8 @@ GoButtonGtk::GoButtonGtk(LocationBarViewGtk* location_bar, Browser* browser) state_(BS_NORMAL), theme_provider_(browser ? GtkThemeProvider::GetFrom(browser->profile()) : NULL), - go_(theme_provider_, IDR_GO, IDR_GO_P, IDR_GO_H, 0), - stop_(theme_provider_, IDR_STOP, IDR_STOP_P, IDR_STOP_H, 0), + go_(theme_provider_, IDR_GO, IDR_GO_P, IDR_GO_H, 0, IDR_GO_MASK), + stop_(theme_provider_, IDR_STOP, IDR_STOP_P, IDR_STOP_H, 0, IDR_GO_MASK), widget_(gtk_chrome_button_new()) { gtk_widget_set_size_request(widget_.get(), go_.Width(), go_.Height()); |