diff options
author | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-16 20:47:20 +0000 |
---|---|---|
committer | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-16 20:47:20 +0000 |
commit | e03c2152bd297525eed2dccc303e48df8f59dfc7 (patch) | |
tree | 72d8600988daf385c6b4e41cb48522134c794648 | |
parent | 5bf3935ad9cc7c8c402c7c513fd7b32e749806f8 (diff) | |
download | chromium_src-e03c2152bd297525eed2dccc303e48df8f59dfc7.zip chromium_src-e03c2152bd297525eed2dccc303e48df8f59dfc7.tar.gz chromium_src-e03c2152bd297525eed2dccc303e48df8f59dfc7.tar.bz2 |
r20591 broke themed buttons. Fixing.
BUG=none
TEST=install theme, check to see that buttons are themed.
Review URL: http://codereview.chromium.org/155646
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20896 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/cocoa/gradient_button_cell.mm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/gradient_button_cell.mm b/chrome/browser/cocoa/gradient_button_cell.mm index 87c87ba..ac7b65b 100644 --- a/chrome/browser/cocoa/gradient_button_cell.mm +++ b/chrome/browser/cocoa/gradient_button_cell.mm @@ -8,6 +8,15 @@ @implementation GradientButtonCell +// For nib instantiations +- (id)initWithCoder:(NSCoder*)decoder { + if ((self = [super initWithCoder:decoder])) { + shouldTheme_ = YES; + } + return self; +} + +// For programmatic instantiations - (id)initTextCell:(NSString*)string { if ((self = [super initTextCell:string])) { shouldTheme_ = YES; |