This was mostly done with `blueprint-compiler port`. Since Blueprint doesn't know about custom templates, I had to manually change some values from strings to literals. Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/567>
37 lines
726 B
Plaintext
37 lines
726 B
Plaintext
using Gtk 4.0;
|
|
using Adw 1;
|
|
|
|
template $GcalTimeChooserRow: Adw.EntryRow {
|
|
EventControllerFocus {
|
|
notify::contains-focus => $on_contains_focus_changed_cb(template) not-swapped;
|
|
}
|
|
|
|
MenuButton {
|
|
icon-name: "clock-alt-symbolic";
|
|
valign: center;
|
|
tooltip-text: _("Edit Time");
|
|
|
|
popover: Popover {
|
|
position: bottom;
|
|
margin-top: 12;
|
|
margin-bottom: 12;
|
|
margin-start: 12;
|
|
margin-end: 12;
|
|
|
|
$GcalTimeSelector time_selector {
|
|
notify::time => $on_time_selected_changed_cb(template) not-swapped;
|
|
}
|
|
|
|
show => $on_time_popover_shown_cb(template) not-swapped;
|
|
};
|
|
|
|
accessibility {
|
|
label: _("Edit time");
|
|
}
|
|
|
|
styles [
|
|
"flat",
|
|
]
|
|
}
|
|
}
|