Method

GtkIconInfoload_symbolic_for_style

deprecated: 3.0 since: 3.0

Declaration [src]

GdkPixbuf*
gtk_icon_info_load_symbolic_for_style (
  GtkIconInfo* icon_info,
  GtkStyle* style,
  GtkStateType state,
  gboolean* was_symbolic,
  GError** error
)

Description [src]

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.

Available since: 3.0

Deprecated since: 3.0

Use gtk_icon_info_load_symbolic_for_context() instead.

Parameters

style

Type: GtkStyle

A GtkStyle to take the colors from.

The data is owned by the caller of the method.
state

Type: GtkStateType

The widget state to use for colors.

was_symbolic

Type: gboolean*

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

The argument will be set by the function.
The argument can be NULL.
error

Type: GError **

The return location for a recoverable error.

The argument can be NULL.
If the return location is not NULL, then you must initialize it to a NULL GError*.
The argument will be left initialized to NULL by the method if there are no errors.
In case of error, the argument will be set to a newly allocated GError; the caller will take ownership of the data, and be responsible for freeing it.

Return value

Type: GdkPixbuf

A GdkPixbuf representing the loaded icon.

The caller of the method takes ownership of the returned data, and is responsible for freeing it.