[ease/animate_zoom: 6/6] EditorWindow zoom animation - problem implementeing Clutter.Animatable.



commit 31a549d20db1f529cc2e5eeb304fff575885e631
Author: Nate Stedman <natesm gmail com>
Date:   Wed May 19 23:36:45 2010 -0400

    EditorWindow zoom animation - problem implementeing Clutter.Animatable.

 src/libease/EditorWindow.vala |   15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)
---
diff --git a/src/libease/EditorWindow.vala b/src/libease/EditorWindow.vala
index 3f4388c..deeed01 100644
--- a/src/libease/EditorWindow.vala
+++ b/src/libease/EditorWindow.vala
@@ -23,7 +23,7 @@
  * controls. The window is linked to a { link Document}, and all changes
  * are made directly to that object.
  */
-public class Ease.EditorWindow : Gtk.Window
+public class Ease.EditorWindow : Gtk.Window, Clutter.Animatable
 {
 	// interface elements
 	public EditorEmbed embed;
@@ -32,7 +32,10 @@ public class Ease.EditorWindow : Gtk.Window
 	public Gtk.HBox slides;
 	public TransitionPane pane_transition;
 	public SlidePane pane_slide;
+	
+	// zoom
 	public ZoomSlider zoom_slider;
+	private Clutter.Animation zoom_animation;
 
 	// the player for this window
 	private Player player;
@@ -336,5 +339,15 @@ public class Ease.EditorWindow : Gtk.Window
 		align.add(vbox);
 		return align;
 	}
+	
+	public bool animate_property(Clutter.Animation animation,
+	                             string property_name,
+	                             Value initial_value,
+	                             Value final_value,
+	                             double progress,
+	                             Value val)
+	{
+		return true;
+	}
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]