[gnome-documents] global: don't export the clutter stage



commit 8a3ec4a1711829f2b862e3d22147057fd72fe5f6
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Sat Mar 3 22:33:09 2012 -0500

    global: don't export the clutter stage
    
    It's not longer needed

 src/global.js     |    1 -
 src/mainWindow.js |    6 +++---
 2 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/global.js b/src/global.js
index 5234795..c71892c 100644
--- a/src/global.js
+++ b/src/global.js
@@ -36,6 +36,5 @@ let searchMatchManager = null;
 let searchTypeManager = null;
 let selectionController = null;
 let settings = null;
-let stage = null;
 let sourceManager = null;
 let trackerController = null;
diff --git a/src/mainWindow.js b/src/mainWindow.js
index 93a36d3..705767f 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -56,7 +56,7 @@ MainWindow.prototype = {
         this.window.add(this._clutterEmbed);
         this._clutterEmbed.show();
 
-        Global.stage = this._clutterEmbed.get_stage();
+        let stage = this._clutterEmbed.get_stage();
 
         Global.modeController.setWindowMode(WindowMode.WindowMode.OVERVIEW);
 
@@ -99,9 +99,9 @@ MainWindow.prototype = {
         this._clutterBox = new Clutter.Box({ layout_manager: this._clutterBoxLayout });
         this._clutterBox.add_constraint(
             new Clutter.BindConstraint({ coordinate: Clutter.BindCoordinate.SIZE,
-                                         source: Global.stage }));
+                                         source: stage }));
 
-        Global.stage.add_actor(this._clutterBox);
+        stage.add_actor(this._clutterBox);
 
         // first child: searchbar filling the X axis
         this._searchbar = new Searchbar.Searchbar();



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