commit ec9a023e0f570890acb5ec692b85bddf70ca5d83
Author: Joost Verdoorn <joost@Monster.(none)>
Date:   Sun Mar 11 23:47:55 2012 +0100

    workspacesView: 
    
    Refactored the private workspacesDisplay._controls to 
    public workspacesDisplay.controls, to allow outside 
    accessing.

diff --git a/js/ui/workspacesView.js b/js/ui/workspacesView.js
index eed675e..95c3cd2 100644
--- a/js/ui/workspacesView.js
+++ b/js/ui/workspacesView.js
@@ -482,7 +482,7 @@ const WorkspacesDisplay = new Lang.Class({
                                     request_mode: Clutter.RequestMode.WIDTH_FOR_HEIGHT,
                                     y_align: St.Align.START,
                                     y_fill: true });
-        this._controls = controls;
+        this.controls = controls;
         this.actor.add_actor(controls);
 
         controls.reactive = true;
@@ -547,7 +547,7 @@ const WorkspacesDisplay = new Lang.Class({
         this._zoomFraction = this._alwaysZoomOut ? 1 : 0;
         this._updateZoom();
 
-        this._controls.show();
+        this.controls.show();
         this._thumbnailsBox.show();
 
         this._updateWorkspacesViews();
@@ -588,7 +588,7 @@ const WorkspacesDisplay = new Lang.Class({
     },
 
     hide: function() {
-        this._controls.hide();
+        this.controls.hide();
         this._thumbnailsBox.hide();
 
         if (this._restackedNotifyId > 0){
@@ -770,12 +770,12 @@ const WorkspacesDisplay = new Lang.Class({
 
     _getPreferredWidth: function (actor, forHeight, alloc) {
         // pass through the call in case the child needs it, but report 0x0
-        this._controls.get_preferred_width(forHeight);
+        this.controls.get_preferred_width(forHeight);
     },
 
     _getPreferredHeight: function (actor, forWidth, alloc) {
         // pass through the call in case the child needs it, but report 0x0
-        this._controls.get_preferred_height(forWidth);
+        this.controls.get_preferred_height(forWidth);
     },
 
     _allocate: function (actor, box, flags) {
@@ -784,10 +784,10 @@ const WorkspacesDisplay = new Lang.Class({
         let totalWidth = box.x2 - box.x1;
 
         // width of the controls
-        let [controlsMin, controlsNatural] = this._controls.get_preferred_width(box.y2 - box.y1);
+        let [controlsMin, controlsNatural] = this.controls.get_preferred_width(box.y2 - box.y1);
 
         // Amount of space on the screen we reserve for the visible control
-        let controlsVisible = this._controls.get_theme_node().get_length('visible-width');
+        let controlsVisible = this.controls.get_theme_node().get_length('visible-width');
         let controlsReserved = controlsVisible * (1 - this._zoomFraction) + controlsNatural * this._zoomFraction;
 
         let rtl = (Clutter.get_default_text_direction () == Clutter.TextDirection.RTL);
@@ -801,7 +801,7 @@ const WorkspacesDisplay = new Lang.Class({
 
         childBox.y1 = 0;
         childBox.y2 = box.y2- box.y1;
-        this._controls.allocate(childBox, flags);
+        this.controls.allocate(childBox, flags);
 
         this._updateWorkspacesGeometry();
     },
@@ -845,8 +845,8 @@ const WorkspacesDisplay = new Lang.Class({
         let width = fullWidth;
         let height = fullHeight;
 
-        let [controlsMin, controlsNatural] = this._controls.get_preferred_width(height);
-        let controlsVisible = this._controls.get_theme_node().get_length('visible-width');
+        let [controlsMin, controlsNatural] = this.controls.get_preferred_width(height);
+        let controlsVisible = this.controls.get_theme_node().get_length('visible-width');
 
         let [x, y] = this.actor.get_transformed_position();
 
@@ -977,7 +977,7 @@ const WorkspacesDisplay = new Lang.Class({
         if (Main.overview.animationInProgress)
             return;
 
-        let shouldZoom = this._alwaysZoomOut || this._controls.hover;
+        let shouldZoom = this._alwaysZoomOut || this.controls.hover;
         if (shouldZoom != this._zoomOut) {
             this._zoomOut = shouldZoom;
             this._updateWorkspacesGeometry();
@@ -1014,8 +1014,8 @@ const WorkspacesDisplay = new Lang.Class({
     },
 
     _onDragMotion: function(dragEvent) {
-        let controlsHovered = this._controls.contains(dragEvent.targetActor);
-        this._controls.set_hover(controlsHovered);
+        let controlsHovered = this.controls.contains(dragEvent.targetActor);
+        this.controls.set_hover(controlsHovered);
 
         return DND.DragMotionResult.CONTINUE;
     },
