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 526190 - Missing mimetype icons in file-chooser with gio backend
Missing mimetype icons in file-chooser with gio backend
Status: RESOLVED OBSOLETE
Product: libgnomeui
Classification: Deprecated
Component: gio-file-chooser
2.22.x
Other Linux
: Normal normal
: future
Assigned To: Carlos Garnacho
Carlos Garnacho
Depends on:
Blocks:
 
 
Reported: 2008-04-04 16:51 UTC by Giacomo Perale
Modified: 2009-05-03 19:49 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Screenshot of the filechooser using gio backend (54.92 KB, image/png)
2008-04-04 16:52 UTC, Giacomo Perale
Details
Screenshot of the filechooser using the gnome-vfs backend (63.50 KB, image/png)
2008-04-04 16:53 UTC, Giacomo Perale
Details

Description Giacomo Perale 2008-04-04 16:51:55 UTC
The filechooser gio backend in current libgnomeui displays blank fallback icons for every file, no matters its content (excluding the files with an associated thumbnail, for which the thumbnail appears).
This is a regression from the behaviour of the gnomevfs-based backend; screenshots of the two filechooser will follow.

Looking at the code I pinpointed a possible explanation of this bug: in the function translate_file_info() the gio backend calls gtk_file_info_set_icon_name() and saves in the gchar *icon_name field of the struct GtkFileInfo strings like "application-x-shellscript" or "text-plain"; the gnome-vfs backend on the contrary passes strings like "gnome-mime-application-x-shellscript" and "gnome-mime-application-x-perl" (I'm told that gio supports the new icon naming specification).

Apparently, whatever renders the icons (in gtk+?) doesn't accept the new names. To test it, I hardcoded "gnome-mime-application-x-shellscript" and then "application-x-shellscript"; with the former, the filechooser used a "sh file" icons for every file, in the second it fell back to the generic "blank sheet" icon.
Comment 1 Giacomo Perale 2008-04-04 16:52:33 UTC
Created attachment 108620 [details]
Screenshot of the filechooser using gio backend
Comment 2 Giacomo Perale 2008-04-04 16:53:16 UTC
Created attachment 108622 [details]
Screenshot of the filechooser using the gnome-vfs backend
Comment 3 Giacomo Perale 2008-04-16 17:28:33 UTC
ping?
Comment 4 Giacomo Perale 2008-04-21 17:02:49 UTC
ping?
Comment 5 Vincent Untz 2008-04-30 21:12:35 UTC
FWIW, I've made an ugly patch, that clearly needs some love: https://bugzilla.novell.com/show_bug.cgi?id=377733#c5

Someone can probably build on this a bit.
Comment 6 Kjartan Maraas 2009-05-03 15:02:06 UTC
Is this still the case, or has it been fixed in gio/gtk/gvfs?
Comment 7 Kjartan Maraas 2009-05-03 19:49:45 UTC
Closing it here since there's no code to fix wrt file chooser in libgnomeui any more. If you still have problems with the file chooser please file new bugs against the relevant products.