GtkSourceLanguagesManager

GtkSourceLanguagesManager —

Synopsis


#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);

Object Hierarchy


  GObject
   +----GtkSourceLanguagesManager

Properties


  "lang-files-dirs"      gpointer              : Read / Write / Construct Only

Description

Details

GtkSourceLanguagesManager

typedef struct _GtkSourceLanguagesManager GtkSourceLanguagesManager;


gtk_source_languages_manager_new ()

GtkSourceLanguagesManager* gtk_source_languages_manager_new
                                            (void);

Creates a new language manager.


gtk_source_languages_manager_get_available_languages ()

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.

gtk_source_languages_manager_get_language_from_mime_type ()

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.

gtk_source_languages_manager_get_lang_files_dirs ()

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).

Property Details

The "lang-files-dirs" property

  "lang-files-dirs"      gpointer              : Read / Write / Construct Only

List of directories where the language specification files (.lang) are located.