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 240040 Details for
Bug 421836
[GTK3] Some composite now have background
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
A snippet to reproduce it (using Section)
TestBug421836.java (text/x-java), 1.18 KB, created by
Mickael Istria
on 2014-02-17 12:52:50 EST
(
hide
)
Description:
A snippet to reproduce it (using Section)
Filename:
MIME Type:
Creator:
Mickael Istria
Created:
2014-02-17 12:52:50 EST
Size:
1.18 KB
patch
obsolete
> >import org.eclipse.swt.SWT; >import org.eclipse.swt.graphics.Font; >import org.eclipse.swt.graphics.FontData; >import org.eclipse.swt.layout.FillLayout; >import org.eclipse.swt.layout.RowLayout; >import org.eclipse.swt.widgets.Composite; >import org.eclipse.swt.widgets.Display; >import org.eclipse.swt.widgets.Label; >import org.eclipse.swt.widgets.Shell; > >public class TestBug421836 { > > public static void main(String[] args) { > final Display display = new Display(); > Shell shell = new Shell(display, SWT.CLOSE); > shell.setLayout(new FillLayout()); > Composite composite = new Composite(shell, SWT.NONE); > composite.setLayout(new RowLayout(SWT.VERTICAL)); > FontData[] data = composite.getFont().getFontData(); > for (FontData item : data) { > item.setStyle(SWT.BOLD); > } > Font font = new Font(display, data); > composite.setFont(font); > Label label = new Label(composite, SWT.NONE); > label.setText("Not bold with GTK2"); > > shell.pack(); > // shell.setSize(500, 600); > shell.open(); > // textUser.forceFocus(); > while (!shell.isDisposed()) { > if (!display.readAndDispatch()) { > // If no more entries in event queue > display.sleep(); > } > } > font.dispose(); > 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 421836
:
237492
|
240040
|
242948
|
242958
|
242959