Community
Participate
Working Groups
When creating a widget with V_SCROLL and later hide it's scrollbar it is no longer scrollable with mouse wheel. Original bug coming from Pydev non scrollable when scrollbar hidden on linux (but works fine otherwise) https://bugzilla.redhat.com/show_bug.cgi?id=1198217 . Snippet to reproduce: package org.eclipse.swt.snippets; import org.eclipse.swt.*; import org.eclipse.swt.custom.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.widgets.*; public class Snippet { public static void main (String [] args) { Display display = new Display (); Shell shell = new Shell (display); StyledText text = new StyledText (shell, SWT.BORDER | SWT.V_SCROLL); text.getVerticalBar().setVisible(false); Rectangle clientArea = shell.getClientArea (); text.setBounds (clientArea.x + 10, clientArea.y + 10, 100, 100); for (int i=0; i<16; i++) { text.append ("Line " + i + "\n"); } shell.open (); text.setSelection (30); while (!shell.isDisposed ()) { if (!display.readAndDispatch ()) display.sleep (); } display.dispose (); } }
New Gerrit change created: https://git.eclipse.org/r/58013
Gerrit change https://git.eclipse.org/r/58013 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=7db3fba25fe89240fa80661d81a5dffa2f31ff14
Fix pushed to master.
New Gerrit change created: https://git.eclipse.org/r/58632
Gerrit change https://git.eclipse.org/r/58632 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=8b6ee95646cc2004411d0ad0cb144b724a9b6331
(In reply to Eclipse Genie from comment #5) > Gerrit change https://git.eclipse.org/r/58632 was merged to [master]. > Commit: > http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/ > ?id=8b6ee95646cc2004411d0ad0cb144b724a9b6331 This has started causing a couple of test failures [1] on linux - Test_org_eclipse_swt_widgets_ScrollBar.test_setVisibleZ and Test_org_eclipse_swt_widgets_ScrollBar.test_isVisible [1] http://download.eclipse.org/eclipse/downloads/drops4/N20151022-2000/testresults/html/org.eclipse.swt.tests_linux.gtk.x86_64_8.0.html
New Gerrit change created: https://git.eclipse.org/r/58785
Gerrit change https://git.eclipse.org/r/58785 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=a9c4d77e32dd96ac0692346ec3fe8ffd464c5e98
(In reply to Arun Thondapu from comment #6) > (In reply to Eclipse Genie from comment #5) > > Gerrit change https://git.eclipse.org/r/58632 was merged to [master]. > > Commit: > > http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/ > > ?id=8b6ee95646cc2004411d0ad0cb144b724a9b6331 > > This has started causing a couple of test failures [1] on linux - > Test_org_eclipse_swt_widgets_ScrollBar.test_setVisibleZ and > Test_org_eclipse_swt_widgets_ScrollBar.test_isVisible > > [1] > http://download.eclipse.org/eclipse/downloads/drops4/N20151022-2000/ > testresults/html/org.eclipse.swt.tests_linux.gtk.x86_64_8.0.html Newer version that works for me on both GTK2 and GTK3 pushed. Sorry I simply forgot to test GTK3 with the previous one.
Doh, forgot to test GTK2 actually.
Verified in I20151026-2000 on GTK2 x86 platform
*** Bug 489874 has been marked as a duplicate of this bug. ***