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:
@@ -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";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user