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 /res/widgets/participant_list_row.ui | |
| parent | e4130ea27cc3a13780e95bd0654675336fa564ec (diff) | |
| download | turns-f8bfd268523ff5abd3cf5490d5b892ff49954f47.tar.xz turns-f8bfd268523ff5abd3cf5490d5b892ff49954f47.zip | |
app/ui: make list entry title editable
Diffstat (limited to 'res/widgets/participant_list_row.ui')
| -rw-r--r-- | res/widgets/participant_list_row.ui | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/res/widgets/participant_list_row.ui b/res/widgets/participant_list_row.ui index 66506c8..c0e3895 100644 --- a/res/widgets/participant_list_row.ui +++ b/res/widgets/participant_list_row.ui @@ -32,15 +32,14 @@ <property name="orientation">vertical</property> <property name="valign">center</property> <child> - <object class="GtkLabel" id="title"> - <property name="lines">0</property> + <object class="GtkEditableLabel" id="title"> + <property name="editable">False</property> <property name="visible">False</property> - <property name="wrap">True</property> - <property name="wrap-mode">word-char</property> - <property name="xalign">0.0</property> <style> <class name="title"/> </style> + <!-- Custom object fragments --> + <property name="editable" bind-source="edit" bind-property="active" bind-flags="sync-create"/> </object> </child> <child> @@ -64,7 +63,16 @@ <object class="GtkBox" id="suffixes"> <property name="valign">center</property> <child> - <object class="GtkSwitch"/> + <object class="GtkToggleButton" id="edit"> + <property name="icon-name">document-edit-symbolic</property> + <!-- Custom object fragments --> + <property name="active" bind-source="title" bind-property="editing" bind-flags="sync-create"/> + </object> + </child> + <child> + <object class="GtkSwitch"> + <property name="valign">center</property> + </object> </child> <style> <class name="suffixes"/> |
