Function

Gtkrc_parse_state

Declaration [src]

guint
gtk_rc_parse_state (
  GScanner* scanner,
  GtkStateType* state
)

Description [src]

Parses a GtkStateType variable from the format expected in a RC file.

Deprecated since:3.0

Use GtkCssProvider instead.

Parameters

scanner GScanner
 

A GScanner (must be initialized for parsing an RC file)

 The data is owned by the caller of the function.
state GtkStateType
 

A pointer to a GtkStateType variable in which to store the result.

 The argument will be set by the function.
 The called function takes ownership of the data, and is responsible for freeing it.

Return value

Returns: guint
 

G_TOKEN_NONE if parsing succeeded, otherwise the token that was expected but not found.