Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 287857 Details for
Bug 575492
[GTK] Disabled toolbar icons are double size on hi-res screen (200% scaling)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Snippet to show disabled button image
Snippet.java (text/plain), 819 bytes, created by
Phil Beauvoir
on 2022-01-19 14:55:01 EST
(
hide
)
Description:
Snippet to show disabled button image
Filename:
MIME Type:
Creator:
Phil Beauvoir
Created:
2022-01-19 14:55:01 EST
Size:
819 bytes
patch
obsolete
>package snippet; > >import org.eclipse.swt.SWT; >import org.eclipse.swt.graphics.Image; >import org.eclipse.swt.layout.GridLayout; >import org.eclipse.swt.widgets.Button; >import org.eclipse.swt.widgets.Display; >import org.eclipse.swt.widgets.Shell; > >public class Snippet { > > public static void main(String[] args) { > Display display = new Display(); > Shell shell = new Shell(display); > shell.setLayout(new GridLayout()); > > Image image = display.getSystemImage(SWT.ICON_WARNING); > > Button button = new Button(shell, SWT.FLAT); > button.setImage(image); > button.setEnabled(false); > > shell.open(); > while(!shell.isDisposed()) { > if(!display.readAndDispatch()) display.sleep(); > } > display.dispose(); > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 575492
:
286966
|
286967
|
286968
| 287857