event-editor/attendee-details-page: Use AdwPreferencesGroup API
AdwPreferencesGroup now has the `bind_model()` method, so it's best to just use that. Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/781>
This commit is contained in:
@@ -12,69 +12,29 @@ template $GcalAttendeeDetailsPage: Adw.NavigationPage {
|
||||
}
|
||||
|
||||
content: Adw.PreferencesPage {
|
||||
Adw.PreferencesGroup {
|
||||
Adw.PreferencesGroup group_accepted {
|
||||
title: _("Accepted");
|
||||
visible: bind template.model-accepted as <Gtk.FilterListModel>.n-items;
|
||||
|
||||
ListBox list_accepted {
|
||||
selection-mode: none;
|
||||
|
||||
styles [
|
||||
"boxed-list",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Adw.PreferencesGroup {
|
||||
Adw.PreferencesGroup group_tentative {
|
||||
title: _("Tentative");
|
||||
visible: bind template.model-tentative as <Gtk.FilterListModel>.n-items;
|
||||
|
||||
ListBox list_tentative {
|
||||
selection-mode: none;
|
||||
|
||||
styles [
|
||||
"boxed-list",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Adw.PreferencesGroup {
|
||||
Adw.PreferencesGroup group_declined {
|
||||
title: _("Declined");
|
||||
visible: bind template.model-declined as <Gtk.FilterListModel>.n-items;
|
||||
|
||||
ListBox list_declined {
|
||||
selection-mode: none;
|
||||
|
||||
styles [
|
||||
"boxed-list",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Adw.PreferencesGroup {
|
||||
Adw.PreferencesGroup group_delegated {
|
||||
title: _("Delegated");
|
||||
visible: bind template.model-delegated as <Gtk.FilterListModel>.n-items;
|
||||
|
||||
ListBox list_delegated {
|
||||
selection-mode: none;
|
||||
|
||||
styles [
|
||||
"boxed-list",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Adw.PreferencesGroup {
|
||||
Adw.PreferencesGroup group_not_responded {
|
||||
title: _("Not responded");
|
||||
visible: bind template.model-not-responded as <Gtk.FilterListModel>.n-items;
|
||||
|
||||
ListBox list_not_responded {
|
||||
selection-mode: none;
|
||||
|
||||
styles [
|
||||
"boxed-list",
|
||||
]
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user