### Method

# Gtk Widget add_css_class

#### Declaration [src]

    void
    gtk_widget_add_css_class (
      GtkWidget* widget,
      const char* css_class
    )

#### Description [src]

Adds a style class to the widget.

After calling this function, the widget’s style will match for `css_class`, according to CSS matching rules.

Use `gtk_widget_remove_css_class()` to remove the style again.

#### Parameters

`css_class`

  Type: `const char*`

  Style class to add to `widget`, without the leading period.

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