Returns a GenericArray of all the objects in the bag.
The caller owns both the array and the object references, so to free the array use:
g_ptr_array_foreach (array, (GFunc) g_object_unref, NULL);
g_ptr_array_free (array, TRUE);
this |
an array of objects in this |