Skip to content

Commit 6b4851d

Browse files
committed
Rename file, follow animation settings
1 parent 8ff631b commit 6b4851d

File tree

3 files changed

+7
-170
lines changed

3 files changed

+7
-170
lines changed

src/Gestures/GestureSettings.vala

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,12 @@
2121
*/
2222
public 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:

src/Gestures/PropertyGestureTransition.vala

Lines changed: 0 additions & 169 deletions
This file was deleted.

src/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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',

0 commit comments

Comments
 (0)