[gnome-shell/wip/carlosg/cleanup-gtk-usage: 3/7] tweener: Use StSettings instead of GtkSettings



commit 6c99d82e326424694cfbd3d2fa557a7d5fe1e861
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Nov 27 14:52:06 2018 +0100

    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..97288668a 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().animations_enabled) {
         tweeningParameters['time'] = 0.000001;
         tweeningParameters['delay'] = 0.000001;
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]