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 683424 - Zoom in animation on starting box is broken on second try
Zoom in animation on starting box is broken on second try
Status: RESOLVED FIXED
Product: gnome-boxes
Classification: Applications
Component: general
3.5.x (unsupported)
Other Linux
: Normal normal
: --
Assigned To: GNOME Boxes maintainer(s)
GNOME Boxes maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2012-09-05 14:45 UTC by Alexander Larsson
Modified: 2016-03-31 13:54 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix zoom in animation when starting box. (13.00 KB, patch)
2012-09-05 14:51 UTC, Alexander Larsson
reviewed Details | Review
Fix zoom in animation when starting box. (12.51 KB, patch)
2012-09-06 11:45 UTC, Alexander Larsson
none Details | Review
Fix zoom in animation when starting box. (13.00 KB, patch)
2012-09-06 12:26 UTC, Alexander Larsson
committed Details | Review

Description Alexander Larsson 2012-09-05 14:45:41 UTC
When clicking on a box the first time it zooms to the center.
But the second (and after) time it stays in place.
This seems to be a regression in how clutter handles BinLayout stuff due to deprecations.
I've attached a port of boxes BinLayout use to not use the deprecated BinLayout.add and corresponding alignments, instead directly using actor.x/y_align etc. This fixes the issue.
Comment 1 Alexander Larsson 2012-09-05 14:51:29 UTC
Created attachment 223546 [details] [review]
Fix zoom in animation when starting box.

When clicking on a box the first time it zooms to the center.
But the second (and after) time it stays in place.

Dropping the deprecated ClutterBinAlignment stuff and using the
new clutter 1.12 ClutterActor.x/y_align properties fixes this.
Comment 2 Marc-Andre Lureau 2012-09-06 08:38:49 UTC
Review of attachment 223546 [details] [review]:

::: src/libvirt-machine.vala
@@ +32,3 @@
         update_display ();
         display.connect_it ();
+        _connect_display = true;

that shouldn't be there
Comment 3 Marc-Andre Lureau 2012-09-06 08:45:05 UTC
Review of attachment 223546 [details] [review]:

- the position in properties page is wrong
- it doesn't animate back to the collection item but to the center
Comment 4 Alexander Larsson 2012-09-06 11:45:33 UTC
Created attachment 223637 [details] [review]
Fix zoom in animation when starting box.

When clicking on a box the first time it zooms to the center.
But the second (and after) time it stays in place.

Dropping the deprecated ClutterBinAlignment stuff and using the
new clutter 1.12 ClutterActor.x/y_align properties fixes this.
Comment 5 Alexander Larsson 2012-09-06 11:48:37 UTC
Updated patch without the leftover _connect_display change.

However, it does animate to the right place for me, and the property page position seems right to me.

Also, I built this on another box that had an earlier clutter, and the original bug didn't appear until I built the latest clutter.

Marc-Andre: What clutter version did you try with? I have current git master which seems to be essentially 1.11.14.
Comment 6 Christophe Fergeau 2012-09-06 11:59:38 UTC
Fwiw, I was seeing the issue you described in this bug, and your patch fixes it. I'm not seeing the issues Marc-André describes.
Comment 7 Marc-Andre Lureau 2012-09-06 12:04:42 UTC
(In reply to comment #5)
> Marc-Andre: What clutter version did you try with? I have current git master
> which seems to be essentially 1.11.14.

Apparently I was using, 1.11.10-2-g2c20de0. After update to git master, it seems to work ok (not really better than before anyway). We should bump clutter dependency if we apply this patch I guess?

(the patch doesn't apply cleanly anymore, but manually with patch)
Comment 8 Alexander Larsson 2012-09-06 12:26:45 UTC
Created attachment 223642 [details] [review]
Fix zoom in animation when starting box.

When clicking on a box the first time it zooms to the center.
But the second (and after) time it stays in place.

Dropping the deprecated ClutterBinAlignment stuff and using the
new clutter 1.12 ClutterActor.x/y_align properties fixes this.

This also bumps the clutter requirement as this seems to only
work on the most recent versions.
Comment 9 Alexander Larsson 2012-09-06 12:27:26 UTC
New rebased patch with clutter dependency raised
Comment 10 Marc-Andre Lureau 2012-09-06 12:31:02 UTC
Review of attachment 223642 [details] [review]:

ack
Comment 11 Alexander Larsson 2012-09-06 12:35:27 UTC
Attachment 223642 [details] pushed as 4e99713 - Fix zoom in animation when starting box.