From 91d73d65c3c0b2c61e8e30aed70e3d1c4ce2da8c Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Tue, 27 Nov 2018 14:52:06 +0100 Subject: [PATCH] tweener: Use StSettings instead of GtkSettings Cut a middle man by listening to dconf settings directly, and stop relying on XSettings for it. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/317 --- js/ui/tweener.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/ui/tweener.js b/js/ui/tweener.js index 6c9869c47..80e5838ad 100644 --- a/js/ui/tweener.js +++ b/js/ui/tweener.js @@ -2,7 +2,6 @@ const Clutter = imports.gi.Clutter; const GLib = imports.gi.GLib; -const Gtk = imports.gi.Gtk; const Mainloop = imports.mainloop; const Shell = imports.gi.Shell; const St = imports.gi.St; @@ -52,7 +51,7 @@ function _wrapTweening(target, tweeningParameters) { } } - if (!Gtk.Settings.get_default().gtk_enable_animations) { + if (!St.Settings.get().enable_animations) { tweeningParameters['time'] = 0.000001; tweeningParameters['delay'] = 0.000001; }