add todos

This commit is contained in:
2025-12-21 22:22:59 +01:00
parent 22a1b7e369
commit 0101ea1ec0
10 changed files with 273 additions and 36 deletions

View File

@@ -13,11 +13,6 @@ Popover::Popover(std::string icon, std::string name) {
popover = new Gtk::Popover();
popover->set_parent(*this);
popover->set_autohide(true);
popover->signal_closed().connect([this]() {
this->add_css_class("minimized");
this->remove_css_class("restored");
});
}
Popover::~Popover() {
@@ -28,8 +23,6 @@ void Popover::on_toggle_window() {
if (popover->get_visible()) {
popover->popdown();
} else {
this->remove_css_class("minimized");
this->add_css_class("restored");
popover->popup();
}
}

View File

@@ -7,6 +7,7 @@
TodoEntry::TodoEntry(int id, std::string text, sigc::signal<void(int)> signal_dismissed)
: Gtk::Box(Gtk::Orientation::HORIZONTAL) {
this->id = id;
this->text = text;
this->signal_dismissed = signal_dismissed;