Also forgot to mention that the back-ported patch was based on a patch for bug #744991 (attachment:297615)
and was backported to gtk+3.0-3.14.5 (in the file I attached)

Original patch: https://bug744991.bugzilla-attachments.gnome.org/attachment.cgi?id=297615


On 09/22/2015 08:31 PM, William L. DeRieux IV wrote:
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