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:
Georges Basile Stavracas Neto 2018-08-21 06:48:19 -03:00
parent e9f4f2e8ae
commit dd4709bb27
No known key found for this signature in database
GPG Key ID: 886C17EE170D1385

View File

@ -149,7 +149,7 @@ var AppMenuButton = new Lang.Class({
this._sync();
},
show() {
fadeIn() {
if (this._visible)
return;
@ -163,7 +163,7 @@ var AppMenuButton = new Lang.Class({
transition: 'easeOutQuad' });
},
hide() {
fadeOut() {
if (!this._visible)
return;
@ -314,9 +314,9 @@ var AppMenuButton = new Lang.Class({
shellShowsAppMenu &&
!Main.overview.visibleTarget);
if (visible)
this.show();
this.fadeIn();
else
this.hide();
this.fadeOut();
let isBusy = (this._targetApp != null &&
(this._targetApp.get_state() == Shell.AppState.STARTING ||