Top | ![]() |
![]() |
![]() |
![]() |
void | fm_mime_type_add_thumbnailer () |
FmMimeType * | fm_mime_type_from_file_name () |
FmMimeType * | fm_mime_type_from_name () |
FmMimeType * | fm_mime_type_from_native_file () |
const char * | fm_mime_type_get_desc () |
FmIcon * | fm_mime_type_get_icon () |
const GList * | fm_mime_type_get_thumbnailers () |
GList * | fm_mime_type_get_thumbnailers_list () |
FmMimeType * | fm_mime_type_ref () |
void | fm_mime_type_remove_thumbnailer () |
void | fm_mime_type_unref () |
void fm_mime_type_add_thumbnailer (FmMimeType *mime_type
,gpointer thumbnailer
);
Adds thumbnailer
to list of thumbnailers associated with mime_type
.
Since: 1.0.0
FmMimeType *
fm_mime_type_from_file_name (const char *ufile_name
);
Finds FmMimeType descriptor guessing type from ufile_name
.
Before 1.0.0 this API had name fm_mime_type_get_for_file_name.
Since: 0.1.0
FmMimeType *
fm_mime_type_from_name (const char *type
);
Finds FmMimeType descriptor for type
.
Before 1.0.0 this API had name fm_mime_type_get_for_type.
Since: 0.1.0
FmMimeType * fm_mime_type_from_native_file (const char *file_path
,const char *base_name
,struct stat *pstat
);
Finds FmMimeType descriptor for provided data. If file does not exist
then returns NULL
.
Before 1.0.0 this API had name fm_mime_type_get_for_native_file.
Note that this call does I/O and therefore can block.
Since: 0.1.0
const char *
fm_mime_type_get_desc (FmMimeType *mime_type
);
Retrieves human-readable description of MIME type. Returned data are
owned by mime_type
and should be not freed by caller.
Since: 0.1.0
FmIcon *
fm_mime_type_get_icon (FmMimeType *mime_type
);
Retrieves icon associated with mime_type
. Returned data are owned by
mime_type
and should be not freed by caller.
Since: 0.1.0
const GList *
fm_mime_type_get_thumbnailers (FmMimeType *mime_type
);
fm_mime_type_get_thumbnailers
has been deprecated since version 1.2.0 and should not be used in newly-written code.
Use fm_mime_type_get_thumbnailers_list()
instead.
Retrieves list of thumbnailers associated with mime_type
. Returned
data are owned by mime_type
and should be not altered by caller.
Since: 1.0.0
GList *
fm_mime_type_get_thumbnailers_list (FmMimeType *mime_type
);
Retrieves list of thumbnailers associated with mime_type
. Returned
data should be freed after usage.
Since: 1.2.0
FmMimeType *
fm_mime_type_ref (FmMimeType *mime_type
);
Increments reference count on mime_type
.
Since: 0.1.0
void fm_mime_type_remove_thumbnailer (FmMimeType *mime_type
,gpointer thumbnailer
);
Removes thumbnailer
from list of thumbnailers associated with
mime_type
.
Since: 1.0.0
void
fm_mime_type_unref (gpointer mime_type_
);
Decrements reference count on mime_type_
.
Since: 0.1.0