Skip to content

Commit 9989dcc

Browse files
committed
CloseButton: Follow enable-animations setting
1 parent 6f621bc commit 9989dcc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/CloseButton.vala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public class Gala.CloseButton : Clutter.Actor {
7979
}
8080

8181
public override bool button_press_event (Clutter.Event e) {
82-
var estimated_duration = (uint) (ANIMATION_DURATION * (scale_x - 0.8) / 0.2);
82+
var estimated_duration = Utils.get_animation_duration ((uint) (ANIMATION_DURATION * (scale_x - 0.8) / 0.2));
8383

8484
pixbuf_actor.save_easing_state ();
8585
pixbuf_actor.set_easing_duration (estimated_duration);
@@ -111,7 +111,7 @@ public class Gala.CloseButton : Clutter.Actor {
111111
}
112112

113113
private void reset_scale () {
114-
var estimated_duration = (uint) (ANIMATION_DURATION * (1.0 - scale_x) / 0.2);
114+
var estimated_duration = Utils.get_animation_duration ((uint) (ANIMATION_DURATION * (1.0 - scale_x) / 0.2));
115115

116116
pixbuf_actor.save_easing_state ();
117117
pixbuf_actor.set_easing_duration (estimated_duration);

0 commit comments

Comments
 (0)