event-editor/attendees-section: Inherit AdwPreferencesGroup

This is a prerequisite to make GcalEventEditorSection require
inheriting AdwPreferencesGroup.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/781>
This commit is contained in:
Hari Rana
2026-06-23 14:10:34 -04:00
parent c595d8a6e8
commit 60c9989e4b
5 changed files with 21 additions and 39 deletions
+14 -27
View File
@@ -1,33 +1,20 @@
using Gtk 4.0;
using Adw 1;
template $GcalAttendeesSection: Gtk.Box {
orientation: vertical;
hexpand: true;
valign: start;
template $GcalAttendeesSection: Adw.PreferencesGroup {
$GcalOrganizerRow organizer_row {
organizer: bind template.organizer;
}
ListBox listbox {
halign: fill;
valign: fill;
selection-mode: none;
$GcalAttendeeSummaryRow summary_row {
title: _("Participants");
attendees: bind template.attendees;
filter-flags: GCAL_EVENT_ATTENDEE_TYPE_FILTER_PERSON;
}
styles [
"boxed-list",
]
$GcalOrganizerRow organizer_row {
organizer: bind template.organizer;
}
$GcalAttendeeSummaryRow summary_row {
title: _("Participants");
attendees: bind template.attendees;
filter-flags: GCAL_EVENT_ATTENDEE_TYPE_FILTER_PERSON;
}
$GcalAttendeeSummaryRow {
title: _("Resources");
attendees: bind template.attendees;
filter-flags: GCAL_EVENT_ATTENDEE_TYPE_FILTER_RESOURCE;
}
$GcalAttendeeSummaryRow {
title: _("Resources");
attendees: bind template.attendees;
filter-flags: GCAL_EVENT_ATTENDEE_TYPE_FILTER_RESOURCE;
}
}