Method

GtkSourceLanguageManagerset_search_path

Declaration

void
gtk_source_language_manager_set_search_path (
  GtkSourceLanguageManager* lm,
  const gchar* const* dirs
)

Description

Sets the list of directories where the lm looks for language files.

If dirs is NULL, the search path is reset to default.

At the moment this function can be called only before the language files are loaded for the first time. In practice to set a custom search path for a GtkSourceLanguageManager, you have to call this function right after creating it.

Parameters

dirs An array of gchar*
 

A NULL-terminated array of strings or NULL.

 The argument can be NULL.
 The data is owned by the caller of the function.