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>
27 lines
557 B
Plaintext
27 lines
557 B
Plaintext
using Gtk 4.0;
|
|
using Adw 1;
|
|
|
|
template $GcalCalendarList: Adw.Bin {
|
|
child: ScrolledWindow {
|
|
hscrollbar-policy: never;
|
|
propagate-natural-height: true;
|
|
propagate-natural-width: true;
|
|
|
|
child: Adw.Clamp {
|
|
maximum-size: 800;
|
|
tightening-threshold: 800;
|
|
|
|
child: ListBox calendar_listbox {
|
|
hexpand: true;
|
|
selection-mode: none;
|
|
row-activated => $on_listbox_row_activated_cb(template) not-swapped;
|
|
|
|
styles [
|
|
"navigation-sidebar",
|
|
"calendar-list",
|
|
]
|
|
};
|
|
};
|
|
};
|
|
}
|