GLib.ContentType
Description:
Content:
Functions:
- public bool can_be_executable (string type)
Checks if a content type can be executable.
- public bool equals (string type1, string type2)
Compares two content types for equality.
- public string? from_mime_type (string mime_type)
Tries to find a content type based on the mime type name.
- public string get_description (string type)
Gets the human readable description of the content type.
- public string? get_generic_icon_name (string type)
Gets the generic icon name for a content type.
- public Icon get_icon (string type)
Gets the icon for a content type.
- public unowned string[] get_mime_dirs ()
Get the list of directories which MIME data is loaded from.
- public string? get_mime_type (string type)
Gets the mime type for the content type, if one is registered.
- public Icon get_symbolic_icon (string type)
Gets the symbolic icon for a content type.
- public string guess (string? filename, uint8[]? data, out bool result_uncertain)
Guesses the content type based on example data.
- public string[] guess_for_tree (File root)
Tries to guess the type of the tree with root
root
, by looking at the files it contains. - public bool is_a (string type, string supertype)
Determines if
type
is a subset ofsupertype
. - public bool is_mime_type (string type, string mime_type)
Determines if
type
is a subset ofmime_type
. - public bool is_unknown (string type)
Checks if the content type is the generic "unknown" type.
- public List<string> list_registered ()
Gets a list of strings containing all the registered content types known to the system.
- public void set_mime_dirs (string[]? dirs)
Set the list of directories used by GIO to load the MIME database.