Gio.Emblem

g GObject.GInterface GObject.GInterface Gio.Icon Gio.Icon GObject.GInterface->Gio.Icon GObject.Object GObject.Object Gio.Emblem Gio.Emblem GObject.Object->Gio.Emblem Gio.Icon->Gio.Emblem

Subclasses:

None

Methods

Inherited:

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

Structs:

GObject.ObjectClass (5)

class

new (icon)

class

new_with_origin (icon, origin)

get_icon ()

get_origin ()

Virtual Methods

Inherited:

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

Properties

Name

Type

Flags

Short Description

icon

GObject.Object

r/w/co

The actual icon of the emblem

origin

Gio.EmblemOrigin

r/w/co

Tells which origin the emblem is derived from

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Gio.Emblem(**kwargs)
Bases:

GObject.Object, Gio.Icon

Abstract:

No

Structure:

Gio.EmblemClass

Gio.Emblem is an implementation of Gio.Icon that supports having an emblem, which is an icon with additional properties. It can than be added to a Gio.EmblemedIcon.

Currently, only metainformation about the emblem’s origin is supported. More may be added in the future.

classmethod new(icon)[source]
Parameters:

icon (Gio.Icon) – a Gio.Icon containing the icon.

Returns:

a new Gio.Emblem.

Return type:

Gio.Emblem

Creates a new emblem for icon.

New in version 2.18.

classmethod new_with_origin(icon, origin)[source]
Parameters:
Returns:

a new Gio.Emblem.

Return type:

Gio.Emblem

Creates a new emblem for icon.

New in version 2.18.

get_icon()[source]
Returns:

a Gio.Icon. The returned object belongs to the emblem and should not be modified or freed.

Return type:

Gio.Icon

Gives back the icon from self.

New in version 2.18.

get_origin()[source]
Returns:

the origin of the emblem

Return type:

Gio.EmblemOrigin

Gets the origin of the emblem.

New in version 2.18.

Property Details

Gio.Emblem.props.icon
Name:

icon

Type:

GObject.Object

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The actual icon of the emblem

Gio.Emblem.props.origin
Name:

origin

Type:

Gio.EmblemOrigin

Default Value:

Gio.EmblemOrigin.UNKNOWN

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Tells which origin the emblem is derived from