From 7e5d8a8d5471b5d02bb219669f88c91d05e93486 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Mon, 25 Feb 2013 20:16:46 -0500 Subject: [PATCH] workspace: Make positionWindows private It's not used outside, and it's going to be broken up soon. https://bugzilla.gnome.org/show_bug.cgi?id=694469 --- js/ui/workspace.js | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/js/ui/workspace.js b/js/ui/workspace.js index 338d0b9ae..2bbe56a2b 100644 --- a/js/ui/workspace.js +++ b/js/ui/workspace.js @@ -961,7 +961,7 @@ const Workspace = new Lang.Class({ return false; })); - this.positionWindows(WindowPositionFlags.NONE); + this._positionWindows(WindowPositionFlags.NONE); }, _lookupIndex: function (metaWindow) { @@ -989,16 +989,10 @@ const Workspace = new Lang.Class({ clone = null; this._reservedSlot = clone; - this.positionWindows(WindowPositionFlags.ANIMATE); + this._positionWindows(WindowPositionFlags.ANIMATE); }, - /** - * positionWindows: - * @flags: - * INITIAL - this is the initial positioning of the windows. - * ANIMATE - Indicates that we need animate changing position. - */ - positionWindows: function(flags) { + _positionWindows: function(flags) { this._positionWindowsFlags |= flags; if (this._positionWindowsId > 0) @@ -1161,7 +1155,7 @@ const Workspace = new Lang.Class({ return true; } - this.positionWindows(WindowPositionFlags.ANIMATE); + this._positionWindows(WindowPositionFlags.ANIMATE); return false; }, @@ -1264,7 +1258,7 @@ const Workspace = new Lang.Class({ clone.overlay.relayout(false); } - this.positionWindows(WindowPositionFlags.ANIMATE); + this._positionWindows(WindowPositionFlags.ANIMATE); }, _windowAdded : function(metaWorkspace, metaWin) { @@ -1303,9 +1297,9 @@ const Workspace = new Lang.Class({ zoomToOverview : function() { // Position and scale the windows. if (Main.overview.animationInProgress) - this.positionWindows(WindowPositionFlags.ANIMATE | WindowPositionFlags.INITIAL); + this._positionWindows(WindowPositionFlags.ANIMATE | WindowPositionFlags.INITIAL); else - this.positionWindows(WindowPositionFlags.INITIAL); + this._positionWindows(WindowPositionFlags.INITIAL); }, // Animates the return from Overview mode @@ -1429,7 +1423,7 @@ const Workspace = new Lang.Class({ })); clone.connect('size-changed', Lang.bind(this, function() { - this.positionWindows(WindowPositionFlags.NONE); + this._positionWindows(WindowPositionFlags.NONE); })); this.actor.add_actor(clone.actor);