gio.ThemedIcon — Icon theming support.
class gio.ThemedIcon(gobject.GObject): |
|
gio.ThemedIcon
is an implementation of gio.Icon
that supports icon themes. GThemedIcon contains a list of all of the icons present in an icon
theme, so that icons can be looked up quickly.
gio.ThemedIcon
does not provide actual pixmaps for icons, just the icon names. Ideally something like
()
should be used to resolve the list of names so that fallback icons work nicely
with themes that inherit other themes
gio.ThemedIcon(name
, use_default_fallbacks
=False)
| a string containing an icon name. |
Returns : | a new
gio.ThemedIcon .
|
Creates a new themed icon from icon name, if instead of an icon name you
provide a list of icon names, the gio.ThemedIcon
will be constructed using the items in the list.
def append_name()
name : | name of icon to append to list of icons from within icon. |
The append_name
() method appends a name to
the list of icons from within icon.