summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2016-11-25 08:55:33 -0500
committerMatthias Clasen <mclasen@redhat.com>2016-11-25 08:55:33 -0500
commit4939cfd67ea5de398e78a59be8c5857bb5612ce3 (patch)
treed140bb6bf611aa1b3a5f427391547e2b40bf4df7
parentcae8fc74ac384efea24fa0625d6d5f76be612b99 (diff)
downloadgtk+-4939cfd67ea5de398e78a59be8c5857bb5612ce3.tar.gz
Make gtk-encode-symbolic-svg work for icons with dotted names
We were producing org.symbolic.png from org.gnome.Recipes-symbolic.svg, which is not useful. Look for the last dot in the original name, to produce the expected org.gnome.Recipes-symbolic.symbolic.png instead.
-rw-r--r--gtk/encodesymbolic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/encodesymbolic.c b/gtk/encodesymbolic.c
index 42e8d9c936..e6d01dd5c2 100644
--- a/gtk/encodesymbolic.c
+++ b/gtk/encodesymbolic.c
@@ -282,7 +282,7 @@ main (int argc, char **argv)
basename = g_path_get_basename (path);
- dot = strchr(basename, '.');
+ dot = strrchr (basename, '.');
if (dot != NULL)
*dot = 0;
pngfile = g_strconcat (basename, ".symbolic.png", NULL);