diff options
author | Kevin Barnes <krbarnes> | 2009-05-06 19:51:53 +0000 |
---|---|---|
committer | Kevin Barnes <krbarnes> | 2009-05-06 19:51:53 +0000 |
commit | 228ce83cf48b36834731e5d307da84450bab9790 (patch) | |
tree | c745b12d1a14828ced1349d65bd708b011cf3f58 | |
parent | 775da6817f1330155074a54fdd00170b592382a6 (diff) | |
download | eclipse.platform.swt-228ce83cf48b36834731e5d307da84450bab9790.tar.gz eclipse.platform.swt-228ce83cf48b36834731e5d307da84450bab9790.tar.xz eclipse.platform.swt-228ce83cf48b36834731e5d307da84450bab9790.zip |
274120 - Update progress bar from UI thread does not work on Cocoav3547a
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/ProgressBar.java | 8 |
1 files changed, 8 insertions, 0 deletions
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 07c2fdc585..e3c385b97e 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 @@ -269,6 +269,14 @@ public void setMinimum (int value) { public void setSelection (int value) { checkWidget(); ((NSProgressIndicator)view).setDoubleValue(value); + /* + * Feature in Cocoa. The progress bar does + * not redraw right away when a value is + * changed. This is not strictly incorrect + * but unexpected. The fix is to force all + * outstanding redraws to be delivered. + */ + update(false); } /** |