diff options
author | Bogdan Gheorghe <gheorghe@ca.ibm.com> | 2011-11-11 17:21:39 -0500 |
---|---|---|
committer | Bogdan Gheorghe <gheorghe@ca.ibm.com> | 2011-11-11 17:21:39 -0500 |
commit | 3685834d18437d0b10ce45f2bb10cb09bcf01a26 (patch) | |
tree | 6501ee63392014740d7766bd609034f5ad2daf1b /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ScrollBar.java | |
parent | 901c37db33931067d44ef0838ad456dc01d7d8e1 (diff) | |
download | eclipse.platform.swt-3685834d18437d0b10ce45f2bb10cb09bcf01a26.tar.gz eclipse.platform.swt-3685834d18437d0b10ce45f2bb10cb09bcf01a26.tar.xz eclipse.platform.swt-3685834d18437d0b10ce45f2bb10cb09bcf01a26.zip |
Bug 335962 - ScrollBar.getVisible() is wrong under gtk
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ScrollBar.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ScrollBar.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ScrollBar.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ScrollBar.java index a8e5063d38..5d4ab3ab23 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ScrollBar.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ScrollBar.java @@ -450,9 +450,9 @@ public boolean getVisible () { int [] hsp = new int [1], vsp = new int [1]; OS.gtk_scrolled_window_get_policy (scrolledHandle, hsp, vsp); if ((style & SWT.HORIZONTAL) != 0) { - return hsp [0] != OS.GTK_POLICY_NEVER; + return hsp [0] != OS.GTK_POLICY_NEVER && OS.GTK_WIDGET_VISIBLE(handle); } else { - return vsp [0] != OS.GTK_POLICY_NEVER; + return vsp [0] != OS.GTK_POLICY_NEVER && OS.GTK_WIDGET_VISIBLE(handle); } } |