diff options
| author | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-16 16:11:38 +0000 |
|---|---|---|
| committer | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-16 16:11:38 +0000 |
| commit | e20597e41de65f42beb5c797cf4cd1e40530e7b9 (patch) | |
| tree | dbcbad7dd56b3eda2d0c94dd33d1b10d5b505263 /chrome/browser/cocoa/gradient_button_cell.mm | |
| parent | ce189c522dec4b777ef5bd9f7b657b73d860e55d (diff) | |
| download | chromium_src-e20597e41de65f42beb5c797cf4cd1e40530e7b9.zip chromium_src-e20597e41de65f42beb5c797cf4cd1e40530e7b9.tar.gz chromium_src-e20597e41de65f42beb5c797cf4cd1e40530e7b9.tar.bz2 | |
Avoid spurious errors about NSColor*-CGColor* and NSSize-CGSize conversions
The SDK has gotten stupider in 10.6, and has conspired with the compiler,
which now thinks that when the receiver is held in a scoped_nsobject, NSColor
and NSSize arguments should be converted to their CG cousins.
Review URL: http://codereview.chromium.org/205016
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26348 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/gradient_button_cell.mm')
| -rw-r--r-- | chrome/browser/cocoa/gradient_button_cell.mm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/cocoa/gradient_button_cell.mm b/chrome/browser/cocoa/gradient_button_cell.mm index 320567b..5a7a08a 100644 --- a/chrome/browser/cocoa/gradient_button_cell.mm +++ b/chrome/browser/cocoa/gradient_button_cell.mm @@ -319,8 +319,8 @@ static const NSTimeInterval kAnimationHideDuration = 0.4; scoped_nsobject<NSShadow> shadow([[NSShadow alloc] init]); NSColor *shadowColor = [color gtm_legibleTextColor]; shadowColor = [shadowColor colorWithAlphaComponent:0.25]; - [shadow setShadowColor:shadowColor]; - [shadow setShadowOffset:NSMakeSize(0, -1.0)]; + [shadow.get() setShadowColor:shadowColor]; + [shadow.get() setShadowOffset:NSMakeSize(0, -1.0)]; [shadow setShadowBlurRadius:1.0]; [shadow set]; } |
