<?xml version="1.0"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
               "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
<!ENTITY version SYSTEM "version.xml">
<!ENTITY tutorial SYSTEM "lang-tutorial.sgml">
<!ENTITY reference SYSTEM "lang-reference.sgml">
]>
<refentry id="GtkSourceStyleSchemeManager">
<refmeta>
<refentrytitle role="top_of_page" id="GtkSourceStyleSchemeManager.top_of_page">GtkSourceStyleSchemeManager</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>GTKSOURCEVIEW-2.0 Library</refmiscinfo>
</refmeta>

<refnamediv>
<refname>GtkSourceStyleSchemeManager</refname>
<refpurpose>Object which provides access to <link linkend="GtkSourceStyleScheme"><type>GtkSourceStyleScheme</type></link><!-- -->s</refpurpose>
</refnamediv>

<refsynopsisdiv id="GtkSourceStyleSchemeManager.synopsis" role="synopsis">
<title role="synopsis.title">Synopsis</title>

<synopsis>

#include &lt;gtksourceview/gtksourcestyleschememanager.h&gt;

                    <link linkend="GtkSourceStyleSchemeManager-struct">GtkSourceStyleSchemeManager</link>;
<link linkend="GtkSourceStyleSchemeManager">GtkSourceStyleSchemeManager</link> * <link linkend="gtk-source-style-scheme-manager-new">gtk_source_style_scheme_manager_new</link>
                                                        (void);
<link linkend="GtkSourceStyleSchemeManager">GtkSourceStyleSchemeManager</link> * <link linkend="gtk-source-style-scheme-manager-get-default">gtk_source_style_scheme_manager_get_default</link>
                                                        (void);
<link linkend="void">void</link>                <link linkend="gtk-source-style-scheme-manager-set-search-path">gtk_source_style_scheme_manager_set_search_path</link>
                                                        (<link linkend="GtkSourceStyleSchemeManager">GtkSourceStyleSchemeManager</link> *manager,
                                                         <link linkend="gchar">gchar</link> **path);
<link linkend="void">void</link>                <link linkend="gtk-source-style-scheme-manager-append-search-path">gtk_source_style_scheme_manager_append_search_path</link>
                                                        (<link linkend="GtkSourceStyleSchemeManager">GtkSourceStyleSchemeManager</link> *manager,
                                                         const <link linkend="gchar">gchar</link> *path);
<link linkend="void">void</link>                <link linkend="gtk-source-style-scheme-manager-prepend-search-path">gtk_source_style_scheme_manager_prepend_search_path</link>
                                                        (<link linkend="GtkSourceStyleSchemeManager">GtkSourceStyleSchemeManager</link> *manager,
                                                         const <link linkend="gchar">gchar</link> *path);
const <link linkend="gchar">gchar</link> * const * <link linkend="gtk-source-style-scheme-manager-get-search-path">gtk_source_style_scheme_manager_get_search_path</link>
                                                        (<link linkend="GtkSourceStyleSchemeManager">GtkSourceStyleSchemeManager</link> *manager);
const <link linkend="gchar">gchar</link> * const * <link linkend="gtk-source-style-scheme-manager-get-scheme-ids">gtk_source_style_scheme_manager_get_scheme_ids</link>
                                                        (<link linkend="GtkSourceStyleSchemeManager">GtkSourceStyleSchemeManager</link> *manager);
<link linkend="GtkSourceStyleScheme">GtkSourceStyleScheme</link> * <link linkend="gtk-source-style-scheme-manager-get-scheme">gtk_source_style_scheme_manager_get_scheme</link>
                                                        (<link linkend="GtkSourceStyleSchemeManager">GtkSourceStyleSchemeManager</link> *manager,
                                                         const <link linkend="gchar">gchar</link> *scheme_id);
<link linkend="void">void</link>                <link linkend="gtk-source-style-scheme-manager-force-rescan">gtk_source_style_scheme_manager_force_rescan</link>
                                                        (<link linkend="GtkSourceStyleSchemeManager">GtkSourceStyleSchemeManager</link> *manager);
</synopsis>
</refsynopsisdiv>

