@@ -48,7 +48,7 @@ public class Gala.NotificationStack : Object {
4848 update_stack_allocation ();
4949 }
5050
51- public void show_notification (Meta .WindowActor notification , bool animate )
51+ public void show_notification (Meta .WindowActor notification )
5252 requires (notification != null && !notification .is_destroyed () && !notifications.contains (notification )) {
5353
5454 notification. set_pivot_point (0.5f , 0.5f );
@@ -62,7 +62,7 @@ public class Gala.NotificationStack : Object {
6262 var window_rect = window. get_frame_rect ();
6363 window. stick ();
6464
65- if (animate ) {
65+ if (AnimationsSettings . get_enable_animations () ) {
6666 // Don't flicker at the beginning of the animation
6767 notification. opacity = 0 ;
6868 notification. rotation_angle_x = 90 ;
@@ -96,7 +96,7 @@ public class Gala.NotificationStack : Object {
9696 * by shifting all current notifications by height
9797 * and then add it to the notifications list.
9898 */
99- update_positions (animate, scale, window_rect. height);
99+ update_positions (scale, window_rect. height);
100100
101101 int notification_x_pos = area. x + area. width - window_rect. width;
102102 if (Clutter . get_default_text_direction () == Clutter . TextDirection . RTL ) {
@@ -117,7 +117,7 @@ public class Gala.NotificationStack : Object {
117117 stack_y = area. y;
118118 }
119119
120- private void update_positions (bool animate , float scale , float add_y = 0 .0f ) {
120+ private void update_positions (float scale , float add_y = 0 .0f ) {
121121 var y = stack_y + TOP_OFFSET + add_y + InternalUtils . scale_to_int (ADDITIONAL_MARGIN , scale);
122122 var i = notifications. size;
123123 var delay_step = i > 0 ? 150 / i : 0 ;
@@ -131,7 +131,7 @@ public class Gala.NotificationStack : Object {
131131 continue ;
132132 }
133133
134- if (animate ) {
134+ if (AnimationsSettings . get_enable_animations () ) {
135135 actor. save_easing_state ();
136136 actor. set_easing_mode (Clutter . AnimationMode . EASE_OUT_BACK );
137137 actor. set_easing_duration (200 );
@@ -140,7 +140,7 @@ public class Gala.NotificationStack : Object {
140140
141141 move_window (actor, - 1 , (int )y);
142142
143- if (animate ) {
143+ if (AnimationsSettings . get_enable_animations () ) {
144144 actor. restore_easing_state ();
145145 }
146146
@@ -160,8 +160,8 @@ public class Gala.NotificationStack : Object {
160160 }
161161 }
162162
163- public void destroy_notification (Meta .WindowActor notification , bool animate ) {
164- if (animate ) {
163+ public void destroy_notification (Meta .WindowActor notification ) {
164+ if (AnimationsSettings . get_enable_animations () ) {
165165 notification. save_easing_state ();
166166 notification. set_easing_duration (100 );
167167 notification. set_easing_mode (Clutter . AnimationMode . EASE_IN_QUAD );
@@ -178,7 +178,7 @@ public class Gala.NotificationStack : Object {
178178 var scale = display. get_monitor_scale (primary);
179179
180180 notifications. remove (notification);
181- update_positions (animate, scale);
181+ update_positions (scale);
182182 }
183183
184184 /**
0 commit comments