calendars-page: Port to AdwPreferencesPage

This simplifies the UI code a bit.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/446>
This commit is contained in:
Automeris naranja
2026-02-21 21:35:09 -05:00
committed by Hari Rana
parent 66a8c6b7ab
commit 6950324d17
@@ -10,22 +10,8 @@ template $GcalCalendarsPage: Adw.NavigationPage {
[top] [top]
Adw.HeaderBar {} Adw.HeaderBar {}
content: ScrolledWindow { content: Adw.PreferencesPage {
hexpand: true; Adw.PreferencesGroup {
hscrollbar-policy: never;
max-content-height: 900;
propagate-natural-height: true;
child: Adw.Clamp {
child: Box {
orientation: vertical;
spacing: 24;
margin-top: 24;
margin-bottom: 24;
margin-start: 12;
margin-end: 12;
valign: start;
ListBox listbox { ListBox listbox {
selection-mode: none; selection-mode: none;
row-activated => $on_listbox_row_activated_cb(template) not-swapped; row-activated => $on_listbox_row_activated_cb(template) not-swapped;
@@ -35,8 +21,7 @@ template $GcalCalendarsPage: Adw.NavigationPage {
"boxed-list", "boxed-list",
] ]
} }
}; }
};
}; };
[bottom] [bottom]