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 700306 - util: Use explicit transition for fading actors
util: Use explicit transition for fading actors
Status: RESOLVED FIXED
Product: gnome-boxes
Classification: Applications
Component: general
unspecified
Other All
: Normal normal
: 3.22
Assigned To: GNOME Boxes maintainer(s)
GNOME Boxes maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2013-05-14 15:06 UTC by Zeeshan Ali
Modified: 2016-03-31 13:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
util: Use explicit transition for fading actors (2.14 KB, patch)
2013-05-14 15:06 UTC, Zeeshan Ali
none Details | Review
util: Use explicit transition for fading actors (2.36 KB, patch)
2013-05-14 15:29 UTC, Zeeshan Ali
committed Details | Review

Description Zeeshan Ali 2013-05-14 15:06:02 UTC
See patch
Comment 1 Zeeshan Ali 2013-05-14 15:06:04 UTC
Created attachment 244190 [details] [review]
util: Use explicit transition for fading actors

As strongly suggested by ebassi on IRC:

<ebassi> [19:34:50] zeenix: and I would *strongly* suggest you use a
proper ClutterTransition in this case, instead of relying on implicit
animations, since you're controlling the start and end states, and you
want to get notifications
Comment 2 Zeeshan Ali 2013-05-14 15:29:53 UTC
Created attachment 244195 [details] [review]
util: Use explicit transition for fading actors

As strongly suggested by ebassi on IRC:

<ebassi> [19:34:50] zeenix: and I would *strongly* suggest you use a
proper ClutterTransition in this case, instead of relying on implicit
animations, since you're controlling the start and end states, and you
want to get notifications

Besides being the right thing to do here, this also fixes the issue of
boxes unable to change the actor visibility at the end of transition and
avoid the warning on console about transition being null against clutter
1.16.
Comment 3 Christophe Fergeau 2013-05-14 19:10:50 UTC
Review of attachment 244195 [details] [review]:

Even if it's strongly recommended to do what is in that patch, isn't it a clutter bug that there are warnings if we choose not to folow the recommendation?
Comment 4 Zeeshan Ali 2013-05-14 19:23:10 UTC
Review of attachment 244195 [details] [review]:

It actually is a clutter bug that we get a NULL from actor.get_transition() even if the transition is skipped for certain cases by clutter. ebassi actually asked me to provide him a test case for the failing scenerio and I didn't get to do that. :( I'll update the commit log to reflect that this patch 'works around' a clutter issue rather than 'fixing' it.
Comment 5 Zeeshan Ali 2013-05-14 19:24:58 UTC
Attachment 244195 [details] pushed as c142c3a - util: Use explicit transition for fading actors
Comment 6 Christophe Fergeau 2013-05-14 20:10:51 UTC
(In reply to comment #4)
> :( I'll update the commit log to reflect that this patch 'works
> around' a clutter issue rather than 'fixing' it.

I would have preferred a link to a bug report ;)