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 700051 - "Zoom In" doesn't animate when called from menu
"Zoom In" doesn't animate when called from menu
Status: RESOLVED FIXED
Product: totem
Classification: Core
Component: GStreamer backend
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Maintainer alias for GStreamer component of Totem
Maintainer alias for GStreamer component of Totem
Depends on:
Blocks:
 
 
Reported: 2013-05-10 09:32 UTC by Bastien Nocera
Modified: 2013-07-03 09:23 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
backend: prevent excessive relayouts stopping animations (5.99 KB, patch)
2013-07-02 17:22 UTC, Lionel Landwerlin
accepted-commit_now Details | Review

Description Bastien Nocera 2013-05-10 09:32:23 UTC
R/T buttons will animate the transition between zoomed in and zoomed out.

Doing the same thing from the cogwheel menu will cause the "set_rotation_internal()" function to be called with animate == TRUE, but when the menu is dismissed, _allocate() will be called, which will call set_rotation_internal() with animate == FALSE (short-circuiting the animation).
Comment 1 Lionel Landwerlin 2013-05-29 23:19:21 UTC
What's the cogwheel menu?
I can't reproduce from the totem menubar (ie View->Rotate Clockwise).
What's the GTK+ version you've reproduced with?
Comment 2 Bastien Nocera 2013-06-13 15:51:14 UTC
(In reply to comment #1)
> What's the cogwheel menu?

Top-right in totem master, when in the player view.

> I can't reproduce from the totem menubar (ie View->Rotate Clockwise).

That menu doesn't exist any more on master.

> What's the GTK+ version you've reproduced with?

master.
Comment 3 Lionel Landwerlin 2013-07-02 01:43:06 UTC
My quick first investigation shows that every time the duration/elapsed time is updated, we basically relayout the entire embedded ClutterStage. And that stops any animation.
I haven't figured out why (especially independent parts like the video), but I'll continue digging.
Comment 4 Lionel Landwerlin 2013-07-02 17:22:37 UTC
Created attachment 248249 [details] [review]
backend: prevent excessive relayouts stopping animations
Comment 5 Bastien Nocera 2013-07-03 08:14:38 UTC
Review of attachment 248249 [details] [review]:

Looks good but could you go into more details as to how you're fixing the problem in the commit message?
Something like "We're now using a separate layout to ensure that all the actors (video, logo, etc.) get to use the full size of the widget"

Also mention the original issue (rotate animation not working) being fixed.
Comment 6 Lionel Landwerlin 2013-07-03 09:23:07 UTC
Pushed a simplified version of the patch to master with better comments.