diff options
author | Kevin Barnes <krbarnes> | 2009-08-24 20:21:00 +0000 |
---|---|---|
committer | Kevin Barnes <krbarnes> | 2009-08-24 20:21:00 +0000 |
commit | 32f302c85f22789ae690550c5b2c5c64cbf257bd (patch) | |
tree | e70bbab9f3dce6bde08b17812fc456f776e42641 | |
parent | 23b7935cd15b8388c527faef9078d42de46f2773 (diff) | |
download | eclipse.platform.swt-32f302c85f22789ae690550c5b2c5c64cbf257bd.tar.gz eclipse.platform.swt-32f302c85f22789ae690550c5b2c5c64cbf257bd.tar.xz eclipse.platform.swt-32f302c85f22789ae690550c5b2c5c64cbf257bd.zip |
223404 - Vertical Progress Bar Does not appear correctly
3 files changed, 6 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSView.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSView.java index cdc963a7c6..b1e29c881d 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSView.java +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSView.java @@ -235,6 +235,10 @@ public void setAutoresizingMask(int /*long*/ mask) { OS.objc_msgSend(this.id, OS.sel_setAutoresizingMask_, mask); } +public void setBoundsRotation(float /*double*/ angle) { + OS.objc_msgSend(this.id, OS.sel_setBoundsRotation_, angle); +} + public void setFocusRingType(int /*long*/ focusRingType) { OS.objc_msgSend(this.id, OS.sel_setFocusRingType_, focusRingType); } diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java index 35312433f9..fc87d8780b 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java @@ -1431,6 +1431,7 @@ public static final int /*long*/ sel_setBezelStyle_ = sel_registerName("setBezel public static final int /*long*/ sel_setBorderType_ = sel_registerName("setBorderType:"); public static final int /*long*/ sel_setBorderWidth_ = sel_registerName("setBorderWidth:"); public static final int /*long*/ sel_setBordered_ = sel_registerName("setBordered:"); +public static final int /*long*/ sel_setBoundsRotation_ = sel_registerName("setBoundsRotation:"); public static final int /*long*/ sel_setBoxType_ = sel_registerName("setBoxType:"); public static final int /*long*/ sel_setButtonType_ = sel_registerName("setButtonType:"); public static final int /*long*/ sel_setCacheMode_ = sel_registerName("setCacheMode:"); diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/ProgressBar.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/ProgressBar.java index 55cd72486f..2287e20811 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/ProgressBar.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/ProgressBar.java @@ -102,6 +102,7 @@ void createHandle () { NSProgressIndicator widget = (NSProgressIndicator)new SWTProgressIndicator().alloc(); widget.init(); widget.setUsesThreadedAnimation(false); + if ((style & SWT.VERTICAL) != 0) widget.setBoundsRotation(-90); widget.setIndeterminate((style & SWT.INDETERMINATE) != 0); view = widget; } |