g_content_type_get_icon contains a (null) icon
Submitted by Nick Schermer
Link to original bug (#688042)
Description
Created attachment 228626 Untested patch, but should do the trick
There is an incorrect check in g_content_type_get_icon_internal() that results in a themed icon starting with (null) in the names array.
GIcon *icon = g_content_type_get_icon ("inode/directory"); gchar **names = g_themed_icon_get_names (G_THEMED_ICON (icon)); for (i = 0; names[i]; ++i) g_message("%s", names[i]);
Resulting in:
(null) inode-directory gnome-mime-inode-directory
Patch 228626, "Untested patch, but should do the trick":
check-for-null.patch