[gnome-boxes] Remove use of deprecated actor methods



commit ee9b04dfbe5bb658f14ba048706fa07375e07e0c
Author: Alexander Larsson <alexl redhat com>
Date:   Fri Jun 1 15:37:36 2012 +0200

    Remove use of deprecated actor methods
    
    https://bugzilla.gnome.org/show_bug.cgi?id=677274

 src/util.vala |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/util.vala b/src/util.vala
index c6b630d..6d30426 100644
--- a/src/util.vala
+++ b/src/util.vala
@@ -250,21 +250,21 @@ namespace Boxes {
         actor.restore_easing_state ();
     }
 
-    public void actor_add (Clutter.Actor actor, Clutter.Container container) {
-        if (actor.get_parent () == (Clutter.Actor) container)
+    public void actor_add (Clutter.Actor actor, Clutter.Actor container) {
+        if (actor.get_parent () == container)
             return;
 
         actor_remove (actor);
-        container.add (actor);
+        container.add_child (actor);
     }
 
     public void actor_remove (Clutter.Actor actor) {
-        var container = actor.get_parent () as Clutter.Container;
+        var container = actor.get_parent ();
 
         if (container == null)
             return;
 
-        container.remove (actor);
+        container.remove_child (actor);
     }
 
     public void actor_pin (Clutter.Actor actor) {



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