File tree Expand file tree Collapse file tree 3 files changed +7
-170
lines changed Expand file tree Collapse file tree 3 files changed +7
-170
lines changed Original file line number Diff line number Diff line change 2121 */
2222public class Gala.GestureSettings : Object {
2323 private static GLib . Settings gala_settings;
24+ private static GLib . Settings animation_settings;
2425 private static GLib . Settings touchpad_settings;
2526
2627 static construct {
2728 gala_settings = new GLib .Settings (" io.elementary.desktop.wm.gestures" );
29+ animation_settings = new GLib .Settings (" io.elementary.desktop.wm.animations" );
2830 touchpad_settings = new GLib .Settings (" org.gnome.desktop.peripherals.touchpad" );
2931 }
3032
@@ -34,6 +36,10 @@ public class Gala.GestureSettings : Object {
3436 : touchpad_settings. get_boolean (" natural-scroll" );
3537 }
3638
39+ public bool is_animation_enabled () {
40+ return animation_settings. get_boolean (" enable-animations" );
41+ }
42+
3743 public Meta .MotionDirection ? get_direction (Gesture gesture ) {
3844 switch (gesture. direction) {
3945 case GestureDirection . UP:
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -34,9 +34,9 @@ gala_bin_sources = files(
3434 ' ColorFilters/FilterManager.vala' ,
3535 ' ColorFilters/MonochromeEffect.vala' ,
3636 ' Gestures/Gesture.vala' ,
37+ ' Gestures/GesturePropertyTransition.vala' ,
3738 ' Gestures/GestureSettings.vala' ,
3839 ' Gestures/GestureTracker.vala' ,
39- ' Gestures/PropertyGestureTransition.vala' ,
4040 ' Gestures/ScrollBackend.vala' ,
4141 ' Gestures/ToucheggBackend.vala' ,
4242 ' HotCorners/Barrier.vala' ,
You can’t perform that action at this time.
0 commit comments