[gtk+/gtk-3-22] Make gtk-encode-symbolic-svg work for icons with dotted names



commit 6c0cd1a16d12834cb4de8d93c5e2a97fbf248818
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Nov 25 08:55:33 2016 -0500

    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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/encodesymbolic.c b/gtk/encodesymbolic.c
index 42e8d9c..e6d01dd 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]