From 0afcbdc28f038b38d8cd7fe3d80191dc3bf31303 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Tue, 29 Apr 2025 17:03:31 +0200 Subject: ui: rename participant_row to ParticipantRow --- ui/src/participant_row.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'ui/src/participant_row.cpp') diff --git a/ui/src/participant_row.cpp b/ui/src/participant_row.cpp index b6d18a8..e5075cd 100644 --- a/ui/src/participant_row.cpp +++ b/ui/src/participant_row.cpp @@ -28,7 +28,7 @@ namespace turns::ui { namespace { - auto constexpr static TYPE_NAME = "participant_row"; + auto constexpr static TYPE_NAME = "ParticipantRow"; auto constexpr static TEMPLATE = "/ch/arknet/Turns/participant_row.ui"; auto css_class_for(core::disposition value) -> Glib::ustring @@ -47,9 +47,9 @@ namespace turns::ui } } // namespace - participant_row::participant_row(Glib::RefPtr participant) + ParticipantRow::ParticipantRow(Glib::RefPtr participant) : Glib::ObjectBase(TYPE_NAME) - , template_widget{TEMPLATE} + , template_widget{TEMPLATE} , m_delete{get_widget("delete")} , m_edit{get_widget("edit")} , m_subtitle{get_widget("subtitle")} @@ -59,8 +59,8 @@ namespace turns::ui , m_edit_enabled{*this, "edit-enabled", true} { - m_delete->signal_clicked().connect(sigc::mem_fun(*this, &participant_row::handle_delete)); - m_edit->signal_clicked().connect(sigc::mem_fun(*this, &participant_row::handle_edit)); + m_delete->signal_clicked().connect(sigc::mem_fun(*this, &ParticipantRow::handle_delete)); + m_edit->signal_clicked().connect(sigc::mem_fun(*this, &ParticipantRow::handle_edit)); Glib::Binding::bind_property(m_subtitle->property_label(), m_subtitle->property_visible(), @@ -124,23 +124,23 @@ namespace turns::ui } } - auto participant_row::delete_enabled() -> Glib::PropertyProxy + auto ParticipantRow::delete_enabled() -> Glib::PropertyProxy { return m_delete_enabled.get_proxy(); } - auto participant_row::edit_enabled() -> Glib::PropertyProxy + auto ParticipantRow::edit_enabled() -> Glib::PropertyProxy { return m_edit_enabled.get_proxy(); } - auto participant_row::handle_delete() -> void + auto ParticipantRow::handle_delete() -> void { auto index = Glib::Variant::create(get_index()); activate_action("win.delete", index); } - auto participant_row::handle_edit() -> void + auto ParticipantRow::handle_edit() -> void { auto index = Glib::Variant::create(get_index()); activate_action("win.edit", index); -- cgit v1.2.3