Main Page | Modules | File List | Globals

MIME icon


Functions

gchar ** osso_mime_get_icon_names (const gchar *mime_type, GnomeVFSFileInfo *file_info)

Function Documentation

gchar** osso_mime_get_icon_names const gchar *  mime_type,
GnomeVFSFileInfo *  file_info
 

Returns a NULL terminated array of icon names for the specified mime type. The icon names are GtkIconTheme names. A number of names are returned, ordered by how specific they are. For example, if the mime type "image/png" is passed, the first icon name might correspond to a png file, the second to an image file, and the third to a regular file.

In order to decide which icon to use, the existance of it in the icon theme should be checked with gtk_icon_theme_has_icon(). If the first icon is not available, try the next etc.

The optional GnomeVFSFileInfo struct is used to get additional information about a file or directory that might help to get the right icon.

Parameters:
mime_type The mime type
file_info Optional GnomeVFSFileInfo struct, or NULL
Returns:
A newly allocated array of icon name strings. Should be freed with g_strfreev().


Generated on Sat May 14 04:16:34 2005 for LibOSSOMIME by doxygen 1.3.7