diff options
author | Ira Rice <irarice@gmail.com> | 2009-03-09 01:23:14 -0600 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-03-09 01:23:14 -0600 |
commit | 40883938ceb60b0999f9b693dadbe2239e83f139 (patch) | |
tree | 594edf50f129f6e6a09b8f139495fdc4bf587684 /src/gui/window.h | |
parent | 5fa3f62d0d6d9cbffeef0f6a2497aae023dbadcf (diff) | |
download | mana-client-40883938ceb60b0999f9b693dadbe2239e83f139.tar.gz mana-client-40883938ceb60b0999f9b693dadbe2239e83f139.tar.bz2 mana-client-40883938ceb60b0999f9b693dadbe2239e83f139.tar.xz mana-client-40883938ceb60b0999f9b693dadbe2239e83f139.zip |
Got rid of an ugly and unified interface breaking cancel button in favor
of adding overridable close functionality to the Window class. Now, if
you need a close button, but need to do something different, or in
addition to the Window close functionality, you can override it and do
that action.
Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/gui/window.h')
-rw-r--r-- | src/gui/window.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/window.h b/src/gui/window.h index a4f56e05..3a92ac17 100644 --- a/src/gui/window.h +++ b/src/gui/window.h @@ -276,6 +276,8 @@ class Window : public gcn::Window, gcn::WidgetListener */ ContainerPlacer getPlacer(int x, int y); + virtual void close(); + protected: /** The window container windows add themselves to. */ static WindowContainer *windowContainer; |