IconInfo.loadSymbolicForStyle

Loads an icon, modifying it to match the system colours for the foreground, success, warning and error colors provided. If the icon is not a symbolic one, the function will return the result from IconInfo.loadIcon.

This allows loading symbolic icons that will match the system theme.

See IconInfo.loadSymbolic for more details.

More...
class IconInfo
loadSymbolicForStyle

Parameters

style Style

a gtk.Style to take the colors from

state GtkStateType

the widget state to use for colors

wasSymbolic bool

a gboolean, returns whether the loaded icon was a symbolic one and whether the fg color was applied to it.

Return Value

Type: Pixbuf

a gdk.Pixbuf representing the loaded icon

Detailed Description

Deprecated: Use IconInfo.loadSymbolicForContext instead

Throws

GException on failure.

Meta