Blueprint can now "infer" the type a closure returns, as long as it is not the property of a custom GType, so some of the casts (e.g. `as <string>`) will not be necessary anymore Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/733>
29 lines
451 B
Plaintext
29 lines
451 B
Plaintext
using Gtk 4.0;
|
|
using Adw 1;
|
|
|
|
template $GcalOrganizerRow: Adw.ActionRow {
|
|
title: _("Organizer");
|
|
subtitle: bind $generate_subtitle(template.organizer);
|
|
|
|
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";
|
|
}
|
|
}
|