diff options
author | Matthias Clasen <mclasen@redhat.com> | 2017-11-13 07:33:35 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2017-11-16 08:24:41 -0500 |
commit | 20c2d6c9921b13ad3635dfc7624ed667768f7f3f (patch) | |
tree | cae2e5451ff6b4086cf20dd7f4fdbf326b80fcd7 | |
parent | 4c44ffda17e9251b99b8cde040eef248ebac8073 (diff) | |
download | gtk+-20c2d6c9921b13ad3635dfc7624ed667768f7f3f.tar.gz |
icontheme: Append a / to the resource path
g_resources_enumerate_children expects the path to end
in a '/' (even though thats not stated in the docs), and
will copy it if that isn't the case. Avoid the copy
by putting a '/' there to begin with.
-rw-r--r-- | gtk/gtkicontheme.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c index c865fc63cf..acd13e0eed 100644 --- a/gtk/gtkicontheme.c +++ b/gtk/gtkicontheme.c @@ -743,7 +743,7 @@ gtk_icon_theme_init (GtkIconTheme *icon_theme) for (j = 0; xdg_data_dirs[j]; j++) priv->search_path[i++] = g_build_filename (xdg_data_dirs[j], "pixmaps", NULL); - priv->resource_paths = g_list_append (NULL, g_strdup ("/org/gtk/libgtk/icons")); + priv->resource_paths = g_list_append (NULL, g_strdup ("/org/gtk/libgtk/icons/")); priv->themes_valid = FALSE; priv->themes = NULL; |