[Bug 39189] [API Break] Use GPtrArray as our preferred container for collections

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Feb 22 20:39:25 CET 2012


https://bugs.freedesktop.org/show_bug.cgi?id=39189

--- Comment #2 from Simon McVittie <simon.mcvittie at collabora.co.uk> 2012-02-22 11:39:25 PST ---
(In reply to comment #1)
> In GIO, [... most things ...] return a (transfer full) GList

I think our (transfer container) convention may have come from Gtk, which seems
to return mostly (transfer container), quite a lot of (transfer full), and
occasionally (transfer none) just to confuse you. Gtk doesn't return any
GPtrArrays either.

If we ever want to be thread-safe, we basically have to return (transfer full),
or a freshly constructed GPtrArray (not just a ref to our internal cache) with
a free-function and (transfer container).

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.
You are the assignee for the bug.



More information about the telepathy-bugs mailing list