diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-05-09 00:32:18 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-05-09 00:33:12 -0600 |
commit | 3074acf977841492b2378b5542bc3d755cf0a227 (patch) | |
tree | c925bea4d6d401f7ebeb03685f901f7adb9d24e2 /src/gui/widgets/window.h | |
parent | 2c409c2226f848c39fa0d371b56855d011c682db (diff) | |
download | mana-3074acf977841492b2378b5542bc3d755cf0a227.tar.gz mana-3074acf977841492b2378b5542bc3d755cf0a227.tar.bz2 mana-3074acf977841492b2378b5542bc3d755cf0a227.tar.xz mana-3074acf977841492b2378b5542bc3d755cf0a227.zip |
Fix some memory leaks
In doing so, NPC Dialogs now show the resize grip again.
Diffstat (limited to 'src/gui/widgets/window.h')
-rw-r--r-- | src/gui/widgets/window.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/widgets/window.h b/src/gui/widgets/window.h index 11193654..563e2f2f 100644 --- a/src/gui/widgets/window.h +++ b/src/gui/widgets/window.h @@ -25,6 +25,8 @@ #include "graphics.h" #include "guichanfwd.h" +#include "gui/widgets/resizegrip.h" + #include <guichan/widgetlistener.hpp> #include <guichan/widgets/window.hpp> @@ -32,7 +34,6 @@ class ContainerPlacer; class Layout; class LayoutCell; -class ResizeGrip; class Skin; class WindowContainer; @@ -336,6 +337,9 @@ class Window : public gcn::Window, gcn::WidgetListener */ int getGuiAlpha(); + protected: + ResizeGrip *mGrip; /**< Resize grip */ + private: enum ResizeHandles { @@ -354,7 +358,6 @@ 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 */ |