diff dwtx/ui/forms/widgets/SharedScrolledComposite.d @ 78:4ac9946b9fb5

Forms work with first test
author Frank Benoit <benoit@tionex.de>
date Sat, 24 May 2008 08:33:56 +0200
parents 5d489b9f966c
children
line wrap: on
line diff
--- a/dwtx/ui/forms/widgets/SharedScrolledComposite.d	Sat May 24 06:59:31 2008 +0200
+++ b/dwtx/ui/forms/widgets/SharedScrolledComposite.d	Sat May 24 08:33:56 2008 +0200
@@ -230,17 +230,18 @@
         setMinSize(area.width, c.getSize().y);
     }
 
+    private void handleScheduleReflow(bool flushCache) {
+        if (!isDisposed())
+            reflow(flushCache);
+        reflowPending = false;
+    }
     private void scheduleReflow(bool flushCache) {
         if (delayedReflow) {
             if (reflowPending) {
                 updateSizeWhilePending();
                 return;
             }
-            getDisplay().asyncExec( dgRunnable( (bool flushCache) {
-                if (!isDisposed())
-                    reflow(flushCache);
-                reflowPending = false;
-            }, flushCache));
+            getDisplay().asyncExec( dgRunnable( &handleScheduleReflow, flushCache));
             reflowPending = true;
         } else
             reflow(flushCache);