Function

Phoshutil_toggle_style_class

Declaration [src]

void
phosh_util_toggle_style_class (
  GtkWidget* widget,
  const char* style_class,
  gboolean toggle
)

Description [src]

Adds or removes the specified style class on the widget.

Parameters

widget GtkWidget
 

Widget to change styling of.

 The data is owned by the caller of the function.
style_class const char*
 

The name of CSS class.

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

Whether the class should be set or unset.