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.
This commit is contained in:
Matthias Clasen
2019-05-08 17:59:09 +00:00
parent b3ff4154ec
commit bc64f7d815

View File

@@ -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);
}