overviewControls: Remove dead code
The parent SlidingControl had an onOverviewShowing, but we had overridden it with the same code in both subclasses. Just move it back to SlidingControl.
This commit is contained in:
@ -168,11 +168,10 @@ const SlidingControl = new Lang.Class({
|
|||||||
},
|
},
|
||||||
|
|
||||||
_onOverviewShowing: function() {
|
_onOverviewShowing: function() {
|
||||||
// reset any translation and make sure the actor is visible when
|
|
||||||
// entering the overview
|
|
||||||
this.visible = true;
|
this.visible = true;
|
||||||
this.layout.slideX = this.getSlide();
|
this.layout.slideX = this.getSlide();
|
||||||
this.actor.translation_x = 0;
|
this.actor.translation_x = this._getTranslation();
|
||||||
|
this.slideIn();
|
||||||
},
|
},
|
||||||
|
|
||||||
_onWindowDragBegin: function() {
|
_onWindowDragBegin: function() {
|
||||||
@ -273,13 +272,6 @@ const ThumbnailsSlider = new Lang.Class({
|
|||||||
return alwaysZoomOut;
|
return alwaysZoomOut;
|
||||||
},
|
},
|
||||||
|
|
||||||
_onOverviewShowing: function() {
|
|
||||||
this.visible = true;
|
|
||||||
this.layout.slideX = this.getSlide();
|
|
||||||
this.actor.translation_x = this._getTranslation();
|
|
||||||
this.slideIn();
|
|
||||||
},
|
|
||||||
|
|
||||||
getNonExpandedWidth: function() {
|
getNonExpandedWidth: function() {
|
||||||
let child = this.actor.get_first_child();
|
let child = this.actor.get_first_child();
|
||||||
return child.get_theme_node().get_length('visible-width');
|
return child.get_theme_node().get_length('visible-width');
|
||||||
@ -340,13 +332,6 @@ const DashSlider = new Lang.Class({
|
|||||||
return 0;
|
return 0;
|
||||||
},
|
},
|
||||||
|
|
||||||
_onOverviewShowing: function() {
|
|
||||||
this.visible = true;
|
|
||||||
this.layout.slideX = this.getSlide();
|
|
||||||
this.actor.translation_x = this._getTranslation();
|
|
||||||
this.slideIn();
|
|
||||||
},
|
|
||||||
|
|
||||||
_onWindowDragBegin: function() {
|
_onWindowDragBegin: function() {
|
||||||
this.fadeHalf();
|
this.fadeHalf();
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user