appMenuButton: Rename show/hide to fadeIn/fadeOut
In the next commit, we will turn PanelMenu.ButtonBox into a St.Widget subclass. As a domino effect, PanelMenu.Button will become one too, and so will Panel.AppMenuButton. When that happens, the current show() and hide() functions in Panel.AppMenuButton will clash with Clutter.Actor's ones. To avoid that, rename these functions to fadeIn() and fadeOut() and avoid a name clash. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/153
This commit is contained in:
parent
e9f4f2e8ae
commit
dd4709bb27
@ -149,7 +149,7 @@ var AppMenuButton = new Lang.Class({
|
|||||||
this._sync();
|
this._sync();
|
||||||
},
|
},
|
||||||
|
|
||||||
show() {
|
fadeIn() {
|
||||||
if (this._visible)
|
if (this._visible)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@ -163,7 +163,7 @@ var AppMenuButton = new Lang.Class({
|
|||||||
transition: 'easeOutQuad' });
|
transition: 'easeOutQuad' });
|
||||||
},
|
},
|
||||||
|
|
||||||
hide() {
|
fadeOut() {
|
||||||
if (!this._visible)
|
if (!this._visible)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@ -314,9 +314,9 @@ var AppMenuButton = new Lang.Class({
|
|||||||
shellShowsAppMenu &&
|
shellShowsAppMenu &&
|
||||||
!Main.overview.visibleTarget);
|
!Main.overview.visibleTarget);
|
||||||
if (visible)
|
if (visible)
|
||||||
this.show();
|
this.fadeIn();
|
||||||
else
|
else
|
||||||
this.hide();
|
this.fadeOut();
|
||||||
|
|
||||||
let isBusy = (this._targetApp != null &&
|
let isBusy = (this._targetApp != null &&
|
||||||
(this._targetApp.get_state() == Shell.AppState.STARTING ||
|
(this._targetApp.get_state() == Shell.AppState.STARTING ||
|
||||||
|
Loading…
Reference in New Issue
Block a user