diff mde/gui/widget/contentFunctions.d @ 138:3468e9bfded1

Popup widgets: are simpler to use and can show content fields like DisplayContentWidget.
author Diggory Hardy <diggory.hardy@gmail.com>
date Sat, 07 Feb 2009 13:28:52 +0000
parents 9f035cd139c6
children 2ac3e0012788
line wrap: on
line diff
--- a/mde/gui/widget/contentFunctions.d	Sat Feb 07 12:46:03 2009 +0000
+++ b/mde/gui/widget/contentFunctions.d	Sat Feb 07 13:28:52 2009 +0000
@@ -49,7 +49,7 @@
     if (c is null) throw new ContentException;
     if (cast(AStringContent) c) {
         if (cast(EnumContent) c)	// can be PopupMenuWidget or ContentListWidget
-            return new ContentListWidget(mgr,parent,id,data,c);
+            return new PopupMenuWidget(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);