New upstream version 3.22.28
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
<link rel="up" href="theming.html" title="Part IV. Theming in GTK+">
|
||||
<link rel="prev" href="GtkStyleContext.html" title="GtkStyleContext">
|
||||
<link rel="next" href="GtkStyleProvider.html" title="GtkStyleProvider">
|
||||
<meta name="generator" content="GTK-Doc V1.25.1 (XML mode)">
|
||||
<meta name="generator" content="GTK-Doc V1.27 (XML mode)">
|
||||
<link rel="stylesheet" href="style.css" type="text/css">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
@ -60,7 +60,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
||||
<span class="returnvalue">gboolean</span>
|
||||
</td>
|
||||
<td class="function_name">
|
||||
<a class="link" href="GtkCssProvider.html#gtk-css-provider-load-from-data" title="gtk_css_provider_load_from_data ()">gtk_css_provider_load_from_data</a> <span class="c_punctuation">()</span>
|
||||
@ -68,7 +68,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
||||
<span class="returnvalue">gboolean</span>
|
||||
</td>
|
||||
<td class="function_name">
|
||||
<a class="link" href="GtkCssProvider.html#gtk-css-provider-load-from-file" title="gtk_css_provider_load_from_file ()">gtk_css_provider_load_from_file</a> <span class="c_punctuation">()</span>
|
||||
@ -76,7 +76,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
||||
<span class="returnvalue">gboolean</span>
|
||||
</td>
|
||||
<td class="function_name">
|
||||
<a class="link" href="GtkCssProvider.html#gtk-css-provider-load-from-path" title="gtk_css_provider_load_from_path ()">gtk_css_provider_load_from_path</a> <span class="c_punctuation">()</span>
|
||||
@ -108,7 +108,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<a href="../glib/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
|
||||
<span class="returnvalue">guint</span>
|
||||
</td>
|
||||
<td class="function_name">
|
||||
<a class="link" href="GtkCssProvider.html#gtk-css-section-get-end-line" title="gtk_css_section_get_end_line ()">gtk_css_section_get_end_line</a> <span class="c_punctuation">()</span>
|
||||
@ -116,7 +116,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<a href="../glib/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
|
||||
<span class="returnvalue">guint</span>
|
||||
</td>
|
||||
<td class="function_name">
|
||||
<a class="link" href="GtkCssProvider.html#gtk-css-section-get-end-position" title="gtk_css_section_get_end_position ()">gtk_css_section_get_end_position</a> <span class="c_punctuation">()</span>
|
||||
@ -124,7 +124,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<a href="../gio/GFile.html#GFile-struct"><span class="returnvalue">GFile</span></a> *
|
||||
<span class="returnvalue">GFile</span> *
|
||||
</td>
|
||||
<td class="function_name">
|
||||
<a class="link" href="GtkCssProvider.html#gtk-css-section-get-file" title="gtk_css_section_get_file ()">gtk_css_section_get_file</a> <span class="c_punctuation">()</span>
|
||||
@ -148,7 +148,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<a href="../glib/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
|
||||
<span class="returnvalue">guint</span>
|
||||
</td>
|
||||
<td class="function_name">
|
||||
<a class="link" href="GtkCssProvider.html#gtk-css-section-get-start-line" title="gtk_css_section_get_start_line ()">gtk_css_section_get_start_line</a> <span class="c_punctuation">()</span>
|
||||
@ -156,7 +156,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<a href="../glib/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
|
||||
<span class="returnvalue">guint</span>
|
||||
</td>
|
||||
<td class="function_name">
|
||||
<a class="link" href="GtkCssProvider.html#gtk-css-section-get-start-position" title="gtk_css_section_get_start_position ()">gtk_css_section_get_start_position</a> <span class="c_punctuation">()</span>
|
||||
@ -192,7 +192,7 @@
|
||||
<tbody><tr>
|
||||
<td class="signal_type"><span class="returnvalue">void</span></td>
|
||||
<td class="signal_name"><a class="link" href="GtkCssProvider.html#GtkCssProvider-parsing-error" title="The “parsing-error” signal">parsing-error</a></td>
|
||||
<td class="signal_flags"><a href="../gobject/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS">Run Last</a></td>
|
||||
<td class="signal_flags">Run Last</td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
</div>
|
||||
@ -229,9 +229,9 @@
|
||||
</div>
|
||||
<div class="refsect1">
|
||||
<a name="GtkCssProvider.object-hierarchy"></a><h2>Object Hierarchy</h2>
|
||||
<pre class="screen"> <a href="/home/mclasen/gnome/share/gtk-doc/html/gobject/gobject-Boxed-Types.html">GBoxed</a>
|
||||
<pre class="screen"> GBoxed
|
||||
<span class="lineart">╰──</span> GtkCssSection
|
||||
<a href="../gobject/gobject-The-Base-Object-Type.html#GObject-struct">GObject</a>
|
||||
GObject
|
||||
<span class="lineart">╰──</span> GtkCssProvider
|
||||
</pre>
|
||||
</div>
|
||||
@ -257,9 +257,9 @@ and adding the provider with <a class="link" href="GtkStyleContext.html#gtk-styl
|
||||
<p>In addition, certain files will be read when GTK+ is initialized. First, the
|
||||
file <code class="literal">$XDG_CONFIG_HOME/gtk-3.0/gtk.css</code> is loaded if it exists. Then, GTK+
|
||||
loads the first existing file among
|
||||
<code class="literal">XDG_DATA_HOME/themes/theme-name/gtk-VERSION/gtk.css</code>,
|
||||
<code class="literal">$HOME/.themes/theme-name/gtk-VERSION/gtk.css</code>,
|
||||
<code class="literal">$XDG_DATA_DIRS/themes/theme-name/gtk-VERSION/gtk.css</code> and
|
||||
<code class="literal">XDG_DATA_HOME/themes/THEME/gtk-VERSION/gtk.css</code>,
|
||||
<code class="literal">$HOME/.themes/THEME/gtk-VERSION/gtk.css</code>,
|
||||
<code class="literal">$XDG_DATA_DIRS/themes/THEME/gtk-VERSION/gtk.css</code> and
|
||||
<code class="literal">DATADIR/share/themes/THEME/gtk-VERSION/gtk.css</code>, where <code class="literal">THEME</code> is the name of
|
||||
the current theme (see the <a class="link" href="GtkSettings.html#GtkSettings--gtk-theme-name" title="The “gtk-theme-name” property"><span class="type">“gtk-theme-name”</span></a> setting), <code class="literal">DATADIR</code>
|
||||
is the prefix configured when GTK+ was compiled (unless overridden by the
|
||||
@ -279,7 +279,7 @@ gtk_css_provider_get_default (<em class="parameter"><code><span class="type">voi
|
||||
fallback for all widgets.</p>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-css-provider-get-default.returns"></a><h4>Returns</h4>
|
||||
<p> The provider used for fallback styling.
|
||||
<p>The provider used for fallback styling.
|
||||
This memory is owned by GTK+, and you must not free it. </p>
|
||||
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
||||
</div>
|
||||
@ -288,8 +288,8 @@ This memory is owned by GTK+, and you must not free it. </p>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-css-provider-get-named"></a><h3>gtk_css_provider_get_named ()</h3>
|
||||
<pre class="programlisting"><a class="link" href="GtkCssProvider.html" title="GtkCssProvider"><span class="returnvalue">GtkCssProvider</span></a> *
|
||||
gtk_css_provider_get_named (<em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>,
|
||||
<em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *variant</code></em>);</pre>
|
||||
gtk_css_provider_get_named (<em class="parameter"><code>const <span class="type">gchar</span> *name</code></em>,
|
||||
<em class="parameter"><code>const <span class="type">gchar</span> *variant</code></em>);</pre>
|
||||
<p>Loads a theme from the usual theme paths</p>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-css-provider-get-named.parameters"></a><h4>Parameters</h4>
|
||||
@ -307,8 +307,8 @@ gtk_css_provider_get_named (<em class="parameter"><code>const <a href="../glib/g
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>variant</p></td>
|
||||
<td class="parameter_description"><p> variant to load, for example, "dark", or
|
||||
<a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> for the default. </p></td>
|
||||
<td class="parameter_description"><p>variant to load, for example, "dark", or
|
||||
<code class="literal">NULL</code> for the default. </p></td>
|
||||
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -316,7 +316,7 @@ gtk_css_provider_get_named (<em class="parameter"><code>const <a href="../glib/g
|
||||
</div>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-css-provider-get-named.returns"></a><h4>Returns</h4>
|
||||
<p> a <a class="link" href="GtkCssProvider.html" title="GtkCssProvider"><span class="type">GtkCssProvider</span></a> with the theme loaded.
|
||||
<p>a <a class="link" href="GtkCssProvider.html" title="GtkCssProvider"><span class="type">GtkCssProvider</span></a> with the theme loaded.
|
||||
This memory is owned by GTK+, and you must not free it. </p>
|
||||
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
||||
</div>
|
||||
@ -324,11 +324,11 @@ This memory is owned by GTK+, and you must not free it. </p>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-css-provider-load-from-data"></a><h3>gtk_css_provider_load_from_data ()</h3>
|
||||
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
||||
<pre class="programlisting"><span class="returnvalue">gboolean</span>
|
||||
gtk_css_provider_load_from_data (<em class="parameter"><code><a class="link" href="GtkCssProvider.html" title="GtkCssProvider"><span class="type">GtkCssProvider</span></a> *css_provider</code></em>,
|
||||
<em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *data</code></em>,
|
||||
<em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gssize"><span class="type">gssize</span></a> length</code></em>,
|
||||
<em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
||||
<em class="parameter"><code>const <span class="type">gchar</span> *data</code></em>,
|
||||
<em class="parameter"><code><span class="type">gssize</span> length</code></em>,
|
||||
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
|
||||
<p>Loads <em class="parameter"><code>data</code></em>
|
||||
into <em class="parameter"><code>css_provider</code></em>
|
||||
, and by doing so clears any previously loaded
|
||||
@ -349,7 +349,7 @@ information.</p>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>data</p></td>
|
||||
<td class="parameter_description"><p> CSS data loaded in memory. </p></td>
|
||||
<td class="parameter_description"><p>CSS data loaded in memory. </p></td>
|
||||
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=length][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> guint8]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -363,7 +363,7 @@ potentially do a copy.</p></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>error</p></td>
|
||||
<td class="parameter_description"><p> return location for a <a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
|
||||
<td class="parameter_description"><p>return location for a <span class="type">GError</span>, or <code class="literal">NULL</code>. </p></td>
|
||||
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -371,20 +371,20 @@ potentially do a copy.</p></td>
|
||||
</div>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-css-provider-load-from-data.returns"></a><h4>Returns</h4>
|
||||
<p> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>. The return value is deprecated and <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> will only be
|
||||
<p> <code class="literal">TRUE</code>. The return value is deprecated and <code class="literal">FALSE</code> will only be
|
||||
returned for backwards compatibility reasons if an <em class="parameter"><code>error</code></em>
|
||||
is not
|
||||
<a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> and a loading error occurred. To track errors while loading
|
||||
<code class="literal">NULL</code> and a loading error occurred. To track errors while loading
|
||||
CSS, connect to the <a class="link" href="GtkCssProvider.html#GtkCssProvider-parsing-error" title="The “parsing-error” signal"><span class="type">“parsing-error”</span></a> signal.</p>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-css-provider-load-from-file"></a><h3>gtk_css_provider_load_from_file ()</h3>
|
||||
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
||||
<pre class="programlisting"><span class="returnvalue">gboolean</span>
|
||||
gtk_css_provider_load_from_file (<em class="parameter"><code><a class="link" href="GtkCssProvider.html" title="GtkCssProvider"><span class="type">GtkCssProvider</span></a> *css_provider</code></em>,
|
||||
<em class="parameter"><code><a href="../gio/GFile.html#GFile-struct"><span class="type">GFile</span></a> *file</code></em>,
|
||||
<em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
||||
<em class="parameter"><code><span class="type">GFile</span> *file</code></em>,
|
||||
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
|
||||
<p>Loads the data contained in <em class="parameter"><code>file</code></em>
|
||||
into <em class="parameter"><code>css_provider</code></em>
|
||||
, making it
|
||||
@ -405,12 +405,12 @@ clear any previously loaded information.</p>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>file</p></td>
|
||||
<td class="parameter_description"><p><a href="../gio/GFile.html#GFile-struct"><span class="type">GFile</span></a> pointing to a file to load</p></td>
|
||||
<td class="parameter_description"><p><span class="type">GFile</span> pointing to a file to load</p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>error</p></td>
|
||||
<td class="parameter_description"><p> return location for a <a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
|
||||
<td class="parameter_description"><p>return location for a <span class="type">GError</span>, or <code class="literal">NULL</code>. </p></td>
|
||||
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -418,20 +418,20 @@ clear any previously loaded information.</p>
|
||||
</div>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-css-provider-load-from-file.returns"></a><h4>Returns</h4>
|
||||
<p> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>. The return value is deprecated and <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> will only be
|
||||
<p> <code class="literal">TRUE</code>. The return value is deprecated and <code class="literal">FALSE</code> will only be
|
||||
returned for backwards compatibility reasons if an <em class="parameter"><code>error</code></em>
|
||||
is not
|
||||
<a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> and a loading error occurred. To track errors while loading
|
||||
<code class="literal">NULL</code> and a loading error occurred. To track errors while loading
|
||||
CSS, connect to the <a class="link" href="GtkCssProvider.html#GtkCssProvider-parsing-error" title="The “parsing-error” signal"><span class="type">“parsing-error”</span></a> signal.</p>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-css-provider-load-from-path"></a><h3>gtk_css_provider_load_from_path ()</h3>
|
||||
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
||||
<pre class="programlisting"><span class="returnvalue">gboolean</span>
|
||||
gtk_css_provider_load_from_path (<em class="parameter"><code><a class="link" href="GtkCssProvider.html" title="GtkCssProvider"><span class="type">GtkCssProvider</span></a> *css_provider</code></em>,
|
||||
<em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *path</code></em>,
|
||||
<em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
||||
<em class="parameter"><code>const <span class="type">gchar</span> *path</code></em>,
|
||||
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
|
||||
<p>Loads the data contained in <em class="parameter"><code>path</code></em>
|
||||
into <em class="parameter"><code>css_provider</code></em>
|
||||
, making it clear
|
||||
@ -457,7 +457,7 @@ any previously loaded information.</p>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>error</p></td>
|
||||
<td class="parameter_description"><p> return location for a <a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
|
||||
<td class="parameter_description"><p>return location for a <span class="type">GError</span>, or <code class="literal">NULL</code>. </p></td>
|
||||
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -465,10 +465,10 @@ any previously loaded information.</p>
|
||||
</div>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-css-provider-load-from-path.returns"></a><h4>Returns</h4>
|
||||
<p> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>. The return value is deprecated and <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> will only be
|
||||
<p> <code class="literal">TRUE</code>. The return value is deprecated and <code class="literal">FALSE</code> will only be
|
||||
returned for backwards compatibility reasons if an <em class="parameter"><code>error</code></em>
|
||||
is not
|
||||
<a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> and a loading error occurred. To track errors while loading
|
||||
<code class="literal">NULL</code> and a loading error occurred. To track errors while loading
|
||||
CSS, connect to the <a class="link" href="GtkCssProvider.html#GtkCssProvider-parsing-error" title="The “parsing-error” signal"><span class="type">“parsing-error”</span></a> signal.</p>
|
||||
</div>
|
||||
</div>
|
||||
@ -477,7 +477,7 @@ CSS, connect to the <a class="link" href="GtkCssProvider.html#GtkCssProvider-par
|
||||
<a name="gtk-css-provider-load-from-resource"></a><h3>gtk_css_provider_load_from_resource ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
gtk_css_provider_load_from_resource (<em class="parameter"><code><a class="link" href="GtkCssProvider.html" title="GtkCssProvider"><span class="type">GtkCssProvider</span></a> *css_provider</code></em>,
|
||||
<em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *resource_path</code></em>);</pre>
|
||||
<em class="parameter"><code>const <span class="type">gchar</span> *resource_path</code></em>);</pre>
|
||||
<p>Loads the data contained in the resource at <em class="parameter"><code>resource_path</code></em>
|
||||
into
|
||||
the <a class="link" href="GtkCssProvider.html" title="GtkCssProvider"><span class="type">GtkCssProvider</span></a>, clearing any previously loaded information.</p>
|
||||
@ -499,7 +499,7 @@ the <a class="link" href="GtkCssProvider.html" title="GtkCssProvider"><span clas
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>resource_path</p></td>
|
||||
<td class="parameter_description"><p>a <a href="../gio/GResource.html#GResource-struct"><span class="type">GResource</span></a> resource path</p></td>
|
||||
<td class="parameter_description"><p>a <span class="type">GResource</span> resource path</p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -556,7 +556,7 @@ this <em class="parameter"><code>provider</code></em>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-css-section-get-end-line"></a><h3>gtk_css_section_get_end_line ()</h3>
|
||||
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
|
||||
<pre class="programlisting"><span class="returnvalue">guint</span>
|
||||
gtk_css_section_get_end_line (<em class="parameter"><code>const <a class="link" href="GtkCssProvider.html#GtkCssSection"><span class="type">GtkCssSection</span></a> *section</code></em>);</pre>
|
||||
<p>Returns the line in the CSS document where this section end.
|
||||
The line number is 0-indexed, so the first line of the document
|
||||
@ -592,7 +592,7 @@ successfully.</p>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-css-section-get-end-position"></a><h3>gtk_css_section_get_end_position ()</h3>
|
||||
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
|
||||
<pre class="programlisting"><span class="returnvalue">guint</span>
|
||||
gtk_css_section_get_end_position (<em class="parameter"><code>const <a class="link" href="GtkCssProvider.html#GtkCssSection"><span class="type">GtkCssSection</span></a> *section</code></em>);</pre>
|
||||
<p>Returns the offset in bytes from the start of the current line
|
||||
returned via <a class="link" href="GtkCssProvider.html#gtk-css-section-get-end-line" title="gtk_css_section_get_end_line ()"><code class="function">gtk_css_section_get_end_line()</code></a>.
|
||||
@ -627,13 +627,13 @@ successfully.</p>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-css-section-get-file"></a><h3>gtk_css_section_get_file ()</h3>
|
||||
<pre class="programlisting"><a href="../gio/GFile.html#GFile-struct"><span class="returnvalue">GFile</span></a> *
|
||||
<pre class="programlisting"><span class="returnvalue">GFile</span> *
|
||||
gtk_css_section_get_file (<em class="parameter"><code>const <a class="link" href="GtkCssProvider.html#GtkCssSection"><span class="type">GtkCssSection</span></a> *section</code></em>);</pre>
|
||||
<p>Gets the file that <em class="parameter"><code>section</code></em>
|
||||
was parsed from. If no such file exists,
|
||||
for example because the CSS was loaded via
|
||||
<em class="parameter"><code><a class="link" href="GtkCssProvider.html#gtk-css-provider-load-from-data" title="gtk_css_provider_load_from_data ()"><code class="function">gtk_css_provider_load_from_data()</code></a></code></em>
|
||||
, then <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is returned.</p>
|
||||
, then <code class="literal">NULL</code> is returned.</p>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-css-section-get-file.parameters"></a><h4>Parameters</h4>
|
||||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||||
@ -651,9 +651,9 @@ for example because the CSS was loaded via
|
||||
</div>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-css-section-get-file.returns"></a><h4>Returns</h4>
|
||||
<p> the <a href="../gio/GFile.html#GFile-struct"><span class="type">GFile</span></a> that <em class="parameter"><code>section</code></em>
|
||||
<p>the <span class="type">GFile</span> that <em class="parameter"><code>section</code></em>
|
||||
was parsed from
|
||||
or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>section</code></em>
|
||||
or <code class="literal">NULL</code> if <em class="parameter"><code>section</code></em>
|
||||
was parsed from other data. </p>
|
||||
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
||||
</div>
|
||||
@ -668,7 +668,7 @@ gtk_css_section_get_parent (<em class="parameter"><code>const <a class="link" hr
|
||||
. The parent section is
|
||||
the section that contains this <em class="parameter"><code>section</code></em>
|
||||
. A special case are sections of
|
||||
type <a class="link" href="GtkCssProvider.html#GTK-CSS-SECTION-DOCUMENT:CAPS"><span class="type">GTK_CSS_SECTION_DOCUMENT</span></a>. Their parent will either be <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
|
||||
type <a class="link" href="GtkCssProvider.html#GTK-CSS-SECTION-DOCUMENT:CAPS"><span class="type">GTK_CSS_SECTION_DOCUMENT</span></a>. Their parent will either be <code class="literal">NULL</code>
|
||||
if they are the original CSS document that was loaded by
|
||||
<a class="link" href="GtkCssProvider.html#gtk-css-provider-load-from-file" title="gtk_css_provider_load_from_file ()"><code class="function">gtk_css_provider_load_from_file()</code></a> or a section of type
|
||||
<a class="link" href="GtkCssProvider.html#GTK-CSS-SECTION-IMPORT:CAPS"><span class="type">GTK_CSS_SECTION_IMPORT</span></a> if it was loaded with an import rule from
|
||||
@ -690,7 +690,7 @@ a different file.</p>
|
||||
</div>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-css-section-get-parent.returns"></a><h4>Returns</h4>
|
||||
<p> the parent section or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if none. </p>
|
||||
<p>the parent section or <code class="literal">NULL</code> if none. </p>
|
||||
<p><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>][<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
||||
</div>
|
||||
<p class="since">Since: <a class="link" href="api-index-3-2.html#api-index-3.2">3.2</a></p>
|
||||
@ -727,7 +727,7 @@ gtk_css_section_get_section_type (<em class="parameter"><code>const <a class="li
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-css-section-get-start-line"></a><h3>gtk_css_section_get_start_line ()</h3>
|
||||
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
|
||||
<pre class="programlisting"><span class="returnvalue">guint</span>
|
||||
gtk_css_section_get_start_line (<em class="parameter"><code>const <a class="link" href="GtkCssProvider.html#GtkCssSection"><span class="type">GtkCssSection</span></a> *section</code></em>);</pre>
|
||||
<p>Returns the line in the CSS document where this section starts.
|
||||
The line number is 0-indexed, so the first line of the document
|
||||
@ -756,7 +756,7 @@ will return 0.</p>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-css-section-get-start-position"></a><h3>gtk_css_section_get_start_position ()</h3>
|
||||
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
|
||||
<pre class="programlisting"><span class="returnvalue">guint</span>
|
||||
gtk_css_section_get_start_position (<em class="parameter"><code>const <a class="link" href="GtkCssProvider.html#GtkCssSection"><span class="type">GtkCssSection</span></a> *section</code></em>);</pre>
|
||||
<p>Returns the offset in bytes from the start of the current line
|
||||
returned via <a class="link" href="GtkCssProvider.html#gtk-css-section-get-start-line" title="gtk_css_section_get_start_line ()"><code class="function">gtk_css_section_get_start_line()</code></a>.</p>
|
||||
@ -940,7 +940,7 @@ more features.</p>
|
||||
<td class="enum_member_description">
|
||||
<p>The section describes a complete document.
|
||||
This section time is the only one where <a class="link" href="GtkCssProvider.html#gtk-css-section-get-parent" title="gtk_css_section_get_parent ()"><code class="function">gtk_css_section_get_parent()</code></a>
|
||||
might return <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</p>
|
||||
might return <code class="literal">NULL</code>.</p>
|
||||
</td>
|
||||
<td class="enum_member_annotations"> </td>
|
||||
</tr>
|
||||
@ -1017,8 +1017,8 @@ more features.</p>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
user_function (<a class="link" href="GtkCssProvider.html" title="GtkCssProvider"><span class="type">GtkCssProvider</span></a> *provider,
|
||||
<a class="link" href="GtkCssProvider.html#GtkCssSection"><span class="type">GtkCssSection</span></a> *section,
|
||||
<a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> *error,
|
||||
<a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data)</pre>
|
||||
<span class="type">GError</span> *error,
|
||||
<span class="type">gpointer</span> user_data)</pre>
|
||||
<p>Signals that a parsing error occurred. the <em class="parameter"><code>path</code></em>
|
||||
, <em class="parameter"><code>line</code></em>
|
||||
and <em class="parameter"><code>position</code></em>
|
||||
@ -1063,7 +1063,7 @@ than when a loading function was called.</p>
|
||||
</tbody>
|
||||
</table></div>
|
||||
</div>
|
||||
<p>Flags: <a href="../gobject/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS">Run Last</a></p>
|
||||
<p>Flags: Run Last</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="refsect1">
|
||||
@ -1072,6 +1072,6 @@ than when a loading function was called.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer">
|
||||
<hr>Generated by GTK-Doc V1.25.1</div>
|
||||
<hr>Generated by GTK-Doc V1.27</div>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user