diff mde/gui/widget/contentFunctions.d @ 163:24d77c52243f

Provided sensible conversions for setting the value of one AStringContent from another, along with unittest. Updated layout and Translation unittests to run.
author Diggory Hardy <diggory.hardy@gmail.com>
date Sat, 23 May 2009 15:47:32 +0200
parents 2ac3e0012788
children bb2f1a76346d
line wrap: on
line diff
--- a/mde/gui/widget/contentFunctions.d	Fri May 22 19:59:22 2009 +0200
+++ b/mde/gui/widget/contentFunctions.d	Sat May 23 15:47:32 2009 +0200
@@ -51,8 +51,8 @@
     if (cast(AStringContent) c) {
         if (cast(EnumContent) c)	// can be PopupMenuWidget or ContentListWidget
             return new PopupMenuWidget(mgr,parent,id,data,c);
-        if (cast(BoolContent) c)
-            return new BoolContentWidget(mgr,parent,id,data,c);
+//         if (cast(BoolContent) c)
+//             return new BoolContentWidget(mgr,parent,id,data,c);
         return new AStringContentWidget(mgr,parent,id,data,c);
     }
     if (cast(IContentList) c)