gtksourceview2.StyleSchemeManager

gtksourceview2.StyleSchemeManager — Scheme Manager object for gtksourceview2.View

Synopsis

 gtksourceview2.StyleSchemeManager extends, gobject.GObject {
  gtksourceview2.StyleSchemeManager();
  append_search_path(path);
  force_rescan();
  get_scheme();
  get_scheme_ids();
  get_search_path();
  prepend_search_path(path);
  set_search_path(path);
}
Functions

gtksourceview2.style_scheme_manager_get_default();

Ancestry

+-- gobject.GObject
    +-- gtksourceview2.StyleSchemeManager

Properties

"scheme-ids"ReadList of the ids of the available schemes.
"search-path"Read-WriteList of of directories and files where the style schemes are located.

Description

Interface to manage available and custom style schemes.

Constructor

gtksourceview2.StyleSchemeManager();

Creates a new gtksourceview2.StyleSchemeManager object.

Methods

gtksourceview2.StyleSchemeManager.append_search_path

append_search_path(path);

path :

a directory or a filename.

The append_search_path() method appends path to the list of directories where the manager looks for style scheme files. See gtksourceview2.StyleSchemeManager.set_search_path() for details.

gtksourceview2.StyleSchemeManager.force_rescan

force_rescan();

The force_rescan() method 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.

gtksourceview2.StyleSchemeManager.get_scheme

get_scheme(scheme_id);

scheme_id :

style scheme id to find.

Returns :

a gtksourceview2.StyleScheme object.

The get_scheme() method looks up style scheme by id.

gtksourceview2.StyleSchemeManager.get_scheme_ids

get_scheme_ids();

Returns :

a list of strings containing the ids of the available style schemes or None if no style scheme is available.

The get_scheme_ids() method returns the ids of the available style schemes.

gtksourceview2.StyleSchemeManager.get_search_path

get_search_path();

Returns :

a list of string containing the search path.

The get_search_path() method gets the Returns the current search path for the manager, See gtksourceview2.StyleSchemeManager.set_search_path() for details.

gtksourceview2.StyleSchemeManager.prepend_search_path

prepend_search_path(path);

path :

a directory or a filename.

The prepend_search_path() method prepends path to the list of directories where the manager looks for style scheme files. See gtksourceview2.StyleSchemeManager.set_search_path() for details.

gtksourceview2.StyleSchemeManager.set_search_path

set_search_path(dirs);

dirs :

a list of dirs (as string).

The set_search_path() method sets the list of directories where the manager looks for style scheme files. If dirs is None, the search path is reset to default.

Functions

gtksourceview2.language_manager_get_default

gtksourceview2.language_manager_get_default();

The language_manager_get_default() function Returns the default gtksourceview2.StyleSchemeManager instance.