<refsect1 id="GtkSourceStyleSchemeManager.object-hierarchy" role="object_hierarchy">
<title role="object_hierarchy.title">Object Hierarchy</title>
<synopsis>
  <link linkend="GObject">GObject</link>
   +----GtkSourceStyleSchemeManager
</synopsis>
</refsect1>





<refsect1 id="GtkSourceStyleSchemeManager.properties" role="properties">
<title role="properties.title">Properties</title>
<synopsis>
  &quot;<link linkend="GtkSourceStyleSchemeManager--scheme-ids">scheme-ids</link>&quot;               <link linkend="GStrv">GStrv</link>*                : Read
  &quot;<link linkend="GtkSourceStyleSchemeManager--search-path">search-path</link>&quot;              <link linkend="GStrv">GStrv</link>*                : Read / Write
</synopsis>
</refsect1>



<refsect1 id="GtkSourceStyleSchemeManager.description" role="desc">
<title role="desc.title">Description</title>
<para>
</para>
</refsect1>

<refsect1 id="GtkSourceStyleSchemeManager.details" role="details">
<title role="details.title">Details</title>
<refsect2 id="GtkSourceStyleSchemeManager-struct" role="struct">
<title>GtkSourceStyleSchemeManager</title>
<indexterm zone="GtkSourceStyleSchemeManager-struct"><primary sortas="GtkSourceStyleSchemeManager">GtkSourceStyleSchemeManager</primary></indexterm><programlisting>typedef struct _GtkSourceStyleSchemeManager GtkSourceStyleSchemeManager;</programlisting>
<para>
<structname>GtkSourceStyleSchemeManager</structname> structure contains only
private members and should not be accessed directly.
</para></refsect2>
<refsect2 id="gtk-source-style-scheme-manager-new" role="function">
<title>gtk_source_style_scheme_manager_new ()</title>
<indexterm zone="gtk-source-style-scheme-manager-new"><primary sortas="gtk_source_style_scheme_manager_new">gtk_source_style_scheme_manager_new</primary></indexterm><programlisting><link linkend="GtkSourceStyleSchemeManager">GtkSourceStyleSchemeManager</link> * gtk_source_style_scheme_manager_new
                                                        (void);</programlisting>
<para>
Creates a new style manager. If you do not need more than one style
manager then use <link linkend="gtk-source-style-scheme-manager-get-default"><function>gtk_source_style_scheme_manager_get_default()</function></link> instead.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> a <link linkend="GtkSourceStyleSchemeManager"><type>GtkSourceStyleSchemeManager</type></link>.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-source-style-scheme-manager-get-default" role="function">
<title>gtk_source_style_scheme_manager_get_default ()</title>
<indexterm zone="gtk-source-style-scheme-manager-get-default"><primary sortas="gtk_source_style_scheme_manager_get_default">gtk_source_style_scheme_manager_get_default</primary></indexterm><programlisting><link linkend="GtkSourceStyleSchemeManager">GtkSourceStyleSchemeManager</link> * gtk_source_style_scheme_manager_get_default
                                                        (void);</programlisting>
<para>
Returns the default <link linkend="GtkSourceStyleSchemeManager"><type>GtkSourceStyleSchemeManager</type></link> instance.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> a <link linkend="GtkSourceStyleSchemeManager"><type>GtkSourceStyleSchemeManager</type></link>. Return value is owned
by GtkSourceView library and must not be unref'ed.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-source-style-scheme-manager-set-search-path" role="function">
<title>gtk_source_style_scheme_manager_set_search_path ()</title>
<indexterm zone="gtk-source-style-scheme-manager-set-search-path"><primary sortas="gtk_source_style_scheme_manager_set_search_path">gtk_source_style_scheme_manager_set_search_path</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_source_style_scheme_manager_set_search_path
                                                        (<link linkend="GtkSourceStyleSchemeManager">GtkSourceStyleSchemeManager</link> *manager,
                                                         <link linkend="gchar">gchar</link> **path);</programlisting>
