Mercurial > projects > dynamin
changeset 44:ad551ec36b75
Revert Window.content to being a Panel.
Allows win.content.add(...) again.
author | Jordan Miner <jminer7@gmail.com> |
---|---|
date | Thu, 30 Jul 2009 18:05:50 -0500 |
parents | 6b264c92da34 |
children | 4eebc294a3ac |
files | dynamin/gui/window.d |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/dynamin/gui/window.d Thu Jul 30 17:37:59 2009 -0500 +++ b/dynamin/gui/window.d Thu Jul 30 18:05:50 2009 -0500 @@ -154,7 +154,7 @@ Window _owner; WindowBorderStyle _borderStyle; bool _resizable = true; - Container _content; + Panel _content; Control _focusedControl; package Control focusedControl() { return _focusedControl; } package void focusedControl(Control c) { @@ -180,7 +180,7 @@ this.text = text; } - void content(Container panel) { + void content(Panel panel) { if(panel is null) throw new IllegalArgumentException("content must not be null"); // TODO: remove handlers @@ -224,7 +224,7 @@ _content.size = _size-_borderSize; ignoreResize = false; } - Container content() { + Panel content() { return _content; }