From c87ebdbfacdc2e1b5ae50286a5437e7b9eceafa7 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Tue, 16 Jul 2024 16:37:49 +0200 Subject: app: replace n_items with is_empty property --- app/include/turns/app/widgets/turn_order_view.hpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'app/include/turns') diff --git a/app/include/turns/app/widgets/turn_order_view.hpp b/app/include/turns/app/widgets/turn_order_view.hpp index c55483a..c9be5ff 100644 --- a/app/include/turns/app/widgets/turn_order_view.hpp +++ b/app/include/turns/app/widgets/turn_order_view.hpp @@ -31,9 +31,8 @@ namespace turns::app::widgets auto get(std::size_t index) -> Glib::RefPtr; auto remove(std::size_t index) -> void; - - auto get_n_items() const noexcept -> unsigned int; - auto property_n_items() const -> Glib::PropertyProxy_ReadOnly; + auto get_is_empty() const noexcept -> bool; + auto property_is_empty() const -> Glib::PropertyProxy_ReadOnly; private: auto handle_create_row(Glib::RefPtr const item) -> Gtk::Widget *; @@ -41,7 +40,7 @@ namespace turns::app::widgets Glib::RefPtr m_model; Gtk::ListBox * m_view; - Glib::PropertyProxy_ReadOnly m_n_items; + Glib::Property m_is_empty; }; } // namespace turns::app::widgets -- cgit v1.2.3