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 gtk_icon_info_load_icon().

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

See gtk_icon_info_load_symbolic() for more details.

More...
class IconInfo
loadSymbolicForStyle

Parameters

style Style

a #GtkStyle 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 #GdkPixbuf representing the loaded icon

Detailed Description

Deprecated: Use gtk_icon_info_load_symbolic_for_context() instead

Throws

GException on failure.

Meta