Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 364259

Summary: gnome-base/gnome-menus: gmenu-simple-editor fails to show properly sized svg icons
Product: Gentoo Linux Reporter: Ryan Li <ryanli>
Component: [OLD] UnspecifiedAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED UPSTREAM    
Severity: normal CC: freedesktop-bugs
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://bugzilla.gnome.org/show_bug.cgi?id=652933
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: icon-size-inconsistent.png

Description Ryan Li 2011-04-20 15:54:17 UTC
Created attachment 270685 [details]
icon-size-inconsistent.png

I have just emerged gnome-light earlier in the day, and then installed the Tango icon set, with x11-themes/tango-icon-theme-0.8.90 and x11-themes/tango-icon-theme-extras-0.1.0-r1.

However, I noticed that the icons were in different sizes in my GNOME menu. When editing the menu, some icons are shown in 16×16 which are expected, while some are in around 22×22. Also, the icon sizes in GNOME panel and toolbars were significantly larger. Other icon themes, like the GNOME default one, don't have this issue.

Take a look at the screenshot:
  * The icons in gnome-panel are larger than expected.
  * In the "Edit Menus" dialog, icons for "Take Screenshot" and "System" are shown in normal size, while others are larger.
  * The icons in Firefox toolbar are larger than expected.

Don't know whether it's an upstream issue but I have got tango correctly in the past.
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2011-04-20 16:03:40 UTC
Everything seems to be in order.   See for example,

$ find /usr/share/icons/Tango -name '*.png' |xargs file |grep PNG

Icons are properly sized in proper directories with the exception of animated icons.

So gnome problem then, not showing icons properly
Comment 2 Pacho Ramos gentoo-dev 2011-04-20 16:06:21 UTC
Are you seeing that different sizes on gnome menu or only when editing it?
Comment 3 Ryan Li 2011-04-21 02:58:24 UTC
(In reply to comment #1)
> Everything seems to be in order.   See for example,
> 
> $ find /usr/share/icons/Tango -name '*.png' |xargs file |grep PNG
> 
> Icons are properly sized in proper directories with the exception of animated
> icons.
> 
> So gnome problem then, not showing icons properly

Yes, the images are in appropriate folders, but they are not applied correctly.
I think for the larger icons in the screenshot, scalable ones are used.

I compared index.theme of Tango and the one of GNOME, found that the MinSize and Size of scalable icons are different in Tango and GNOME: MinSize 32, and Size 48 for Tango; while 16 and 8 respectively for GNOME.

If I changed the MinSize and Size in index.theme for Tango to 16/8, the icon would have a correct size everywhere, however, they are still using the scalable ones as they have some shading which make them look more shiny than the non-scalable 16×16 ones. So I suppose it's the scalable icons getting used for Tango.
Comment 4 Ryan Li 2011-04-21 03:00:52 UTC
(In reply to comment #2)
> Are you seeing that different sizes on gnome menu or only when editing it?

Only when editing the size difference is exposed.
But when navigating the GNOME menu it's still clear that where Tango use large icons in edit menu, the icons are only large (scalable) icons scaled to smaller. (See comment #3)
Comment 5 Ryan Li 2011-04-21 03:10:23 UTC
Also I have noticed that in index.theme some folders not existing in x11-themes/tango-icon-theme-0.8.90 are listed: only 16x16, 22x22, 32x32 are present, but 24x24, 48x48, 64x64, 72x72, 96x96, 128x128 are also listed in Directories.

Maybe this matters?
Comment 6 Ryan Li 2011-05-24 12:26:55 UTC
Well, emerging with the png use flag solved the issue for me… I'm not sure whether this is a bug?
Comment 7 Pacho Ramos gentoo-dev 2011-05-25 15:21:23 UTC
This is an old upstream problem, please report it there: bugzilla.gnome.org
Comment 8 Ryan Li 2011-05-25 15:39:03 UTC
But as the screenshot shows, Firefox also fails to show the icons in proper size so I guess it's not a problem with only the menu editor?
Comment 9 Pacho Ramos gentoo-dev 2011-05-25 15:45:22 UTC
I don't know how that svg icons are supposed to be shown by firefox/gmenu-simple-editor and others :(, maybe tango maintainers know more
Comment 10 Pacho Ramos gentoo-dev 2011-07-14 17:31:06 UTC
Will handle this directly on upstream