<para>
Sets the list of directories where the <parameter>manager</parameter> looks for
style scheme files.
If <parameter>dirs</parameter> is <link linkend="NULL--CAPS"><literal>NULL</literal></link>, the search path is reset to default.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>manager</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkSourceStyleSchemeManager"><type>GtkSourceStyleSchemeManager</type></link>.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>path</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="NULL--CAPS"><literal>NULL</literal></link>-terminated array of strings or <link linkend="NULL--CAPS"><literal>NULL</literal></link>.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-source-style-scheme-manager-append-search-path" role="function">
<title>gtk_source_style_scheme_manager_append_search_path ()</title>
<indexterm zone="gtk-source-style-scheme-manager-append-search-path"><primary sortas="gtk_source_style_scheme_manager_append_search_path">gtk_source_style_scheme_manager_append_search_path</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_source_style_scheme_manager_append_search_path
                                                        (<link linkend="GtkSourceStyleSchemeManager">GtkSourceStyleSchemeManager</link> *manager,
                                                         const <link linkend="gchar">gchar</link> *path);</programlisting>
<para>
Appends <parameter>path</parameter> to the list of directories where the <parameter>manager</parameter> looks for
style scheme files.
See <link linkend="gtk-source-style-scheme-manager-set-search-path"><function>gtk_source_style_scheme_manager_set_search_path()</function></link> for details.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>manager</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkSourceStyleSchemeManager"><type>GtkSourceStyleSchemeManager</type></link>.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>path</parameter>&#160;:</term>
<listitem><simpara> a directory or a filename.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-source-style-scheme-manager-prepend-search-path" role="function">
<title>gtk_source_style_scheme_manager_prepend_search_path ()</title>
<indexterm zone="gtk-source-style-scheme-manager-prepend-search-path"><primary sortas="gtk_source_style_scheme_manager_prepend_search_path">gtk_source_style_scheme_manager_prepend_search_path</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_source_style_scheme_manager_prepend_search_path
                                                        (<link linkend="GtkSourceStyleSchemeManager">GtkSourceStyleSchemeManager</link> *manager,
                                                         const <link linkend="gchar">gchar</link> *path);</programlisting>
<para>
Prepends <parameter>path</parameter> to the list of directories where the <parameter>manager</parameter> looks
for style scheme files.
See <link linkend="gtk-source-style-scheme-manager-set-search-path"><function>gtk_source_style_scheme_manager_set_search_path()</function></link> for details.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>manager</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkSourceStyleSchemeManager"><type>GtkSourceStyleSchemeManager</type></link>.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>path</parameter>&#160;:</term>
<listitem><simpara> a directory or a filename.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-source-style-scheme-manager-get-search-path" role="function">
<title>gtk_source_style_scheme_manager_get_search_path ()</title>
<indexterm zone="gtk-source-style-scheme-manager-get-search-path"><primary sortas="gtk_source_style_scheme_manager_get_search_path">gtk_source_style_scheme_manager_get_search_path</primary></indexterm><programlisting>const <link linkend="gchar">gchar</link> * const * gtk_source_style_scheme_manager_get_search_path
                                                        (<link linkend="GtkSourceStyleSchemeManager">GtkSourceStyleSchemeManager</link> *manager);</programlisting>
<para>
Returns the current search path for the <parameter>manager</parameter>.
See <link linkend="gtk-source-style-scheme-manager-set-search-path"><function>gtk_source_style_scheme_manager_set_search_path()</function></link> for details.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>manager</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkSourceStyleSchemeManager"><type>GtkSourceStyleSchemeManager</type></link>.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> a NULL-terminated array of string containing the search path.
The array is owned by the <parameter>manager</parameter> and must not be modified.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-source-style-scheme-manager-get-scheme-ids" role="function">
<title>gtk_source_style_scheme_manager_get_scheme_ids ()</title>
<indexterm zone="gtk-source-style-scheme-manager-get-scheme-ids"><primary sortas="gtk_source_style_scheme_manager_get_scheme_ids">gtk_source_style_scheme_manager_get_scheme_ids</primary></indexterm><programlisting>const <link linkend="gchar">gchar</link> * const * gtk_source_style_scheme_manager_get_scheme_ids
                                                        (<link linkend="GtkSourceStyleSchemeManager">GtkSourceStyleSchemeManager</link> *manager);</programlisting>
