refactor and shizz
This commit is contained in:
19
src/components/base/button.cpp
Normal file
19
src/components/base/button.cpp
Normal file
@@ -0,0 +1,19 @@
|
||||
#include "components/base/button.hpp"
|
||||
|
||||
#include "sigc++/functors/mem_fun.h"
|
||||
|
||||
|
||||
Button::Button(const std::string label)
|
||||
: Gtk::Button(label) {
|
||||
signal_clicked().connect(
|
||||
sigc::mem_fun(*this, &Button::on_clicked));
|
||||
this->add_css_class("button");
|
||||
}
|
||||
|
||||
Button::Button(Gtk::Image &image)
|
||||
: Gtk::Button() {
|
||||
set_child(image);
|
||||
signal_clicked().connect(
|
||||
sigc::mem_fun(*this, &Button::on_clicked));
|
||||
this->add_css_class("button");
|
||||
}
|
||||
Reference in New Issue
Block a user