diff mde/imde.d @ 123:d3b2cefd46c9

minSizeChange() allows run-time changes to widgets' minimal size (except for shrinking in a GridLayoutWidget). FloatingAreaWidget: correct resize limiters AStringContent: allows space and ignores modifier keys
author Diggory Hardy <diggory.hardy@gmail.com>
date Sun, 04 Jan 2009 17:35:15 +0000
parents aba2dd815a1f
children 3e648bc53bde
line wrap: on
line diff
--- a/mde/imde.d	Fri Jan 02 18:10:14 2009 +0000
+++ b/mde/imde.d	Sun Jan 04 17:35:15 2009 +0000
@@ -26,10 +26,11 @@
     input = new Input();
     mainSchedule = new Scheduler;
     
-    quit = (new EventContent("quit")).addCallback ((Content){
+    quit = new EventContent("quit");
+    quit.addCallback ((Content){
 	run = false;
     });
-    menu = new ContentList ("menu",[quit,
+    menu = new ContentList ("menu",[cast(Content) quit,
                             new EventContent("a"),
                             new ContentList("subMenu",[
                                            new EventContent("b"),