diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2024-07-13 16:14:36 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2024-07-13 16:14:36 +0200 |
| commit | f8bfd268523ff5abd3cf5490d5b892ff49954f47 (patch) | |
| tree | 2af1079ec797c1617f1d88b43a847f7ce28cecdb /app/include | |
| parent | e4130ea27cc3a13780e95bd0654675336fa564ec (diff) | |
| download | turns-f8bfd268523ff5abd3cf5490d5b892ff49954f47.tar.xz turns-f8bfd268523ff5abd3cf5490d5b892ff49954f47.zip | |
app/ui: make list entry title editable
Diffstat (limited to 'app/include')
| -rw-r--r-- | app/include/turns/app/widgets/participant_list_row.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/include/turns/app/widgets/participant_list_row.hpp b/app/include/turns/app/widgets/participant_list_row.hpp index b9efbd6..172e9ac 100644 --- a/app/include/turns/app/widgets/participant_list_row.hpp +++ b/app/include/turns/app/widgets/participant_list_row.hpp @@ -7,15 +7,18 @@ #include <glibmm/ustring.h> #include <gtkmm/box.h> +#include <gtkmm/editablelabel.h> #include <gtkmm/image.h> #include <gtkmm/label.h> #include <gtkmm/listboxrow.h> +#include <gtkmm/togglebutton.h> namespace turns::app::widgets { struct participant_list_row : template_widget<participant_list_row, Gtk::ListBoxRow> { auto constexpr inline static children = std::array{ + "edit", "header", "prefixes", "image", @@ -31,12 +34,13 @@ namespace turns::app::widgets auto set_title(Glib::ustring const & value) -> void; private: + Gtk::ToggleButton * m_edit; Gtk::Box * m_header; Gtk::Image * m_image; Gtk::Box * m_prefixes; Gtk::Label * m_subtitle; Gtk::Box * m_suffixes; - Gtk::Label * m_title; + Gtk::EditableLabel * m_title; Gtk::Box * m_title_box; }; } // namespace turns::app::widgets |
