Mercurial > projects > mde
diff mde/gui/WidgetManager.d @ 116:5ee69b3ed9c9
Partial implementation of infinite widget recursion protection; some cleanup.
Implemented recursion protection which only allowed unsafe widgets to be instantiated once; realised this was far too restrictive (multiple sibling instances are needed) and a check against parent widgets would be needed. Could be implemented by passing widgets a reference to parents.
Removed ButtonWidget aka First interactible widget.
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Sun, 21 Dec 2008 12:03:50 +0000 |
parents | 1b1e2297e2fc |
children | aba2dd815a1f |
line wrap: on
line diff
--- a/mde/gui/WidgetManager.d Sat Dec 20 17:57:05 2008 +0000 +++ b/mde/gui/WidgetManager.d Sun Dec 21 12:03:50 2008 +0000 @@ -523,10 +523,6 @@ debug (mdeWidgets) logger.trace ("Creating widget \""~id~'"'); return createWidget (this, id, curData[id], content); } - override IChildWidget makeWidget (widgetID id, WidgetData data, IContent content = null) { - debug (mdeWidgets) logger.trace ("Creating widget \""~id~'"'); - return createWidget (this, id, data, content); - } override wdims dimData (widgetID id) { return curData.dims (id);