event-editor: Add a custom widget for the event organizer row

Move the AdwActionRow for the event organizer into its own widget. In
preparation for further widget customization.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/671>
This commit is contained in:
mindonwarp
2026-01-21 19:37:55 +00:00
committed by Marge Bot
parent 79a37917c7
commit f8a9ea1973
7 changed files with 305 additions and 20 deletions
@@ -0,0 +1,28 @@
using Gtk 4.0;
using Adw 1;
template $GcalOrganizerRow: Adw.ActionRow {
title: _("Organizer");
subtitle: bind $generate_subtitle(template.organizer) as <string>;
styles [
"property",
]
GestureClick gesture_click {
button: 3;
}
}
PopoverMenu context_menu {
menu-model: context_menu_model;
has-arrow: false;
halign: start;
}
menu context_menu_model {
item {
label: _("Copy email");
action: "organizer-row.copy-email";
}
}