Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 350332

Summary: TrayItem.setImage creates padded status bar icon in Mac OSX only
Product: [Eclipse Project] Platform Reporter: l1m5 <benjamin.limmer>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: benjamin.limmer, eclipse.felipe, lshanmug
Version: 4.1   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
mac padded status bar none

Description l1m5 CLA 2011-06-24 18:10:42 EDT
Created attachment 198577 [details]
mac padded status bar

On my cross-platform SWT Java application, I'm using TrayItem's setImage() function to set the dock and status bar icon. The icon is a 128x128 transparent PNG. The status and tray icons are appropriately clipped on both Windows and Linux distributions, but on the Mac I have problems that make the status bar icon appear with strange padding on both sides like this:

http://i.imgur.com/RbpWZ.png

It's strange to me that this is working on all other platforms but the Mac. For instance, here is the same status bar icon without the problem on my Linux box:

http://i.imgur.com/yKFMQ.png
Comment 1 Lakshmi P Shanmugam CLA 2011-11-18 08:24:15 EST
dup of 350751

*** This bug has been marked as a duplicate of bug 350751 ***