[cheese/wip/deprecation-fixes: 7/7] Avoid deprecated clutter_actor_animate
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cheese/wip/deprecation-fixes: 7/7] Avoid deprecated clutter_actor_animate
- Date: Fri, 19 Apr 2013 22:54:56 +0000 (UTC)
commit b23763d76d16ea500a6db36475be5398ac871b66
Author: David King <amigadave amigadave com>
Date: Fri Apr 19 20:12:19 2013 +0100
Avoid deprecated clutter_actor_animate
Use implicit animation instead.
src/cheese-window.vala | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/src/cheese-window.vala b/src/cheese-window.vala
index 67d8eed..95cbdd7 100644
--- a/src/cheese-window.vala
+++ b/src/cheese-window.vala
@@ -1097,9 +1097,14 @@ public class Cheese.MainWindow : Gtk.ApplicationWindow
viewport_layout.remove_child (current_effects_grid);
}
current_effects_grid = effects_grids.nth_data (number);
- current_effects_grid.set ("opacity", 0);
+ current_effects_grid.opacity = 0;
viewport_layout.add_child (current_effects_grid);
- current_effects_grid.animate (Clutter.AnimationMode.LINEAR, 1000, "opacity", 255);
+ current_effects_grid.save_easing_state ();
+ current_effects_grid.set_easing_mode (Clutter.AnimationMode.LINEAR);
+ current_effects_grid.set_easing_duration (500);
+ current_effects_grid.opacity = 255;
+ current_effects_grid.restore_easing_state ();
+
uint i = 0;
foreach (var effect in effects_manager.effects)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]