panel: Make Animation visible by default

None of the other widget actors hide themselves by default;
that's a GTK+ thing.
This commit is contained in:
Jasper St. Pierre 2012-11-27 13:23:15 -05:00
parent 9808e8ab0d
commit a46321baa0
2 changed files with 2 additions and 2 deletions

View File

@ -79,7 +79,7 @@ const Animation = new Lang.Class({
Name: 'Animation', Name: 'Animation',
_init: function(filename, width, height, speed) { _init: function(filename, width, height, speed) {
this.actor = new St.Bin({ visible: false }); this.actor = new St.Bin();
this.actor.connect('destroy', Lang.bind(this, this._onDestroy)); this.actor.connect('destroy', Lang.bind(this, this._onDestroy));
this._speed = speed; this._speed = speed;
@ -301,6 +301,7 @@ const AppMenuButton = new Lang.Class({
this._spinner = new AnimatedIcon('process-working.svg', this._spinner = new AnimatedIcon('process-working.svg',
PANEL_ICON_SIZE); PANEL_ICON_SIZE);
this._container.add_actor(this._spinner.actor); this._container.add_actor(this._spinner.actor);
this._spinner.actor.hide();
this._spinner.actor.lower_bottom(); this._spinner.actor.lower_bottom();
let tracker = Shell.WindowTracker.get_default(); let tracker = Shell.WindowTracker.get_default();

View File

@ -172,7 +172,6 @@ const UnlockDialog = new Lang.Class({
this._workSpinner = new Panel.AnimatedIcon('process-working.svg', LoginDialog.WORK_SPINNER_ICON_SIZE); this._workSpinner = new Panel.AnimatedIcon('process-working.svg', LoginDialog.WORK_SPINNER_ICON_SIZE);
this._workSpinner.actor.opacity = 0; this._workSpinner.actor.opacity = 0;
this._workSpinner.actor.show();
this.allowCancel = false; this.allowCancel = false;
this.buttonLayout.visible = true; this.buttonLayout.visible = true;