Mercurial > projects > mde
diff mde/gui/widget/AChildWidget.d @ 141:6f69a9c111eb
Fix for using BoolContentWidget in a menu. Made popups' widths match their parents under certain conditions.
Removed dummy testing menu items.
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Sun, 08 Feb 2009 15:49:45 +0000 |
parents | 9f035cd139c6 |
children | 66c58e5b0062 |
line wrap: on
line diff
--- a/mde/gui/widget/AChildWidget.d Sun Feb 08 15:20:11 2009 +0000 +++ b/mde/gui/widget/AChildWidget.d Sun Feb 08 15:49:45 2009 +0000 @@ -246,16 +246,15 @@ /// Handles the down-click override int clickEvent (wdabs, wdabs, ubyte b, bool state) { if (b != 1) return 0; - if (state) { + if (parentIPPW.menuActive) { + parentIPPW.menuDone; + activated; + } else if (state) { pushed = true; mgr.requestRedraw; mgr.addClickCallback (&clickWhilePushed); mgr.addMotionCallback (&motionWhilePushed); } - if (parentIPPW.menuActive) { - parentIPPW.menuDone; - activated; - } return 0; }