[gnome-shell] panel: Use a constant for the panel startup animation time
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] panel: Use a constant for the panel startup animation time
- Date: Thu, 3 Mar 2011 21:44:40 +0000 (UTC)
commit 6fbf8fa9e428a9d4965333e31dd3c0546f619796
Author: Florian Müllner <fmuellner gnome org>
Date: Thu Mar 3 17:34:14 2011 +0100
panel: Use a constant for the panel startup animation time
https://bugzilla.gnome.org/show_bug.cgi?id=643804
js/ui/panel.js | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/panel.js b/js/ui/panel.js
index 1d1e10d..37a720e 100644
--- a/js/ui/panel.js
+++ b/js/ui/panel.js
@@ -25,6 +25,8 @@ const PANEL_HEIGHT = 26;
const PANEL_ICON_SIZE = 24;
+const STARTUP_ANIMATION_TIME = 0.2;
+
const HOT_CORNER_ACTIVATION_TIMEOUT = 0.5;
const BUTTON_DND_ACTIVATION_TIMEOUT = 250;
@@ -1046,7 +1048,7 @@ Panel.prototype = {
this.actor.y = oldY - this.actor.height;
Tweener.addTween(this.actor,
{ y: oldY,
- time: 0.2,
+ time: STARTUP_ANIMATION_TIME,
transition: 'easeOutQuad'
});
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]