GThemedIcon: GThemedIcon

Description Methods and Functions Hierarchy Interfaces Detailed Description Structures Convenient Construction Properties Author(s) References

Description

Icon theming support

Methods and Functions

gThemedIconNew(iconname = NULL)
gThemedIconNewFromNames(iconnames, len)
gThemedIconNewWithDefaultFallbacks(iconname)
gThemedIconPrependName(object, iconname)
gThemedIconAppendName(object, iconname)
gThemedIconGetNames(object)
gThemedIcon(iconname, iconnames, len)

Hierarchy

1
2

Interfaces

GThemedIcon implements GIcon.

Detailed Description

GThemedIcon is an implementation of GIcon 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. GThemedIcon does not provide actual pixmaps for icons, just the icon names. Ideally something like gtkIconThemeChooseIcon should be used to resolve the list of names so that fallback icons work nicely with themes that inherit other themes.

Structures

GThemedIcon

An implementation of GIcon for themed icons.

Convenient Construction

gThemedIcon is the result of collapsing the constructors of GThemedIcon (gThemedIconNew, gThemedIconNewWithDefaultFallbacks, gThemedIconNewFromNames) and accepts a subset of its arguments matching the required arguments of one of its delegate constructors.

Properties

name [character : * : Write / Construct Only]

The icon name. Default value: NULL

names [character list : Read / Write / Construct Only]

A list of icon names.

use-default-fallbacks [logical : Read / Write / Construct Only]

Whether to use the default fallbacks found by shortening the icon name at '-' characters. If the "names" list has more than one element, ignores any past the first.

For example, if the icon name was "gnome-dev-cdrom-audio", the list would become

c("gnome-dev-cdrom-audio", "gnome-dev-cdrom", "gnome-dev", "gnome")

Default value: FALSE

Author(s)

Derived by RGtkGen from GTK+ documentation

References

https://developer.gnome.org/gio/stable/GThemedIcon.html


RGtk2 documentation built on Oct. 14, 2021, 5:08 p.m.

Related to GThemedIcon in RGtk2...