IconInfo.loadSymbolicForStyle

Warning gtk_icon_info_load_symbolic_for_style has been deprecated since version 3.0 and should not be used in newly-written code. Use gtk_icon_info_load_symbolic_for_context() instead 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.

class IconInfo
loadSymbolicForStyle

Parameters

style Style

a GtkStyle to take the colors from

state GtkStateType

the widget state to use for colors

wasSymbolic int

a gboolean, returns whether the loaded icon was a symbolic one and whether the fg color was applied to it. out[allow-none]

Return Value

Type: Pixbuf

a GdkPixbuf representing the loaded icon. [transfer full] Since 3.0

Throws

GException on failure.

Meta