[gnome-shell] overviewControls: Move slideOut on overview hide to the parent as well



commit 3f1a252b91c72d8c9f3fd714d912001a0c81c7f4
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Wed Sep 18 19:13:35 2013 -0400

    overviewControls: Move slideOut on overview hide to the parent as well

 js/ui/overviewControls.js |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/overviewControls.js b/js/ui/overviewControls.js
index fbf982f..e499ecd 100644
--- a/js/ui/overviewControls.js
+++ b/js/ui/overviewControls.js
@@ -109,6 +109,7 @@ const SlidingControl = new Lang.Class({
                                      clip_to_allocation: true });
 
         Main.overview.connect('showing', Lang.bind(this, this._onOverviewShowing));
+        Main.overview.connect('hiding', Lang.bind(this, this._onOverviewHiding));
 
         Main.overview.connect('item-drag-begin', Lang.bind(this, this._onDragBegin));
         Main.overview.connect('item-drag-end', Lang.bind(this, this._onDragEnd));
@@ -174,6 +175,10 @@ const SlidingControl = new Lang.Class({
         this.slideIn();
     },
 
+    _onOverviewHiding: function() {
+        this.slideOut();
+    },
+
     _onWindowDragBegin: function() {
         this._onDragBegin();
     },
@@ -244,7 +249,6 @@ const ThumbnailsSlider = new Lang.Class({
         this.actor.add_actor(this._thumbnailsBox.actor);
 
         Main.layoutManager.connect('monitors-changed', Lang.bind(this, this.updateSlide));
-        Main.overview.connect('hiding', Lang.bind(this, this.slideOut));
         this.actor.connect('notify::hover', Lang.bind(this, this.updateSlide));
         this._thumbnailsBox.actor.bind_property('visible', this.actor, 'visible', 
GObject.BindingFlags.SYNC_CREATE);
     },
@@ -322,7 +326,6 @@ const DashSlider = new Lang.Class({
         this.actor.add_actor(this._dash.actor);
 
         this._dash.connect('icon-size-changed', Lang.bind(this, this.updateSlide));
-        Main.overview.connect('hiding', Lang.bind(this, this.slideOut));
     },
 
     getSlide: function() {


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