diff options
Diffstat (limited to 'ui/src/participant_row.cpp')
| -rw-r--r-- | ui/src/participant_row.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
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<core::participant> participant) + ParticipantRow::ParticipantRow(Glib::RefPtr<core::participant> participant) : Glib::ObjectBase(TYPE_NAME) - , template_widget<participant_row, Gtk::ListBoxRow>{TEMPLATE} + , template_widget{TEMPLATE} , m_delete{get_widget<Gtk::Button>("delete")} , m_edit{get_widget<Gtk::Button>("edit")} , m_subtitle{get_widget<Gtk::Label>("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<bool> + auto ParticipantRow::delete_enabled() -> Glib::PropertyProxy<bool> { return m_delete_enabled.get_proxy(); } - auto participant_row::edit_enabled() -> Glib::PropertyProxy<bool> + auto ParticipantRow::edit_enabled() -> Glib::PropertyProxy<bool> { return m_edit_enabled.get_proxy(); } - auto participant_row::handle_delete() -> void + auto ParticipantRow::handle_delete() -> void { auto index = Glib::Variant<int>::create(get_index()); activate_action("win.delete", index); } - auto participant_row::handle_edit() -> void + auto ParticipantRow::handle_edit() -> void { auto index = Glib::Variant<int>::create(get_index()); activate_action("win.edit", index); |
