Files
federated-calendar/src/gui/event-editor/gcal-time-zone-dialog.blp
T
Jamie Gravendeel a509de8b1e gui: Port to Blueprint
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>
2025-06-08 14:31:01 +02:00

49 lines
1.0 KiB
Plaintext

using Gtk 4.0;
using Adw 1;
template $GcalTimeZoneDialog: Adw.Dialog {
title: _("Select Timezone");
content-width: 400;
content-height: 540;
child: Adw.ToolbarView {
[top]
Adw.HeaderBar dialog-header-bar {}
[top]
Adw.Bin {
SearchEntry location_entry {
placeholder-text: _("Search Locations");
search-changed => $on_search_changed(template) not-swapped;
stop-search => $on_stop_search_cb(template) not-swapped;
}
styles [
"toolbar",
]
}
content: Stack stack {
Adw.StatusPage empty_search {
icon-name: "loupe-large-symbolic";
title: _("Search for a Timezone");
}
Adw.PreferencesPage search_results {
Adw.PreferencesGroup {
ListBox listbox {
valign: start;
hexpand: true;
selection-mode: none;
row-activated => $on_row_activated_cb(template) not-swapped;
styles [
"boxed-list",
]
}
}
}
};
};
}