plugin: add a menu-duration key to the animation settings

This commit is contained in:
Tom Beckmann 2012-10-06 14:23:52 +02:00
parent ee78e35805
commit 53e7396b01
3 changed files with 6 additions and 1 deletions

View File

@ -138,6 +138,10 @@
<default>400</default>
<summary>Duration of the workspace switch animation</summary>
</key>
<key type="i" name="menu-duration">
<default>150</default>
<summary>Duration of the menu mapping animation</summary>
</key>
</schema>
<schema path="/org/pantheon/desktop/gala/shadows/" id="org.pantheon.desktop.gala.shadows" gettext-domain="gala">

View File

@ -450,7 +450,7 @@ namespace Gala
actor.scale_x = 0.9f;
actor.scale_y = 0.9f;
actor.opacity = 0;
actor.animate (Clutter.AnimationMode.EASE_OUT_QUAD, 150,
actor.animate (Clutter.AnimationMode.EASE_OUT_QUAD, AnimationSettings.get_default ().menu_duration,
scale_x:1.0f, scale_y:1.0f, opacity:255)
.completed.connect ( () => {

View File

@ -115,6 +115,7 @@ namespace Gala
public int close_duration { get; set; }
public int minimize_duration { get; set; }
public int workspace_switch_duration { get; set; }
public int menu_duration { get; set; }
static AnimationSettings? instance = null;