diff options
Diffstat (limited to 'src/Widget.hpp')
-rw-r--r-- | src/Widget.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Widget.hpp b/src/Widget.hpp index ea8a218..4fea89a 100644 --- a/src/Widget.hpp +++ b/src/Widget.hpp @@ -27,7 +27,9 @@ public: Widget(Glib::RefPtr<Gnome::Glade::Xml> xml, const std::string& name) { xml->get_widget(name.c_str(), _me); } - + + void destroy() { delete _me; } + W* get() { return _me; } const W* get() const { return _me; } W* operator->() { return _me; } @@ -38,5 +40,6 @@ public: private: W* _me; }; + #endif // WIDGET_HPP |