Gio.FileIcon

g GObject.GInterface GObject.GInterface Gio.Icon Gio.Icon GObject.GInterface->Gio.Icon Gio.LoadableIcon Gio.LoadableIcon GObject.GInterface->Gio.LoadableIcon GObject.Object GObject.Object Gio.FileIcon Gio.FileIcon GObject.Object->Gio.FileIcon Gio.Icon->Gio.FileIcon Gio.LoadableIcon->Gio.FileIcon

Subclasses:None

Properties

Name Type Flags Short Description
file Gio.File r/w/co The file containing the icon

Signals

Inherited:GObject.Object (1)

Fields

Inherited:GObject.Object (1)

Class Details

class Gio.FileIcon(**kwargs)
Bases:GObject.Object, Gio.Icon, Gio.LoadableIcon
Abstract:No
Structure:Gio.FileIconClass

Gio.FileIcon specifies an icon by pointing to an image file to be used as icon.

classmethod new(file)[source]
Parameters:file (Gio.File) – a Gio.File.
Returns:a Gio.Icon for the given file, or None on error.
Return type:Gio.FileIcon

Creates a new icon for a file.

get_file()[source]
Returns:a Gio.File, or None.
Return type:Gio.File

Gets the Gio.File associated with the given self.

Property Details

Gio.FileIcon.props.file
Name:file
Type:Gio.File
Default Value:None
Flags:READABLE, WRITABLE, CONSTRUCT_ONLY

The file containing the icon.