@@ -263,7 +263,7 @@ namespace Gala {
263263 }
264264
265265 public void play_nudge_animation (Meta . MotionDirection direction) {
266- if (! wm . enable_animations ) {
266+ if (! AnimationsSettings . get_enable_animations () ) {
267267 return ;
268268 }
269269
@@ -413,7 +413,7 @@ namespace Gala {
413413 workspaces. restore_easing_state ();
414414
415415 if (! is_nudge_animation) {
416- if (wm . enable_animations ) {
416+ if (AnimationsSettings . get_enable_animations () ) {
417417 var active_transition = new Clutter .PropertyTransition (" backdrop-opacity" ) {
418418 duration = duration,
419419 remove_on_complete = true
@@ -440,7 +440,7 @@ namespace Gala {
440440 }
441441 };
442442
443- if (! wm . enable_animations ) {
443+ if (! AnimationsSettings . get_enable_animations () ) {
444444 on_animation_end (1 , false , 0 );
445445 } else {
446446 workspace_gesture_tracker. connect_handlers (null , (owned ) on_animation_update, (owned ) on_animation_end);
@@ -476,14 +476,14 @@ namespace Gala {
476476 }
477477
478478 workspace_clone. save_easing_state ();
479- workspace_clone. set_easing_duration ((animate && wm . enable_animations ) ? 200 : 0 );
479+ workspace_clone. set_easing_duration ((animate && AnimationsSettings . get_enable_animations () ) ? 200 : 0 );
480480 workspace_clone. x = dest_x;
481481 workspace_clone. restore_easing_state ();
482482 }
483483
484484 workspaces. save_easing_state ();
485485 workspaces. set_easing_mode (Clutter . AnimationMode . EASE_OUT_QUAD );
486- workspaces. set_easing_duration ((animate && wm . enable_animations ) ? AnimationDuration . WORKSPACE_SWITCH_MIN : 0 );
486+ workspaces. set_easing_duration ((animate && AnimationsSettings . get_enable_animations () ) ? AnimationDuration . WORKSPACE_SWITCH_MIN : 0 );
487487 workspaces. x = - active_x;
488488 workspaces. restore_easing_state ();
489489
@@ -668,7 +668,7 @@ namespace Gala {
668668 }
669669
670670 // we don't want to handle cancel animation when animation are off
671- if (is_cancel_animation && ! wm . enable_animations ) {
671+ if (is_cancel_animation && ! AnimationsSettings . get_enable_animations () ) {
672672 return ;
673673 }
674674
@@ -840,12 +840,12 @@ namespace Gala {
840840
841841 clone. save_easing_state ();
842842 clone. set_easing_mode (Clutter . AnimationMode . EASE_OUT_QUAD );
843- clone. set_easing_duration ((! is_cancel_animation && wm . enable_animations ) ? ANIMATION_DURATION : 0 );
843+ clone. set_easing_duration ((! is_cancel_animation && AnimationsSettings . get_enable_animations () ) ? ANIMATION_DURATION : 0 );
844844 clone. y = target_y;
845845 clone. restore_easing_state ();
846846 };
847847
848- if (! with_gesture || ! wm . enable_animations ) {
848+ if (! with_gesture || ! AnimationsSettings . get_enable_animations () ) {
849849 on_animation_end (1 , false , 0 );
850850 } else {
851851 multitasking_gesture_tracker. connect_handlers (null , (owned ) on_animation_update, (owned ) on_animation_end);
@@ -871,12 +871,12 @@ namespace Gala {
871871
872872 dock. save_easing_state ();
873873 dock. set_easing_mode (Clutter . AnimationMode . EASE_OUT_QUAD );
874- dock. set_easing_duration (wm . enable_animations ? ANIMATION_DURATION : 0 );
874+ dock. set_easing_duration (AnimationsSettings . get_enable_animations () ? ANIMATION_DURATION : 0 );
875875 dock. y = target_y;
876876 dock. restore_easing_state ();
877877 };
878878
879- if (! with_gesture || ! wm . enable_animations ) {
879+ if (! with_gesture || ! AnimationsSettings . get_enable_animations () ) {
880880 on_animation_end (1 , false , 0 );
881881 } else {
882882 multitasking_gesture_tracker. connect_handlers (null , (owned ) on_animation_update, (owned ) on_animation_end);
0 commit comments