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.
This commit is contained in:
Matthias Clasen 2016-11-25 08:55:33 -05:00
parent cae8fc74ac
commit 4939cfd67e

View File

@ -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);