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

Bug 311845

Summary: Unwanted widget fragment appears on Eclipse GTK
Product: [Eclipse Project] Platform Reporter: Jiri Peterka <peterka.jiri>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: ericwill, vyemialyanchyk
Version: 4.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Corrupted SWT Checkbox button on GTK none

Description Jiri Peterka CLA 2010-05-06 05:52:35 EDT
Build Identifier: M20100211-1343

There are some corrupted widgets visible sometimes. See attached picture. Usual new Button(parent, SWT.CHECK); is used. I've see this problem on Fedora (GTK). Possibly bug in SWT-GTK.

Reproducible: Always

Steps to Reproduce:
1.Problem is for example on wizard page here 
http://anonsvn.jboss.org/repos/jbosstools/trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/jpa/process/wizard/EntitiesList.java
2.see for "checkboxOptLock.setSelection(params.getEnableOptLock());"
Comment 1 Jiri Peterka CLA 2010-05-06 05:53:25 EDT
Created attachment 167279 [details]
Corrupted SWT Checkbox button on GTK
Comment 2 Jiri Peterka CLA 2010-05-06 05:55:17 EDT
Step 2 should be rather - Button checkboxOptLock = new Button(combolabel, SWT.CHECK);
Comment 3 Praveen CLA 2010-05-07 02:58:40 EDT
Would it be possible for you to narrow down the problem to a simple SWT snippet? That should be helpful in diagnosing the problem more easily.
Comment 4 Vitali Yemialyanchyk CLA 2010-05-07 06:39:56 EDT
take a look at screenshot here:
https://jira.jboss.org/jira/browse/JBIDE-6027
https://jira.jboss.org/jira/browse/JBIDE-6022

the snippet is simplest:
Button checkboxOptLock = new Button(combolabel, SWT.CHECK);

and this shows some artifacts in Linux.
Comment 5 Vitali Yemialyanchyk CLA 2010-05-07 06:42:10 EDT
checkboxOptLock has no text assignment, it has default value.
Comment 6 Eric Williams CLA 2016-10-18 14:40:37 EDT
It's hard to determine the status of a bug with no steps to reproduce. The link from the description 404's. I'm going to close this for now, please feel free to re-open with a snippet reproducer if the issue persists.