After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 521035 - Not using correct mimetype icons
Not using correct mimetype icons
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: gio
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Alexander Larsson
gtkdev
Depends on:
Blocks:
 
 
Reported: 2008-03-07 17:35 UTC by Michael Monreal
Modified: 2011-02-18 16:13 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22


Attachments
Screenshot (7.81 KB, image/png)
2008-03-07 17:36 UTC, Michael Monreal
Details

Description Michael Monreal 2008-03-07 17:35:55 UTC
The GIO filechooser does not display the correct mime icons. It just seems to use the correct folder icon and the default file icon for anything (archives, text files, scripts...) else.
Comment 1 Michael Monreal 2008-03-07 17:36:41 UTC
Created attachment 106799 [details]
Screenshot

This is another spin-off from bug 520605 btw.
Comment 2 Carlos Garnacho 2008-03-07 17:47:08 UTC
That's a GIO issue, which isn't returning valid icon names, I think Alex proposed something for the mime spec in the xdg ML [1] to improve icon handling there, so there shouldn't be a hardcoded mimetype/icon list, I actually don't how is that progressing...

[1] http://lists.freedesktop.org/archives/xdg/2008-January/009124.html
Comment 3 Michael Monreal 2008-03-08 12:47:13 UTC
Well, It's a very visible regression for any 2.22 user because the GIO backend is now the default... which also kind of broke UI freeze I guess. Any chance this will be fixed for 2.22 in any way?
Comment 4 Michael Monreal 2008-03-08 12:55:51 UTC
Carlos, I just checked shared-mime-info head and found this:

2008-03-04  Alexander Larsson  <alexl@redhat.com>

    * shared-mime-info-spec.xml:
    Update spec from discussion on list:
    Add generic-icon and icon support.
    Add glob weight
    Change recommended sniffing/glob order

This seems to be what was discussed on the list.
Comment 5 Matthias Clasen 2008-06-10 18:03:11 UTC
GIO now uses generic-icon and icon information from the shared-mime-info database.
Comment 6 Michael Monreal 2008-06-10 20:16:28 UTC
Is the file chooser broken with glib trunk? I just build glib trunk but had to roll back because it would not show anything inside the filechooser, only a "loading" mouse pointer.
Comment 7 Michael Monreal 2008-06-11 19:37:43 UTC
Disregard my previous post, it's working fine now. Thanks!