GNOME Bugzilla – Bug 99088
balsa needs to conform to gtk2 icon themes
Last modified: 2009-08-15 18:40:50 UTC
Package: balsa Severity: minor Version: 2.0.3 Synopsis: balsa needs to conform to gtk2 icon themes Bugzilla-Product: balsa Bugzilla-Component: general Description: Description of Problem: When showing attachment parts it takes the default icon, not the icon of the icon theme that is set in GConf. See screenshot for more insight. Notice c_sharp.ppt in both windows. Nautilus is correct, balsa isn't. ------- Bug moved to this database by unknown@bugzilla.gnome.org 2002-11-20 08:28 ------- Reassigning to the default owner of the component, pawsa@theochem.kth.se.
Created attachment 12426 [details] Screenshot of problem
Balsa uses gnome_vfs_mime_get_icon() to find the icon file--does this not respect icon themes?
what version of nautilus is the reporter using. The nautilus included with redhat8 does not use the freedesktop icon theme spec (it uses its own themes). That said I'm not sure if the gnome-vfs mime icon code respects the new icon themes or not. You probably should talk to alex larson (nautilus maintainer) about this.
This is Garnome-0.19.0, nautilus 2.1.2 gnome-vfs-2.1.3 gnome-mime-data-2.0.2 Maybe it is a gnome-vfs issue? Will look into it a bit more later.
hmm . . . straight from the source: /** * gnome_vfs_mime_get_icon: * @mime_type: A const char * containing a MIME type * * Query the MIME database for an icon representing the specified MIME type. * * Return value: The filename of the icon as listed in the MIME database. This is * usually a filename without path information, e.g. "i-chardev.png", and sometimes * does not have an extension, e.g. "i-regular" if the icon is supposed to be image * type agnostic between icon themes. Icons are generic, and not theme specific. These * will not necessarily match with the icons a user sees in Nautilus, you have been warned. */ I wonder why not? Isn't nautilus supposed to conform to the new freedesktop.org standards? Let's move this to something more sane, like gnome-vfs.
Another thing I found is a lot of cruft in the default gnome-vfs.keys file, like real-audio icons being set to "i-music" instead of the correct "gnome-mime-audio-x-pn-realaudio", and character devices being referenced by "i-chardev" instead of "gnome-fs-chardev"
You need to use gnome_icon_lookup() from libgnomeui.
moving this back to balsa
Where can I find some documentation on gnome_icon_lookup?
gnome_icon_lookup seems very tied into nautilus. shouldn't a gnome_vfs function do ?
gnome_icon_lookup() lives in libgnomeui. Why do you think it's tied to nautilus?
just to let you know the equivalent of the gnome_icon_theme function in libgnomeui are planned to be included in gtk 2.4
Kjartan, can't remember why I noted that. Prolly cause I found it out of context.
This has been fixed for a while. Sorry.