#1 Add some READMEs, add logger class, rearrange to use Core class
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
#include <gtkmm.h>
|
||||
|
||||
CloseButton::CloseButton(const Glib::ustring &label, Glib::RefPtr<Gtk::Application> appPtr) : app(appPtr)
|
||||
CloseButton::CloseButton(std::shared_ptr<Core> appCore, const Glib::ustring &label) : core(appCore)
|
||||
{
|
||||
set_label(label);
|
||||
|
||||
@@ -11,5 +11,5 @@ CloseButton::CloseButton(const Glib::ustring &label, Glib::RefPtr<Gtk::Applicati
|
||||
|
||||
void CloseButton::on_button_clicked()
|
||||
{
|
||||
this->app.get()->quit();
|
||||
this->core->app.get()->quit();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user