[gtk+] application: Append a / to the icon resource path
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] application: Append a / to the icon resource path
- Date: Mon, 13 Nov 2017 12:42:19 +0000 (UTC)
commit 2ff175938d9541b991a2aa9ee7abda441a32e1c7
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Nov 13 07:35:18 2017 -0500
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.
gtk/gtkapplication.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkapplication.c b/gtk/gtkapplication.c
index da67121..f7bd5b5 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]