summaryrefslogtreecommitdiff
path: root/app/include
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2024-07-16 16:37:49 +0200
committerFelix Morgner <felix.morgner@gmail.com>2024-07-16 16:37:49 +0200
commitc87ebdbfacdc2e1b5ae50286a5437e7b9eceafa7 (patch)
treec00ca2cc062130c15d7059f9df06dd71ca458f16 /app/include
parent1a83168d5c7269bd91043d79169898ca6893d88a (diff)
downloadturns-c87ebdbfacdc2e1b5ae50286a5437e7b9eceafa7.tar.xz
turns-c87ebdbfacdc2e1b5ae50286a5437e7b9eceafa7.zip
app: replace n_items with is_empty property
Diffstat (limited to 'app/include')
-rw-r--r--app/include/turns/app/widgets/turn_order_view.hpp7
1 files changed, 3 insertions, 4 deletions
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<domain::participant>;
auto remove(std::size_t index) -> void;
-
- auto get_n_items() const noexcept -> unsigned int;
- auto property_n_items() const -> Glib::PropertyProxy_ReadOnly<unsigned int>;
+ auto get_is_empty() const noexcept -> bool;
+ auto property_is_empty() const -> Glib::PropertyProxy_ReadOnly<bool>;
private:
auto handle_create_row(Glib::RefPtr<Glib::Object> const item) -> Gtk::Widget *;
@@ -41,7 +40,7 @@ namespace turns::app::widgets
Glib::RefPtr<domain::turn_order> m_model;
Gtk::ListBox * m_view;
- Glib::PropertyProxy_ReadOnly<unsigned int> m_n_items;
+ Glib::Property<bool> m_is_empty;
};
} // namespace turns::app::widgets