diff mde/gui/widget/miscWidgets.d @ 77:3dfd934100f7

Continuing widget data changes started in last commit: all previous widgets work again now (but lacking saving).
author Diggory Hardy <diggory.hardy@gmail.com>
date Tue, 29 Jul 2008 17:11:22 +0100
parents 65780e0e48e6
children ea58f277f487
line wrap: on
line diff
--- a/mde/gui/widget/miscWidgets.d	Mon Jul 28 18:49:18 2008 +0100
+++ b/mde/gui/widget/miscWidgets.d	Tue Jul 29 17:11:22 2008 +0100
@@ -27,7 +27,7 @@
 class FixedBlankWidget : FixedWidget
 {
     this (IWidgetManager mgr, WidgetData data) {
-        if (data.ints.length != 3) throw new WidgetDataException;
+        WDCheck (data, 3);
         super (mgr, data);
     }
     
@@ -42,7 +42,7 @@
 class SizableBlankWidget : SizableWidget
 {
     this (IWidgetManager mgr, WidgetData data) {
-        if (data.ints.length != 1) throw new WidgetDataException;
+        WDCheck (data, 1);
         super (mgr, data);
     }
     
@@ -61,7 +61,7 @@
     // it is whether the mouse is over the button after being clicked.
     
     this (IWidgetManager mgr, WidgetData data) {
-        if (data.ints.length != 3) throw new WidgetDataException;
+        WDCheck (data, 3);
         super (mgr, data);
     }