summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2017-11-13 07:35:18 -0500
committerMatthias Clasen <mclasen@redhat.com>2017-11-16 08:24:55 -0500
commite3f84e9bf447655e804b34079d8a2764456c5f87 (patch)
tree938ea1b677613c3c53c831d6f299081bd7ef22ff
parent20c2d6c9921b13ad3635dfc7624ed667768f7f3f (diff)
downloadgtk+-e3f84e9bf447655e804b34079d8a2764456c5f87.tar.gz
application: Append a / to the icon 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/gtkapplication.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkapplication.c b/gtk/gtkapplication.c
index 55899477c1..487158b31c 100644
--- a/gtk/gtkapplication.c
+++ b/gtk/gtkapplication.c
@@ -204,7 +204,7 @@ gtk_application_load_resources (GtkApplication *application)
gchar *iconspath;
default_theme = gtk_icon_theme_get_default ();
- iconspath = g_strconcat (base_path, "/icons", NULL);
+ iconspath = g_strconcat (base_path, "/icons/", NULL);
gtk_icon_theme_add_resource_path (default_theme, iconspath);
g_free (iconspath);
}