[gtk+] icontheme: Append a / to the resource path
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] icontheme: Append a / to the resource path
- Date: Mon, 13 Nov 2017 12:42:14 +0000 (UTC)
commit ec1ea0db04294f696beb093aa2414411914dd931
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Nov 13 07:33:35 2017 -0500
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.
gtk/gtkicontheme.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c
index a6af4f4..fb14e10 100644
--- a/gtk/gtkicontheme.c
+++ b/gtk/gtkicontheme.c
@@ -702,7 +702,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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]