Method

GtkStylelookup_color

Declaration [src]

gboolean
gtk_style_lookup_color (
  GtkStyle* style,
  const gchar* color_name,
  GdkColor* color
)

Description [src]

Looks up color_name in the style‚Äôs logical color mappings, filling in color and returning TRUE if found, otherwise returning FALSE. Do not cache the found mapping, because it depends on the GtkStyle and might change when a theme switch occurs.

Available since:2.10
Deprecated since:3.0

Use gtk_style_context_lookup_color() instead.

Parameters

color_name

Type: const gchar*

The name of the logical color to look up.

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

Type: GdkColor

The GdkColor to fill in.

The argument will be set by the function.
The data is owned by the caller of the function.

Return value

Type: gboolean

TRUE if the mapping was found.