[gnome-boxes] machine: Use explicit transition for prop->display animation
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] machine: Use explicit transition for prop->display animation
- Date: Wed, 26 Jun 2013 15:18:43 +0000 (UTC)
commit d681d1e47104eca8e9310203ab1f1f2d8a328fa5
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Wed Jun 26 18:09:08 2013 +0300
machine: Use explicit transition for prop->display animation
This patch is needed on the same grounds as 2f4b859 (app: Use explicit
transition for display->collection) as it fixes prop->display animation
when linked against Clutter 1.16.
src/machine.vala | 15 +++++----------
1 files changed, 5 insertions(+), 10 deletions(-)
---
diff --git a/src/machine.vala b/src/machine.vala
index 7554701..530e441 100644
--- a/src/machine.vala
+++ b/src/machine.vala
@@ -785,20 +785,15 @@ private class Boxes.MachineActor: Boxes.UI {
App.app.properties.screenshot_placeholder.disconnect (track_screenshot_id);
track_screenshot_id = 0;
- thumbnail.set_easing_duration (App.app.duration);
- thumbnail.x_align = Clutter.ActorAlign.FILL;
- thumbnail.y_align = Clutter.ActorAlign.FILL;
- thumbnail.x_expand = true;
- thumbnail.y_expand = true;
- thumbnail.fixed_position_set = false;
- thumbnail.min_width_set = thumbnail.natural_width_set = false;
- thumbnail.min_height_set = thumbnail.natural_height_set = false;
-
- thumbnail.transitions_completed.connect (() => {
+ var transition = animate_actor_geometry (x, y, width, height);
+ transition.completed.connect (() => {
+ thumbnail.remove_transition ("back-from-properties");
var widget = steal_display_widget_from_thumbnail ();
if (widget != null)
App.app.display_page.show_display (machine.display, widget);
});
+
+ thumbnail.add_transition ("back-from-properties", transition);
} else
App.app.display_page.show ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]