[gtk+] encodesymbolic: handle circle objects



commit 06b2adb107688798bfcd7dd98b9b6b07f11bed66
Author: Lapo Calamandrei <calamandrei gmail com>
Date:   Wed Sep 21 17:46:19 2016 +0200

    encodesymbolic: handle circle objects
    
    add circle objects to the injected style for recoloring.
    Should avoid randomly colored symbolic icon bits when circles are
    in the mix as in network-vpn-acquiring-symbolic for example.

 gtk/encodesymbolic.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/encodesymbolic.c b/gtk/encodesymbolic.c
index 5ff5e1b..42e8d9c 100644
--- a/gtk/encodesymbolic.c
+++ b/gtk/encodesymbolic.c
@@ -88,7 +88,7 @@ load_symbolic_svg (char *file_data, gsize file_len,
                       "     width=\"", svg_width, "\"\n"
                       "     height=\"", svg_height, "\">\n"
                       "  <style type=\"text/css\">\n"
-                      "    rect,path {\n"
+                      "    rect,circle,path {\n"
                       "      fill: ", css_fg," !important;\n"
                       "    }\n"
                       "    .warning {\n"


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