From 8bec4ebacb090f56d76ee2b5d669a5b563e2e3c6 Mon Sep 17 00:00:00 2001 From: Niels De Graef Date: Fri, 14 Jan 2022 11:09:10 +0100 Subject: Use selection and filter models to list contacts GTK4 added some interesting concepts on top of / in conjunction with list models, for example to map one list model on another by sorting and/or filtering. Another example is to use this with selections. This commit applies that concept to Contacts, which now uses the `Contacts.Store` to build a base list model on top of the `Folks.IndividualAggregator`, on top a sorted model (which can be adjusted to sort on First/Last name, and finally a filter model, to filter on the text in the search entry. Another reason to do this, is that it allows us to use a `Gtk.ListView` in the future. It's not possible to do so already due to the fact that we need to differentiate between "Favorites" and "Other Contacts", which needs extra API on Gtk.Listview side. --- po/POTFILES.in | 2 -- 1 file changed, 2 deletions(-) (limited to 'po/POTFILES.in') diff --git a/po/POTFILES.in b/po/POTFILES.in index b012851..da71055 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -10,7 +10,6 @@ data/ui/contacts-crop-dialog.ui data/ui/contacts-editor-menu.ui data/ui/contacts-link-suggestion-grid.ui data/ui/contacts-linked-personas-dialog.ui -data/ui/contacts-list-pane.ui data/ui/contacts-main-window.ui data/ui/contacts-setup-window.ui src/contacts-accounts-list.vala @@ -32,7 +31,6 @@ src/contacts-im-service.vala src/contacts-link-operation.vala src/contacts-link-suggestion-grid.vala src/contacts-linked-personas-dialog.vala -src/contacts-list-pane.vala src/contacts-main-window.vala src/contacts-operation.vala src/contacts-settings.vala -- cgit v1.2.1