event-popover: Support the maps URI for opening locations

Open gnome-maps (or other map application) when clicking on a map icon
next to the location address.

Resolves: https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/326
Signed-off-by: Alistair Francis <alistair@alistair23.me>
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/590>
This commit is contained in:
Alistair Francis
2026-04-09 12:04:11 +00:00
committed by Marge Bot
parent b0321c369d
commit 6c09758633
4 changed files with 58 additions and 11 deletions
+29 -11
View File
@@ -138,25 +138,43 @@ template $GcalEventPopover: Popover {
Separator {}
Box {
orientation: vertical;
margin-top: 12;
margin-bottom: 12;
margin-start: 18;
margin-end: 18;
spacing: 12;
Label {
halign: start;
label: _("Location");
Box {
orientation: vertical;
styles [
"heading",
]
Label {
halign: start;
label: _("Location");
styles [
"heading",
]
}
Label location_label {
halign: start;
selectable: true;
ellipsize: end;
}
}
Label location_label {
halign: start;
selectable: true;
ellipsize: end;
Button {
halign: end;
hexpand: true;
valign: center;
tooltip-text: _("Open Location");
icon-name: "map-symbolic";
styles [
"circular",
]
clicked => $on_map_button_clicked_cb(template) not-swapped;
}
}
}