<para>
Returns the ids of the available style schemes.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>manager</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkSourceStyleSchemeManager"><type>GtkSourceStyleSchemeManager</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> a <link linkend="NULL--CAPS"><literal>NULL</literal></link>-terminated array of string containing the ids of the
available style schemes or <link linkend="NULL--CAPS"><literal>NULL</literal></link> if no style scheme is available. The array
is owned by the <parameter>manager</parameter> and must not be modified.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-source-style-scheme-manager-get-scheme" role="function">
<title>gtk_source_style_scheme_manager_get_scheme ()</title>
<indexterm zone="gtk-source-style-scheme-manager-get-scheme"><primary sortas="gtk_source_style_scheme_manager_get_scheme">gtk_source_style_scheme_manager_get_scheme</primary></indexterm><programlisting><link linkend="GtkSourceStyleScheme">GtkSourceStyleScheme</link> * gtk_source_style_scheme_manager_get_scheme
                                                        (<link linkend="GtkSourceStyleSchemeManager">GtkSourceStyleSchemeManager</link> *manager,
                                                         const <link linkend="gchar">gchar</link> *scheme_id);</programlisting>
<para>
Looks up style scheme by id.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>manager</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkSourceStyleSchemeManager"><type>GtkSourceStyleSchemeManager</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>scheme_id</parameter>&#160;:</term>
<listitem><simpara> style scheme id to find
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> a <link linkend="GtkSourceStyleScheme"><type>GtkSourceStyleScheme</type></link> object. Returned value is owned by
<parameter>manager</parameter> and must not be unref'ed.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-source-style-scheme-manager-force-rescan" role="function">
<title>gtk_source_style_scheme_manager_force_rescan ()</title>
<indexterm zone="gtk-source-style-scheme-manager-force-rescan"><primary sortas="gtk_source_style_scheme_manager_force_rescan">gtk_source_style_scheme_manager_force_rescan</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_source_style_scheme_manager_force_rescan
                                                        (<link linkend="GtkSourceStyleSchemeManager">GtkSourceStyleSchemeManager</link> *manager);</programlisting>
<para>
Mark any currently cached information about the available style scehems
as invalid. All the available style schemes will be reloaded next time
the <parameter>manager</parameter> is accessed.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>manager</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkSourceStyleSchemeManager"><type>GtkSourceStyleSchemeManager</type></link>
</simpara></listitem></varlistentry>
</variablelist></refsect2>

</refsect1>
<refsect1 id="GtkSourceStyleSchemeManager.property-details" role="property_details">
<title role="property_details.title">Property Details</title>
<refsect2 id="GtkSourceStyleSchemeManager--scheme-ids" role="property"><title>The <literal>&quot;scheme-ids&quot;</literal> property</title>
<indexterm zone="GtkSourceStyleSchemeManager--scheme-ids"><primary sortas="GtkSourceStyleSchemeManager:scheme-ids">GtkSourceStyleSchemeManager:scheme-ids</primary></indexterm><programlisting>  &quot;scheme-ids&quot;               <link linkend="GStrv">GStrv</link>*                : Read</programlisting>
<para>List of the ids of the available style schemes.</para></refsect2>
<refsect2 id="GtkSourceStyleSchemeManager--search-path" role="property"><title>The <literal>&quot;search-path&quot;</literal> property</title>
<indexterm zone="GtkSourceStyleSchemeManager--search-path"><primary sortas="GtkSourceStyleSchemeManager:search-path">GtkSourceStyleSchemeManager:search-path</primary></indexterm><programlisting>  &quot;search-path&quot;              <link linkend="GStrv">GStrv</link>*                : Read / Write</programlisting>
<para>List of directories and files where the style schemes are located.</para></refsect2>
</refsect1>



<refsect1 id="GtkSourceStyleSchemeManager.see-also">
<title>See Also</title>
<para>
<link linkend="GtkSourceStyleScheme"><type>GtkSourceStyleScheme</type></link>
</para>
</refsect1>

</refentry>
