forked from AuroraMiddleware/gtk
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:
parent
cae8fc74ac
commit
4939cfd67e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user