summaryrefslogtreecommitdiffstats
path: root/src/Widget.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Widget.hpp')
-rw-r--r--src/Widget.hpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Widget.hpp b/src/Widget.hpp
index 038f880..f1c935f 100644
--- a/src/Widget.hpp
+++ b/src/Widget.hpp
@@ -19,17 +19,18 @@
#include <string>
-#include <boost/utility.hpp>
-
#include <gtkmm/builder.h>
template <typename W>
-class Widget : public boost::noncopyable {
+class Widget {
public:
Widget(Glib::RefPtr<Gtk::Builder> xml, const std::string& name) {
xml->get_widget(name, _me);
}
+ Widget(const Widget&) = delete;
+ Widget& operator=(const Widget&) = delete;
+
void destroy() { delete _me; }
W* get() { return _me; }