GNOME Bugzilla – Bug 526190
Missing mimetype icons in file-chooser with gio backend
Last modified: 2009-05-03 19:49:45 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.
Created attachment 108620 [details] Screenshot of the filechooser using gio backend
Created attachment 108622 [details] Screenshot of the filechooser using the gnome-vfs backend
ping?
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.
Is this still the case, or has it been fixed in gio/gtk/gvfs?
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.