Bug 495909 - [GTK3.20+]
test_setTopItemLorg_eclipse_swt_widgets_TreeItem() fails

Referring to bug Bug 461354, I used a topIndex variable to keep track of
the top item. Check to see if there has been any scrolling changes done
by the user, and if not, return the topIndex variable. We can keep track
of scrolling changes by using a cachedAdjustment variable with a
currentAdjustment variable grabbed with GTK functions.

This optimization has also been adapted on the Table widget.

Tested on GTK 2, 3.14, .16, .18, and .20.

Change-Id: Icf5ebbf3b075ab06f54914c1c753041c9205f820
Signed-off-by: Ian Pun <ipun@redhat.com>
3 files changed
tree: 1d7d2fbd842298ea5fc3268c96e0e04613fef23e
  1. bundles/
  2. examples/
  3. features/
  4. local-build/
  5. tests/
  6. .gitignore
  7. pom.xml
  8. README.md
README.md

Contributing to SWT

Thanks for your interest in this project.

Developer resources:

Information regarding source code management, builds, coding standards, and more.

Contributor License Agreement:

Before your contribution can be accepted by the project, you need to create and electronically sign the Eclipse Foundation Contributor License Agreement (CLA).

Contact:

Contact the project developers via the project's “dev” list.

Search for bugs:

This project uses Bugzilla to track ongoing development and issues.

Create a new bug:

Be sure to search for existing bugs before you create another one. Remember that contributions are always welcome!