gio.Icon

gio.Icon — Interface for icons.

Synopsis

class gio.Icon(gobject.GInterface):
    def equal(icon2)

Ancestry

+-- gobject.GInterface
  +-- gio.Icon

Known Derived Interfaces

gio.Icon is required by gio.LoadableIcon.

Known Implementation

gio.Icon is implemented by gio.ThemedIcon, gio.FileIcon, gio.Emblem, gio.EmblemedIcon.

Description

gio.Icon is a very minimal interface for icons. It provides functions for checking the equality of two icons, hashing of icons and serializing an icon to and from strings.

gio.Icon does not provide the actual pixmap for the icon as this is out of GIO's scope, however implementations of gio.Icon may contain the name of an icon (see gio.ThemedIcon), or the path to an icon (see gio.LoadableIcon).

To check if two GIcons are equal, see gio.Icon.equal().

Methods

gio.Icon.equal

    def equal(icon2)

icon2 :

the second gio.Icon

The equal() method checks if two icons are equal.