summaryrefslogtreecommitdiffstats
path: root/src/Widget.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Widget.hpp')
-rw-r--r--src/Widget.hpp18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/Widget.hpp b/src/Widget.hpp
index 6089d41..03c5f8e 100644
--- a/src/Widget.hpp
+++ b/src/Widget.hpp
@@ -21,10 +21,12 @@
#include <string>
-template <typename W>
-class Widget {
+template<typename W>
+class Widget
+{
public:
- Widget(Glib::RefPtr<Gtk::Builder> xml, const std::string& name) {
+ Widget(Glib::RefPtr<Gtk::Builder> xml, const std::string& name)
+ {
xml->get_widget(name, _me);
}
@@ -33,12 +35,12 @@ public:
void destroy() { delete _me; }
- W* get() { return _me; }
- const W* get() const { return _me; }
- W* operator->() { return _me; }
+ W* get() { return _me; }
+ const W* get() const { return _me; }
+ W* operator->() { return _me; }
const W* operator->() const { return _me; }
- W& operator*() { return *_me; }
- const W& operator*() const { return *_me; }
+ W& operator*() { return *_me; }
+ const W& operator*() const { return *_me; }
private:
W* _me;