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>
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
using Gtk 4.0;
|
||||
|
||||
template $GcalAgendaView: Box {
|
||||
orientation: vertical;
|
||||
|
||||
$GcalDateChooser date_chooser {
|
||||
split-month-year: false;
|
||||
vexpand: false;
|
||||
valign: end;
|
||||
active-date: bind template.active-date no-sync-create bidirectional;
|
||||
}
|
||||
|
||||
ScrolledWindow scrolled_window {
|
||||
hexpand: true;
|
||||
vexpand: true;
|
||||
|
||||
ListBox list_box {
|
||||
hexpand: true;
|
||||
selection-mode: none;
|
||||
vexpand: true;
|
||||
row-activated => $on_list_box_row_activated_cb(template) not-swapped;
|
||||
|
||||
ListBoxRow no_events_row {
|
||||
activatable: false;
|
||||
|
||||
child: Label {
|
||||
label: _("No events");
|
||||
xalign: 0;
|
||||
|
||||
styles [
|
||||
"no-events",
|
||||
"dim-label",
|
||||
]
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user