# HG changeset patch # User Jordan Miner # Date 1248995150 18000 # Node ID ad551ec36b755d80d05faf950cba9fdc30e25e44 # Parent 6b264c92da340446488a6af767724c62fa78a55e Revert Window.content to being a Panel. Allows win.content.add(...) again. diff -r 6b264c92da34 -r ad551ec36b75 dynamin/gui/window.d --- 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; }