/usr/share/gtk-doc/html/pygtksourceview2/class-gtksourcestyleschememanager2.html is in python-gtksourceview2 2.10.1-2build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | <html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>gtksourceview2.StyleSchemeManager</title><link rel="stylesheet" type="text/css" href="style.css"><meta name="generator" content="DocBook XSL Stylesheets V1.76.1"><link rel="home" href="index.html" title="PyGtksourceview2 Reference Manual"><link rel="up" href="index.html" title="PyGtksourceview2 Reference Manual"><link rel="prev" href="class-gtksourcestylescheme2.html" title="gtksourceview2.StyleScheme"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">gtksourceview2.StyleSchemeManager</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gtksourcestylescheme2.html">Prev</a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> </td></tr></table><hr></div><div class="refentry" title="gtksourceview2.StyleSchemeManager"><a name="class-gtksourcestyleschememanager2"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtksourceview2.StyleSchemeManager</h2><p>gtksourceview2.StyleSchemeManager — Scheme Manager object for <a class="link" href="class-gtksourceview2.html" title="gtksourceview2.View">gtksourceview2.View</a></p></div><div class="refsect1" title="Synopsis"><a name="idp9467776"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtksourceview2.StyleSchemeManager</span></span>(<span class="ooclass"><span class="classname"><a
href="../pygobject/class-gobject.html"
>gobject.GObject</a></span></span>):
<code class="constructorsynopsis"> <span class="methodname"><a class="link" href="class-gtksourcestyleschememanager2.html#constructor-gtksourcestyleschememanager2" title="Constructor">gtksourceview2.StyleSchemeManager</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtksourcestyleschememanager2.html#method-gtksourcestyleschememanager2--append-search-path" title="gtksourceview2.StyleSchemeManager.append_search_path">append_search_path</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>path</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtksourcestyleschememanager2.html#method-gtksourcestyleschememanager2--force-rescan" title="gtksourceview2.StyleSchemeManager.force_rescan">force_rescan</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtksourcestyleschememanager2.html#method-gtksourcestyleschememanager2--get-scheme" title="gtksourceview2.StyleSchemeManager.get_scheme">get_scheme</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtksourcestyleschememanager2.html#method-gtksourcestyleschememanager2--get-scheme-ids" title="gtksourceview2.StyleSchemeManager.get_scheme_ids">get_scheme_ids</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtksourcestyleschememanager2.html#method-gtksourcestyleschememanager2--get-search-path" title="gtksourceview2.StyleSchemeManager.get_search_path">get_search_path</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtksourcestyleschememanager2.html#method-gtksourcestyleschememanager2--prepend-search-path" title="gtksourceview2.StyleSchemeManager.prepend_search_path">prepend_search_path</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>path</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtksourcestyleschememanager2.html#method-gtksourcestyleschememanager2--set-search-path" title="gtksourceview2.StyleSchemeManager.set_search_path">set_search_path</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>path</code></strong></span></span>)</code><br></pre></td></tr></table><pre class="programlisting">
<span class="bold"><strong>Functions</strong></span>
<code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtksourcestyleschememanager2.html#function-gtksourcestyleschememanager2--get-default" title="gtksourceview2.language_manager_get_default">gtksourceview2.style_scheme_manager_get_default</a></span>(<span class="methodparam"></span>)</code></pre></div><div class="refsect1" title="Ancestry"><a name="idp11267600"></a><h2>Ancestry</h2><pre class="synopsis">+-- <a
href="../pygobject/class-gobject.html"
>gobject.GObject</a>
+-- <a class="link" href="class-gtksourcestyleschememanager2.html" title="gtksourceview2.StyleSchemeManager">gtksourceview2.StyleSchemeManager</a>
</pre></div><div class="refsect1" title="Properties"><a name="idp11271552"></a><h2>Properties</h2><div class="blockquote"><table width="100%" border="0" bgcolor="#E0E0E0"><tr><td valign="top"><div class="informaltable"><table width="100%" border="0"><colgroup><col width="1in"><col width="1in"><col width="3in"></colgroup><tbody><tr valign="top"><td valign="top">"scheme-ids"</td><td valign="top">Read</td><td valign="top">List of the ids of the available schemes.</td></tr><tr valign="top"><td valign="top">"search-path"</td><td valign="top">Read-Write</td><td valign="top">List of of directories and files where the style schemes are located.</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" title="Description"><a name="description-gtksourcelanguagemanager"></a><h2>Description</h2><p>
Interface to manage available and custom style schemes.
</p></div><div class="refsect1" title="Constructor"><a name="constructor-gtksourcestyleschememanager2"></a><h2>Constructor</h2><pre class="programlisting"><code class="constructorsynopsis"> <span class="methodname">gtksourceview2.StyleSchemeManager</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code></code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a new <a class="link" href="class-gtksourcestyleschememanager2.html" title="gtksourceview2.StyleSchemeManager"><code class="classname">gtksourceview2.StyleSchemeManager</code></a>.</td></tr></tbody></table><p>
Creates a new <a class="link" href="class-gtksourcestyleschememanager2.html" title="gtksourceview2.StyleSchemeManager"><code class="classname">gtksourceview2.StyleSchemeManager</code></a> object.
</p></div><div class="refsect1" title="Methods"><a name="idp11653296"></a><h2>Methods</h2><div class="refsect2" title="gtksourceview2.StyleSchemeManager.append_search_path"><a name="method-gtksourcestyleschememanager2--append-search-path"></a><h3>gtksourceview2.StyleSchemeManager.append_search_path</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">append_search_path</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>path</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>path</em></span> :</span></p></td><td>a directory or a filename.</td></tr></tbody></table><p>
The <code class="methodname">append_search_path</code>() method appends path to the list of
directories where the manager looks for style scheme files. See
<code class="methodname"><a class="link" href="class-gtksourcestyleschememanager2.html#method-gtksourcestyleschememanager2--set-search-path" title="gtksourceview2.StyleSchemeManager.set_search_path">gtksourceview2.StyleSchemeManager.set_search_path</a></code>()
for details.
</p></div><div class="refsect2" title="gtksourceview2.StyleSchemeManager.force_rescan"><a name="method-gtksourcestyleschememanager2--force-rescan"></a><h3>gtksourceview2.StyleSchemeManager.force_rescan</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">force_rescan</span>(<span class="methodparam"></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody></tbody></table><p>
The <code class="methodname">force_rescan</code>() 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.
</p></div><div class="refsect2" title="gtksourceview2.StyleSchemeManager.get_scheme"><a name="method-gtksourcestyleschememanager2--get-scheme"></a><h3>gtksourceview2.StyleSchemeManager.get_scheme</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_scheme</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>scheme_id</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>scheme_id</em></span> :</span></p></td><td>style scheme id to find.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a <a class="link" href="class-gtksourcestylescheme2.html" title="gtksourceview2.StyleScheme"><code class="classname">gtksourceview2.StyleScheme</code></a>
object.</td></tr></tbody></table><p>
The <code class="methodname">get_scheme</code>() method looks up style scheme by id.
</p></div><div class="refsect2" title="gtksourceview2.StyleSchemeManager.get_scheme_ids"><a name="method-gtksourcestyleschememanager2--get-scheme-ids"></a><h3>gtksourceview2.StyleSchemeManager.get_scheme_ids</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_scheme_ids</span>(<span class="methodparam"></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a list of strings containing the ids of the available style
schemes or <code class="literal">None</code> if no style scheme is available.</td></tr></tbody></table><p>
The <code class="methodname">get_scheme_ids</code>() method
returns the ids of the available style schemes.
</p></div><div class="refsect2" title="gtksourceview2.StyleSchemeManager.get_search_path"><a name="method-gtksourcestyleschememanager2--get-search-path"></a><h3>gtksourceview2.StyleSchemeManager.get_search_path</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_search_path</span>(<span class="methodparam"></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a list of string containing the search path.</td></tr></tbody></table><p>
The <code class="methodname">get_search_path</code>() method
gets the Returns the current search path for the manager, See
<code class="methodname"><a class="link" href="class-gtksourcestyleschememanager2.html#method-gtksourcestyleschememanager2--set-search-path" title="gtksourceview2.StyleSchemeManager.set_search_path">gtksourceview2.StyleSchemeManager.set_search_path</a></code>()
for details.
</p></div><div class="refsect2" title="gtksourceview2.StyleSchemeManager.prepend_search_path"><a name="method-gtksourcestyleschememanager2--prepend-search-path"></a><h3>gtksourceview2.StyleSchemeManager.prepend_search_path</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">prepend_search_path</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>path</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>path</em></span> :</span></p></td><td>a directory or a filename.</td></tr></tbody></table><p>
The <code class="methodname">prepend_search_path</code>() method prepends path to the list of
directories where the manager looks for style scheme files. See
<code class="methodname"><a class="link" href="class-gtksourcestyleschememanager2.html#method-gtksourcestyleschememanager2--set-search-path" title="gtksourceview2.StyleSchemeManager.set_search_path">gtksourceview2.StyleSchemeManager.set_search_path</a></code>()
for details.
</p></div><div class="refsect2" title="gtksourceview2.StyleSchemeManager.set_search_path"><a name="method-gtksourcestyleschememanager2--set-search-path"></a><h3>gtksourceview2.StyleSchemeManager.set_search_path</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_search_path</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>dirs</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>dirs</em></span> :</span></p></td><td>a list of dirs (as string).</td></tr></tbody></table><p>
The <code class="methodname">set_search_path</code>() method sets the list of directories
where the manager looks for style scheme files.
If dirs is <code class="literal">None</code>, the search path is reset to default.
</p></div></div><div class="refsect1" title="Functions"><a name="idp11709712"></a><h2>Functions</h2><div class="refsect2" title="gtksourceview2.language_manager_get_default"><a name="function-gtksourcestyleschememanager2--get-default"></a><h3>gtksourceview2.language_manager_get_default</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">gtksourceview2.language_manager_get_default</span>(<span class="methodparam"></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a <a class="link" href="class-gtksourcestyleschememanager2.html" title="gtksourceview2.StyleSchemeManager"><code class="classname">gtksourceview2.StyleSchemeManager</code></a>.</td></tr></tbody></table><p>
The <code class="methodname">language_manager_get_default</code>() function Returns the default
<a class="link" href="class-gtksourcestyleschememanager2.html" title="gtksourceview2.StyleSchemeManager"><code class="classname">gtksourceview2.StyleSchemeManager</code></a> instance.
</p></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="class-gtksourcestylescheme2.html">Prev</a> </td><td width="20%" align="center"> </td><td width="40%" align="right"> </td></tr><tr><td width="40%" align="left" valign="top">gtksourceview2.StyleScheme </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> </td></tr></table></div></body></html>
|