The issue is confirmed to be in gtk+3.0-3.14.5 and was fixed in gtk+3.0-3.16

This issue is in gtk+3.0-3.14.5 and was patched in gtk+3.0-3.16
Related bug: Bug 744991 - Fix loading of GResource SVGs - https://bugzilla.gnome.org/show_bug.cgi?id=744991

git commit that fixed the issue: https://github.com/GNOME/gtk/commit/eddaf01676d3f6f28ca2609146be03a3dc9fd0b8
(icontheme: use desired size instead of negative for DIR_UNTHEMED SVGs)

This happens because unthemed svg icons were being given a negative width/height which caused them to be displayed without performing any scaling.

I am attaching the patch for gtk+3.0-3.14.5 (for jessie 8.2) -- that includes, only, the changes needed to fix the this issue.

bug #777615 (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=777615) should be merged into this issue as well.
Index: gtk-bugfix/gtk/gtkicontheme.c
===================================================================
--- gtk-bugfix.orig/gtk/gtkicontheme.c
+++ gtk-bugfix/gtk/gtkicontheme.c
@@ -3854,7 +3854,7 @@
         {
           gint size;
 
-          if (icon_info->forced_size)
+          if (icon_info->forced_size || icon_info->dir_type == ICON_THEME_DIR_UNTHEMED)
             size = scaled_desired_size;
           else
             size = icon_info->dir_size * dir_scale * icon_info->scale;
@@ -3884,7 +3884,7 @@
             {
               gint size;
 
-              if (icon_info->forced_size)
+              if (icon_info->forced_size || icon_info->dir_type == ICON_THEME_DIR_UNTHEMED)
                 size = scaled_desired_size;
               else
                 size = icon_info->dir_size * dir_scale * icon_info->scale;

Reply via email to