Commit c700d299 authored by Michael Natterer's avatar Michael Natterer 😴

Revert "app: prepend the selected icon theme path to the search path..."

Don't infinitely prepend search paths when changing themes.

This reverts commit 6fe8f75f.
parent 6fe8f75f
......@@ -204,8 +204,8 @@ icons_apply_theme (Gimp *gimp,
const gchar *icon_theme_name)
{
GtkIconTheme *icon_theme;
GFile *icon_theme_dir;
gchar *icon_theme_path;
gchar **paths;
gint n_paths;
g_return_if_fail (GIMP_IS_GIMP (gimp));
......@@ -217,11 +217,20 @@ icons_apply_theme (Gimp *gimp,
icon_theme = gtk_icon_theme_get_default ();
icon_theme_dir = icon_themes_get_theme_dir (gimp, icon_theme_name);
icon_theme_path = g_file_get_path(icon_theme_dir);
gtk_icon_theme_get_search_path (icon_theme, &paths, &n_paths);
gtk_icon_theme_prepend_search_path (icon_theme, icon_theme_path);
g_free (icon_theme_path);
if (paths)
{
GFile *icon_theme_dir = icon_themes_get_theme_dir (gimp, icon_theme_name);
g_free (paths[0]);
paths[0] = g_file_get_path (icon_theme_dir);
gtk_icon_theme_set_search_path (icon_theme,
(const gchar **) paths, n_paths);
g_strfreev (paths);
}
}
static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment