name of zeitgeist_event_set_payload does not indicate ownership transfer

Bug #1059666 reported by Simon McVittie
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libzeitgeist
New
Undecided
Unassigned

Bug Description

Functions that take ownership of a "full" (not floating) reference, i.e. (transfer full) in GObject-Introspection notation, are generally called foo_take_bar(). A function called foo_set_bar() is usually (transfer none).

If you wanted to make this clearer without breaking API, it would be possible to add a zeitgeist_event_take_payload() (with the same semantics) and deprecate zeitgeist_event_set_payload(), for instance.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.