Method

GtkSourceLanguageget_style_fallback

Declaration

const gchar*
gtk_source_language_get_style_fallback (
  GtkSourceLanguage* language,
  const gchar* style_id
)

Description

Returns the ID of the style to use if the specified style_id is not present in the current style scheme.

Parameters

style_id const gchar*
 

A style ID.

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

Return value

Returns: utf8
 

The ID of the style to use if the specified style_id is not present in the current style scheme or NULL if the style has no fallback defined. The returned string is owned by the language and must not be modified.

 The data is owned by the instance.
 The return value can be NULL.
 The string is a NUL terminated UTF-8 string.