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

Methods

Inherited:

GObject.Object (37), Gio.Icon (6), Gio.LoadableIcon (3)

Structs:

GObject.ObjectClass (5)

class

new (file)

get_file ()

Virtual Methods

Inherited:

GObject.Object (7), Gio.Icon (4), Gio.LoadableIcon (3)

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.

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.