diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-05-10 20:29:14 +0200 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-05-10 21:24:20 +0200 |
commit | 3c912139aef92a3e070ade966c91c297b7a5310c (patch) | |
tree | 2628e66b9cfe3cd494bb33641ac995db949c01fb /src/gui/widgets/window.h | |
parent | 6e3a3c345a2cad8308738b8b7b5292b9002c1a6e (diff) | |
download | mana-3c912139aef92a3e070ade966c91c297b7a5310c.tar.gz mana-3c912139aef92a3e070ade966c91c297b7a5310c.tar.bz2 mana-3c912139aef92a3e070ade966c91c297b7a5310c.tar.xz mana-3c912139aef92a3e070ade966c91c297b7a5310c.zip |
Fixed the resize grip of the party window
It wasn't re-added after doing a clear. Also, don't leak all the
PartyMember and Avatar instances.
Diffstat (limited to 'src/gui/widgets/window.h')
-rw-r--r-- | src/gui/widgets/window.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gui/widgets/window.h b/src/gui/widgets/window.h index f980b96a..153602ba 100644 --- a/src/gui/widgets/window.h +++ b/src/gui/widgets/window.h @@ -295,7 +295,8 @@ class Window : public gcn::Window, gcn::WidgetListener Layout &getLayout(); /** - * Clears the Window's layout (useful for redesigning the window) + * Clears the window's layout (useful for redesigning the window). Does + * not delete the widgets! */ void clearLayout(); @@ -336,9 +337,6 @@ class Window : public gcn::Window, gcn::WidgetListener */ int getGuiAlpha(); - protected: - ResizeGrip *mGrip; /**< Resize grip */ - private: enum ResizeHandles { @@ -357,6 +355,7 @@ class Window : public gcn::Window, gcn::WidgetListener */ int getResizeHandles(gcn::MouseEvent &event); + ResizeGrip *mGrip; /**< Resize grip */ Window *mParent; /**< The parent window */ Layout *mLayout; /**< Layout handler */ std::string mWindowName; /**< Name of the window */ @@ -380,7 +379,7 @@ class Window : public gcn::Window, gcn::WidgetListener static int mouseResize; /**< Active resize handles */ static int instances; /**< Number of Window instances */ - Skin* mSkin; /**< Skin in use by this window */ + Skin *mSkin; /**< Skin in use by this window */ /** * The width of the resize border. Is independent of the actual window |