event-editor/schedule-section: Use separate-rows property in all-day section

`separate-rows` already does what we want, and using that property
allows us to nesting AdwPreferencesGroup into a GtkBox widget.

Co-authored-by: Jamie Gravendeel <me@jamie.garden>
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/781>
This commit is contained in:
Hari Rana
2026-06-23 14:10:28 -04:00
co-authored by Jamie Gravendeel
parent 8bbaeb754b
commit 4f037132fe
2 changed files with 8 additions and 17 deletions
+8 -13
View File
@@ -18,22 +18,17 @@ template $GcalScheduleSection: Box {
name: "all-day";
use-underline: true;
child: Box {
orientation: vertical;
spacing: 12;
child: Adw.PreferencesGroup {
separate-rows: true;
Adw.PreferencesGroup start_date_group {
$GcalDateChooserRow start_date_row {
title: _("Start Date");
notify::date => $on_start_date_changed_cb(template) not-swapped;
}
$GcalDateChooserRow start_date_row {
title: _("Start Date");
notify::date => $on_start_date_changed_cb(template) not-swapped;
}
Adw.PreferencesGroup end_date_group {
$GcalDateChooserRow end_date_row {
title: _("End Date");
notify::date => $on_end_date_changed_cb(template) not-swapped;
}
$GcalDateChooserRow end_date_row {
title: _("End Date");
notify::date => $on_end_date_changed_cb(template) not-swapped;
}
};
}