summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSilenio Quarti <silenio>2004-05-27 19:04:54 +0000
committerSilenio Quarti <silenio>2004-05-27 19:04:54 +0000
commit2b4f2e61cc5b7641fdb31adfc67ad51fad352532 (patch)
tree115718a7e0f349fcd64af5515152c3ebe30f632f
parentfacb4a58dee97a2ff960ee66661b66782b3014e2 (diff)
downloadeclipse.platform.swt-2b4f2e61cc5b7641fdb31adfc67ad51fad352532.tar.gz
eclipse.platform.swt-2b4f2e61cc5b7641fdb31adfc67ad51fad352532.tar.xz
eclipse.platform.swt-2b4f2e61cc5b7641fdb31adfc67ad51fad352532.zip
50183
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Scrollable.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Scrollable.java b/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Scrollable.java
index 33749d266d..393b7e7358 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Scrollable.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Scrollable.java
@@ -114,8 +114,8 @@ public Rectangle computeTrim (int x, int y, int width, int height) {
return new Rectangle (x, y, width, height);
}
-ScrollBar createScrollBar (int type) {
- return new ScrollBar (this, type);
+ScrollBar createScrollBar (int style) {
+ return new ScrollBar (this, style);
}
ScrollBar createStandardBar (int style) {
@@ -123,7 +123,7 @@ ScrollBar createStandardBar (int style) {
OS.CountSubControls (handle, count);
if (count [0] == 0) return null;
int [] outControl = new int [1];
- int index = (style & SWT.HORIZONTAL) != 0 ? 1 : 2;
+ int index = (style & SWT.H_SCROLL) != 0 ? 1 : 2;
int status = OS.GetIndexedSubControl (handle, (short)index, outControl);
if (status != OS.noErr) return null;
ScrollBar bar = new ScrollBar ();