GtkSourceStyleSchemeManager

GtkSourceStyleSchemeManager

Synopsis


#include <gtksourceview/gtksourcestyleschememanager.h>


                    GtkSourceStyleSchemeManager;
void                gtk_source_style_scheme_manager_set_search_path
                                                        (GtkSourceStyleSchemeManager *manager,
                                                         gchar **path);
void                gtk_source_style_scheme_manager_append_search_path
                                                        (GtkSourceStyleSchemeManager *manager,
                                                         const gchar *path);
void                gtk_source_style_scheme_manager_prepend_search_path
                                                        (GtkSourceStyleSchemeManager *manager,
                                                         const gchar *path);
GtkSourceStyleScheme* gtk_source_style_scheme_manager_get_scheme
                                                        (GtkSourceStyleSchemeManager *manager,
                                                         const gchar *scheme_id);
void                gtk_source_style_scheme_manager_force_rescan
                                                        (GtkSourceStyleSchemeManager *manager);

Object Hierarchy


  GObject
   +----GtkSourceStyleSchemeManager

Properties


  "scheme-ids"               GStrv                 : Read
  "search-path"              GStrv                 : Read / Write

Description

Details

GtkSourceStyleSchemeManager

typedef struct _GtkSourceStyleSchemeManager GtkSourceStyleSchemeManager;


gtk_source_style_scheme_manager_set_search_path ()

void                gtk_source_style_scheme_manager_set_search_path
                                                        (GtkSourceStyleSchemeManager *manager,
                                                         gchar **path);

Sets the list of directories where the manager looks for style scheme files. If dirs is NULL, the search path is reset to default.

manager : a GtkSourceStyleSchemeManager.
path : a NULL-terminated array of strings or NULL.

gtk_source_style_scheme_manager_append_search_path ()

void                gtk_source_style_scheme_manager_append_search_path
                                                        (GtkSourceStyleSchemeManager *manager,
                                                         const gchar *path);

Appends path to the list of directories where the manager looks for style scheme files. See gtk_source_style_scheme_manager_set_search_path() for details.

manager : a GtkSourceStyleSchemeManager.
path : a directory or a filename.

gtk_source_style_scheme_manager_prepend_search_path ()

void                gtk_source_style_scheme_manager_prepend_search_path
                                                        (GtkSourceStyleSchemeManager *manager,
                                                         const gchar *path);

Prepends path to the list of directories where the manager looks for style scheme files. See gtk_source_style_scheme_manager_set_search_path() for details.

manager : a GtkSourceStyleSchemeManager.
path : a directory or a filename.

gtk_source_style_scheme_manager_get_scheme ()

GtkSourceStyleScheme* gtk_source_style_scheme_manager_get_scheme
                                                        (GtkSourceStyleSchemeManager *manager,
                                                         const gchar *scheme_id);

Looks up style scheme by id.

manager : a GtkSourceStyleSchemeManager
scheme_id : style scheme id to find
Returns : a GtkSourceStyleScheme object. Returned value is owned by manager and must not be unref'ed.

gtk_source_style_scheme_manager_force_rescan ()

void                gtk_source_style_scheme_manager_force_rescan
                                                        (GtkSourceStyleSchemeManager *manager);

Mark any currently cached information about the available style scehems as invalid. All the available style schemes will be reloaded next time the manager is accessed.

Property Details

The "scheme-ids" property

  "scheme-ids"               GStrv                 : Read

List of the ids of the available style schemes.


The "search-path" property

  "search-path"              GStrv                 : Read / Write

List of directories and files where the style schemes are located.