changeset 88:cd18fa3b71f1

fix workaround anon class problem in dmd 1.028
author Frank Benoit <benoit@tionex.de>
date Sat, 21 Jun 2008 15:29:48 +0200
parents 8d1a6e501ea4
children 040da1cb0d76
files dwtx/jface/dialogs/ProgressMonitorDialog.d
diffstat 1 files changed, 13 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/dwtx/jface/dialogs/ProgressMonitorDialog.d	Sat Jun 21 10:58:07 2008 +0200
+++ b/dwtx/jface/dialogs/ProgressMonitorDialog.d	Sat Jun 21 15:29:48 2008 +0200
@@ -412,13 +412,19 @@
         shell.setCursor(waitCursor);
         // Add a listener to set the message properly when the dialog becomes
         // visible
-        shell.addListener(DWT.Show, dgListener( (Event event, Shell shell_) {
-                // We need to async the message update since the Show precedes
-                // visibility
-                shell_.getDisplay().asyncExec(dgRunnable( {
-                    setMessage(message, true);
-                }));
-        }, shell));
+        // DWT FIXME: workaround for DMD 1.028 anon class problem
+        shell.addListener(DWT.Show, dgListener( &_handleEvent, shell));
+    }
+
+    // DWT FIXME: workaround for DMD 1.028 anon class problem
+    private void _handleEvent(Event event, Shell shell_) {
+        // We need to async the message update since the Show precedes
+        // visibility
+        shell_.getDisplay().asyncExec(dgRunnable( &_setMessage ));
+    }
+    // DWT FIXME: workaround for DMD 1.028 anon class problem
+    private void _setMessage() {
+        setMessage(message, true);
     }
 
     /*