Gcr.FilterCollection.new_with_callback
function new_with_callback(underlying: Gcr.Collection, callback: Gcr.FilterCollectionFunc): Gcr.FilterCollection { // Gjs wrapper for gcr_filter_collection_new_with_callback() }
Create a new Gcr.FilterCollection.
The callback should return true if an object should appear in the filtered collection.
If a null callback is set, then all underlynig objects will appear in the filtered collection.
- underlying
the underlying collection
- callback
function to call for each object
- Returns
a newly allocated filtered collection, which should be freed with g_object_unref()