[gnome-shell/wip/carlosg/cleanup-gtk-usage: 3/7] tweener: Use StSettings instead of GtkSettings
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/carlosg/cleanup-gtk-usage: 3/7] tweener: Use StSettings instead of GtkSettings
- Date: Wed, 30 Jan 2019 22:19:50 +0000 (UTC)
commit 91d73d65c3c0b2c61e8e30aed70e3d1c4ce2da8c
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..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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]