After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 768734 - actor: Clarify that add_effect() sinks floating references on the effect
actor: Clarify that add_effect() sinks floating references on the effect
Status: RESOLVED FIXED
Product: clutter
Classification: Platform
Component: ClutterActor
unspecified
Other All
: Normal normal
: ---
Assigned To: clutter-maint
clutter-maint
Depends on:
Blocks:
 
 
Reported: 2016-07-12 13:49 UTC by Philip Withnall
Modified: 2016-07-12 15:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
actor: Clarify that add_effect() sinks floating references on the effect (1.45 KB, patch)
2016-07-12 13:49 UTC, Philip Withnall
committed Details | Review

Description Philip Withnall 2016-07-12 13:49:56 UTC
Trivial documentation patch attached.
Comment 1 Philip Withnall 2016-07-12 13:49:59 UTC
Created attachment 331328 [details] [review]
actor: Clarify that add_effect() sinks floating references on the effect

So if you want to reuse a ClutterEffect, make sure to
g_object_ref_sink() it yourself first.
Comment 2 Emmanuele Bassi (:ebassi) 2016-07-12 14:32:07 UTC
Review of attachment 331328 [details] [review]:

It kind of goes with the territory of inheriting from GInitiallyUnowned, and we don't really mention it in other places — for instance, in the whole API dealing with children actors.

Anyway, it looks good.
Comment 3 Philip Withnall 2016-07-12 15:47:56 UTC
True, although it was definitely not clear to me that ClutterEffect was a GInitiallyUnowned until I noticed in its inheritance tree and suddenly everything clicked about why I’d just spent a few hours tracing down some magically finalising ClutterEffects. :-)

Attachment 331328 [details] pushed as d7372cc - actor: Clarify that add_effect() sinks floating references on the effect