mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
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:
parent
81c4c23016
commit
91d73d65c3
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue