[gnome-shell] WorkspacesView: don't use clutter_actor_reparent()



commit 5487f8cf937e789295de81c5a89511db15d50c91
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Mon Dec 17 00:45:43 2012 +0100

    WorkspacesView: don't use clutter_actor_reparent()
    
    It's deprecated and in this case is not needed because at that point
    the actor hasn't been parented yet.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=688234

 js/ui/workspacesView.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/workspacesView.js b/js/ui/workspacesView.js
index 4d22f35..2fc3fb8 100644
--- a/js/ui/workspacesView.js
+++ b/js/ui/workspacesView.js
@@ -69,7 +69,7 @@ const WorkspacesView = new Lang.Class({
 
         // Add workspace actors
         for (let w = 0; w < global.screen.n_workspaces; w++)
-            this._workspaces[w].actor.reparent(this.actor);
+            this.actor.add_actor(this._workspaces[w].actor);
         this._workspaces[activeWorkspaceIndex].actor.raise_top();
 
         this._extraWorkspaces = [];



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