From 2a0b265c4350cb332f3151fa1c2881609db96d5f Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Thu, 18 Jul 2024 15:03:22 +0200 Subject: app/ui: link up delete/edit enablement --- app/include/turns/app/widgets/participant_row.hpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'app/include/turns') diff --git a/app/include/turns/app/widgets/participant_row.hpp b/app/include/turns/app/widgets/participant_row.hpp index 5bd08e8..b1942b1 100644 --- a/app/include/turns/app/widgets/participant_row.hpp +++ b/app/include/turns/app/widgets/participant_row.hpp @@ -7,6 +7,7 @@ #include #include +#include #include #include #include @@ -28,6 +29,9 @@ namespace turns::app::widgets participant_row(Glib::RefPtr participant); + auto property_delete_enabled() -> Glib::PropertyProxy; + auto property_edit_enabled() -> Glib::PropertyProxy; + private: auto handle_delete() -> void; auto handle_edit() -> void; @@ -37,6 +41,9 @@ namespace turns::app::widgets Gtk::Label * m_subtitle; Gtk::Label * m_title; Gtk::ToggleButton * m_toggle_defeated; + + Glib::Property m_delete_enabled; + Glib::Property m_edit_enabled; }; } // namespace turns::app::widgets -- cgit v1.2.3