gtksourceview2.StyleSchemeManager
gtksourceview2.StyleSchemeManager — Scheme Manager object for gtksourceview2.View
Description
Interface to manage available and custom style schemes.
Methods
gtksourceview2.StyleSchemeManager.append_search_path
def 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
def 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
def get_scheme(scheme_id)
The get_scheme() method looks up style scheme by id.
gtksourceview2.StyleSchemeManager.get_scheme_ids
def 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
def 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
def 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
def 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
def gtksourceview2.language_manager_get_default()
The language_manager_get_default() function Returns the default
gtksourceview2.StyleSchemeManager instance.