commit | 228ce83cf48b36834731e5d307da84450bab9790 | [log] [tgz] |
---|---|---|
author | Kevin Barnes <krbarnes> | Wed May 06 19:51:53 2009 +0000 |
committer | Kevin Barnes <krbarnes> | Wed May 06 19:51:53 2009 +0000 |
tree | c745b12d1a14828ced1349d65bd708b011cf3f58 | |
parent | 775da6817f1330155074a54fdd00170b592382a6 [diff] |
274120 - Update progress bar from UI thread does not work on Cocoa
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 07c2fdc..e3c385b 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 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); } /**