[gtk/theme-loading: 1/6] settings: Stop loading theme settings
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/theme-loading: 1/6] settings: Stop loading theme settings
- Date: Wed, 8 May 2019 19:01:33 +0000 (UTC)
commit bc64f7d8155aca0de96237df9222de339fd17e3a
Author: Matthias Clasen <mclasen redhat com>
Date: Wed May 8 17:59:09 2019 +0000
settings: Stop loading theme settings
This was invented for Windows themes, back in
the day, and we don't ship a Windows theme
anymore. We want to get to a place where
settings are always in GSettings.
gtk/gtksettings.c | 12 ------------
1 file changed, 12 deletions(-)
---
diff --git a/gtk/gtksettings.c b/gtk/gtksettings.c
index 79282b1804..ad71dad94d 100644
--- a/gtk/gtksettings.c
+++ b/gtk/gtksettings.c
@@ -2210,8 +2210,6 @@ settings_update_theme (GtkSettings *settings)
GtkSettingsPrivate *priv = settings->priv;
gchar *theme_name;
gchar *theme_variant;
- const gchar *theme_dir;
- gchar *path;
get_theme_name (settings, &theme_name, &theme_variant);
@@ -2219,16 +2217,6 @@ settings_update_theme (GtkSettings *settings)
theme_name,
theme_variant);
- /* reload per-theme settings */
- theme_dir = _gtk_css_provider_get_theme_dir (priv->theme_provider);
- if (theme_dir)
- {
- path = g_build_filename (theme_dir, "settings.ini", NULL);
- if (g_file_test (path, G_FILE_TEST_EXISTS))
- gtk_settings_load_from_key_file (settings, path, GTK_SETTINGS_SOURCE_THEME);
- g_free (path);
- }
-
g_free (theme_name);
g_free (theme_variant);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]