load_symbolic_for_context


Description:

[ Version ( since = "3.0" ) ]
public Pixbuf load_symbolic_for_context (StyleContext context, out bool was_symbolic = null) throws Error

Loads an icon, modifying it to match the system colors for the foreground, success, warning and error colors provided.

If the icon is not a symbolic one, the function will return the result from load_icon. This function uses the regular foreground color and the symbolic colors with the names “success_color”, “warning_color” and “error_color” from the context.

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

See load_symbolic for more details.

Parameters:

this

a IconInfo

context

a StyleContext

was_symbolic

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

Returns:

a Pixbuf representing the loaded icon