Hi, I am a developer working on GNOME Logs and I wanted to ask a doubt regarding GListModel <https://developer.gnome.org/gio/stable/GListModel.html>.
I am working on this gnome-logs bug: https://bugzilla.gnome. org/show_bug.cgi?id=767995 Moving the sorting functionality to the model from the view is my main motive. Currently, the items in the array represented by the model is filled up in a descending order fashion. The model is bound to a listbox using gtk_list_box_bind_model () <https://developer.gnome.org/gtk3/unstable/GtkListBox.html#gtk-list-box-bind-model>. I want to reverse the items in the array (i.e. arrange in ascending order). So, is this possible using the g_list_model_items_changed() <https://developer.gnome.org/gio/stable/GListModel.html#g-list-model-items-changed> API without actually making any changes in the model array (i.e. keep the model array in original descending order). I am not able to get it from the documentation specified for g_list_model_items_changed() on how it is possible to show the items in a reverse order without modifying the array represented by the model. Can someone guide me through this. Regards, Pranav _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list