Method

GtkWidgetoverride_symbolic_color

Declaration [src]

void
gtk_widget_override_symbolic_color (
  GtkWidget* widget,
  const gchar* name,
  const GdkRGBA* color
)

Description [src]

Sets a symbolic color for a widget.

All other style values are left untouched. See gtk_widget_override_color() for overriding the foreground or background color.

Available since:3.0
Deprecated since:3.16

This function is not useful in the context of CSS-based rendering. If you wish to change the color used to render symbolic icons you should use a custom CSS style, through an application-specific GtkStyleProvider and a CSS style class.

Parameters

name const gchar*
 

The name of the symbolic color to modify.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
color GdkRGBA
 

The color to assign (does not need to be allocated), or NULL to undo the effect of previous calls to gtk_widget_override_symbolic_color()

 The argument can be NULL.
 The data is owned by the caller of the function.