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 273229 Details for
Bug 531667
[GTK3] Cannot draw Canvas with Control.print(GC)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Snippet showing regression with commited patch.
Bug528415_CTabFolder_tabs_are_not_painted2.java (text/x-java), 1.46 KB, created by
Simeon Andreev
on 2018-03-20 14:25:48 EDT
(
hide
)
Description:
Snippet showing regression with commited patch.
Filename:
MIME Type:
Creator:
Simeon Andreev
Created:
2018-03-20 14:25:48 EDT
Size:
1.46 KB
patch
obsolete
>package org.eclipse.swt.tests.gtk.snippets; > >import org.eclipse.swt.SWT; >import org.eclipse.swt.custom.CTabFolder; >import org.eclipse.swt.custom.CTabItem; >import org.eclipse.swt.layout.FillLayout; >import org.eclipse.swt.widgets.Composite; >import org.eclipse.swt.widgets.Display; >import org.eclipse.swt.widgets.Shell; > >/** > * Description: CTabItem in CTabFolder are not drawn if CTabFolder is placed > * below some other widget. > */ >public class Bug528415_CTabFolder_tabs_are_not_painted2 { > > public static void main(String[] args) { > Display display = new Display(); > Shell shell = new Shell(display); > shell.setSize(400, 300); > shell.setLayout(new FillLayout(SWT.VERTICAL)); > shell.setText("Bug XXX: tab painting is broken"); > > Composite topPlaceholder = new Composite(shell, SWT.NONE); > topPlaceholder.setBackground(display.getSystemColor(SWT.COLOR_CYAN)); > > CTabFolder tabFolder = new CTabFolder(shell, SWT.RIGHT_TO_LEFT); > > createTab(tabFolder, "Tab 1", SWT.COLOR_GREEN); > createTab(tabFolder, "Tab 2", SWT.COLOR_YELLOW); > > shell.open(); > > while (!shell.isDisposed()) { > if (!display.readAndDispatch()) { > display.sleep(); > } > } > display.dispose(); > } > > private static CTabItem createTab(CTabFolder parent, String text, int color) { > CTabItem tab1 = new CTabItem(parent, SWT.NONE); > tab1.setText(text); > Composite comp = new Composite(parent, SWT.NONE); > comp.setBackground(comp.getDisplay().getSystemColor(color)); > tab1.setControl(comp); > return tab1; > } > >}
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 531667
:
272873
|
272877
|
272878
|
272879
|
272880
|
272912
|
272939
|
272952
| 273229 |
273235
|
273236
|
273319
|
273352
|
273353
|
273386
|
273513
|
273514
|
273917