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();
|
||||
},
|
||||
|
||||
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 ||
|
||||
|
Loading…
Reference in New Issue
Block a user