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
This commit is contained in:
Carlos Garnacho 2018-11-27 14:52:06 +01:00
parent 81c4c23016
commit 91d73d65c3

View File

@ -2,7 +2,6 @@
const Clutter = imports.gi.Clutter; const Clutter = imports.gi.Clutter;
const GLib = imports.gi.GLib; const GLib = imports.gi.GLib;
const Gtk = imports.gi.Gtk;
const Mainloop = imports.mainloop; const Mainloop = imports.mainloop;
const Shell = imports.gi.Shell; const Shell = imports.gi.Shell;
const St = imports.gi.St; 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['time'] = 0.000001;
tweeningParameters['delay'] = 0.000001; tweeningParameters['delay'] = 0.000001;
} }