since: 3.2

Declaration [src]

gtk_css_provider_to_string (
  GtkCssProvider* provider

Description [src]

Converts the provider into a string representation in CSS format.

Using gtk_css_provider_load_from_data() with the return value from this function on a new provider created with gtk_css_provider_new() will basically create a duplicate of this provider.

Available since: 3.2

Return value

Type: char*

A new string representing the provider.

The caller of the method takes ownership of the returned data, and is responsible for freeing it.
The value is a NUL terminated UTF-8 string.