From 6c0cd1a16d12834cb4de8d93c5e2a97fbf248818 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 25 Nov 2016 08:55:33 -0500 Subject: [PATCH] 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. --- gtk/encodesymbolic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);