[gnome-shell/wip/carlosg/cleanup-gtk-usage: 4/7] main: 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: 4/7] main: Use StSettings instead of GtkSettings
- Date: Wed, 30 Jan 2019 21:00:14 +0000 (UTC)
commit 9e634c013de6790737489d54decac8828cae9309
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Nov 27 14:59:09 2018 +0100
main: 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/main.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/js/ui/main.js b/js/ui/main.js
index 6e2122273..e827eb9c5 100644
--- a/js/ui/main.js
+++ b/js/ui/main.js
@@ -127,8 +127,8 @@ function start() {
sessionMode = new SessionMode.SessionMode();
sessionMode.connect('updated', _sessionUpdated);
- Gtk.Settings.get_default().connect('notify::gtk-theme-name',
- _loadDefaultStylesheet);
+
+ St.Settings.get().connect('notify::gtk-theme', _loadDefaultStylesheet);
Gtk.IconTheme.get_default().add_resource_path('/org/gnome/shell/theme/icons');
_initializeUI();
@@ -279,7 +279,7 @@ function _getDefaultStylesheet() {
// Look for a high-contrast variant first when using GTK+'s HighContrast
// theme
- if (Gtk.Settings.get_default().gtk_theme_name == 'HighContrast')
+ if (St.Settings.get().gtk_theme == 'HighContrast')
stylesheet = _getStylesheet(name.replace('.css', '-high-contrast.css'));
if (stylesheet == null)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]