GtkSourceView Reference Manual | ||||
---|---|---|---|---|
#include <gtksourceview/gtksourcelanguagesmanager.h> GtkSourceLanguagesManager; GtkSourceLanguagesManager* gtk_source_languages_manager_new (void); const GSList* gtk_source_languages_manager_get_available_languages (GtkSourceLanguagesManager *lm); GtkSourceLanguage* gtk_source_languages_manager_get_language_from_mime_type (GtkSourceLanguagesManager *lm, const gchar *mime_type); const GSList* gtk_source_languages_manager_get_lang_files_dirs (GtkSourceLanguagesManager *lm);
GtkSourceLanguagesManager* gtk_source_languages_manager_new (void);
Creates a new language manager.
Returns : | a GtkSourceLanguagesManager. |
const GSList* gtk_source_languages_manager_get_available_languages (GtkSourceLanguagesManager *lm);
Gets a list of available languages for the given language manager. This function returns a pointer to a internal list, so there is no need to free it after usage.
lm : |
a GtkSourceLanguagesManager. |
Returns : | a list of GtkSourceLanguage. |
GtkSourceLanguage* gtk_source_languages_manager_get_language_from_mime_type (GtkSourceLanguagesManager *lm, const gchar *mime_type);
Gets the GtkSourceLanguage which is associated with the given mime_type
in the language manager.
lm : |
a GtkSourceLanguagesManager. |
mime_type : |
a mime type. |
Returns : | a GtkSourceLanguage, or NULL if there is no language
associated with the given mime_type .
|
const GSList* gtk_source_languages_manager_get_lang_files_dirs (GtkSourceLanguagesManager *lm);
Gets a list of language files directories for the given language manager.
lm : |
a GtkSourceLanguagesManager. |
Returns : | a list of language files directories (as strings). |