[gnome-shell] panel: Make Animation visible by default



commit a46321baa0a3ce305a18223ef33b7b67ab86d0a1
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Tue Nov 27 13:23:15 2012 -0500

    panel: Make Animation visible by default
    
    None of the other widget actors hide themselves by default;
    that's a GTK+ thing.

 js/ui/panel.js        |    3 ++-
 js/ui/unlockDialog.js |    1 -
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/panel.js b/js/ui/panel.js
index 5089647..ac2e0ea 100644
--- a/js/ui/panel.js
+++ b/js/ui/panel.js
@@ -79,7 +79,7 @@ const Animation = new Lang.Class({
     Name: 'Animation',
 
     _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._speed = speed;
 
@@ -301,6 +301,7 @@ const AppMenuButton = new Lang.Class({
         this._spinner = new AnimatedIcon('process-working.svg',
                                          PANEL_ICON_SIZE);
         this._container.add_actor(this._spinner.actor);
+        this._spinner.actor.hide();
         this._spinner.actor.lower_bottom();
 
         let tracker = Shell.WindowTracker.get_default();
diff --git a/js/ui/unlockDialog.js b/js/ui/unlockDialog.js
index 24a82a3..794f6cd 100644
--- a/js/ui/unlockDialog.js
+++ b/js/ui/unlockDialog.js
@@ -172,7 +172,6 @@ const UnlockDialog = new Lang.Class({
 
         this._workSpinner = new Panel.AnimatedIcon('process-working.svg', LoginDialog.WORK_SPINNER_ICON_SIZE);
         this._workSpinner.actor.opacity = 0;
-        this._workSpinner.actor.show();
 
         this.allowCancel = false;
         this.buttonLayout.visible = true;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]