Method

GtkCssProviderload_from_path

Declaration [src]

gboolean
gtk_css_provider_load_from_path (
  GtkCssProvider* css_provider,
  const gchar* path,
  GError** error
)

Description [src]

Loads the data contained in path into css_provider, making it clear any previously loaded information.

Parameters

path

Type: const gchar*

The path of a filename to load, in the GLib filename encoding.

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

Type: GError **

The return location for a GError*, or NULL.

Return value

Type: gboolean

TRUE. The return value is deprecated and FALSE will only be returned for backwards compatibility reasons if an error is not NULL and a loading error occurred. To track errors while loading CSS, connect to the GtkCssProvider::parsing-error signal.