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 252622 Details for
Bug 465178
[GTK3] List#getTopIndex has inconsistent behavior in GTK3
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.
Snippet to reproduce the issue
file_465178.txt (text/plain), 1.14 KB, created by
Nobody - feel free to take it
on 2015-04-22 06:02:45 EDT
(
hide
)
Description:
Snippet to reproduce the issue
Filename:
MIME Type:
Creator:
Nobody - feel free to take it
Created:
2015-04-22 06:02:45 EDT
Size:
1.14 KB
patch
obsolete
>package jface; > >import org.eclipse.swt.SWT; >import org.eclipse.swt.internal.gtk.OS; >import org.eclipse.swt.layout.FillLayout; >import org.eclipse.swt.widgets.Display; >import org.eclipse.swt.widgets.List; >import org.eclipse.swt.widgets.Shell; > >public class Snippet1 { > > > public static void main(String[] args) { > String property = System.getenv("SWT_GTK3"); > System.err.println("GTK"+(property.equals("1")?"3":"2")); > Display display = new Display (); > Shell shell = new Shell(display); > shell.setLayout(new FillLayout()); > String version = "GTK Version: " + OS.gtk_major_version() + "." > + OS.gtk_minor_version() + "." + OS.gtk_micro_version(); > String[] items = new String[1000]; > shell.setText(version); > for (int i = 0; i < items.length; i++) { > items[i]="Sopot"+i; > } > List list = new List(shell, SWT.NONE); > list.setItems(items); > shell.open (); > System.err.println(list.getTopIndex()); > list.select(50); > list.showSelection(); > System.err.println(list.getTopIndex()); > > 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 465178
:
252621
| 252622