New upstream version 3.24.14

This commit is contained in:
Simon McVittie
2020-02-29 14:17:40 +00:00
543 changed files with 330694 additions and 808714 deletions

View File

@ -8,7 +8,7 @@
<link rel="up" href="NumericEntry.html" title="Numeric and Text Data Entry">
<link rel="prev" href="GtkEntryCompletion.html" title="GtkEntryCompletion">
<link rel="next" href="GtkSpinButton.html" title="GtkSpinButton">
<meta name="generator" content="GTK-Doc V1.29 (XML mode)">
<meta name="generator" content="GTK-Doc V1.32.1 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
@ -40,8 +40,8 @@
<a name="GtkScale.functions"></a><h2>Functions</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="functions_return">
<col class="functions_name">
<col width="150px" class="functions_proto_type">
<col class="functions_proto_name">
</colgroup>
<tbody>
<tr>
@ -118,7 +118,7 @@
</tr>
<tr>
<td class="function_type">
<a class="link" href="gtk3-Standard-Enumerations.html#GtkPositionType" title="enum GtkPositionType"><span class="returnvalue">GtkPositionType</span></a>
<a href="https://developer.gnome.org/gtk4/gtk4-Standard-Enumerations.html#GtkPositionType"><span class="returnvalue">GtkPositionType</span></a>
</td>
<td class="function_name">
<a class="link" href="GtkScale.html#gtk-scale-get-value-pos" title="gtk_scale_get_value_pos ()">gtk_scale_get_value_pos</a> <span class="c_punctuation">()</span>
@ -184,7 +184,7 @@
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type"><a class="link" href="gtk3-Standard-Enumerations.html#GtkPositionType" title="enum GtkPositionType"><span class="type">GtkPositionType</span></a></td>
<td class="property_type"><a href="https://developer.gnome.org/gtk4/gtk4-Standard-Enumerations.html#GtkPositionType"><span class="type">GtkPositionType</span></a></td>
<td class="property_name"><a class="link" href="GtkScale.html#GtkScale--value-pos" title="The “value-pos” property">value-pos</a></td>
<td class="property_flags">Read / Write</td>
</tr>
@ -217,9 +217,9 @@
<a name="GtkScale.signals"></a><h2>Signals</h2>
<div class="informaltable"><table class="informaltable" border="0">
<colgroup>
<col width="150px" class="signals_return">
<col width="300px" class="signals_name">
<col width="200px" class="signals_flags">
<col width="150px" class="signal_proto_type">
<col width="300px" class="signal_proto_name">
<col width="200px" class="signal_proto_flags">
</colgroup>
<tbody><tr>
<td class="signal_type">
@ -233,12 +233,12 @@
<a name="GtkScale.other"></a><h2>Types and Values</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="name">
<col class="description">
<col width="150px" class="other_proto_type">
<col class="other_proto_name">
</colgroup>
<tbody><tr>
<td class="datatype_keyword">struct</td>
<td class="function_name"><a class="link" href="GtkScale.html#GtkScale-struct" title="struct GtkScale">GtkScale</a></td>
<td class="function_name"><a href="https://developer.gnome.org/gtk4/GtkScale.html#GtkScale-struct">GtkScale</a></td>
</tr></tbody>
</table></div>
</div>
@ -310,24 +310,24 @@ the mark. It can be translated with the usual ”translatable” and
16
17
18</pre></td>
<td class="listing_code"><pre class="programlisting"><span class="normal">scale</span><span class="symbol">[.</span><span class="normal">fine</span><span class="symbol">-</span><span class="normal">tune</span><span class="symbol">][.</span><span class="normal">marks</span><span class="symbol">-</span><span class="normal">before</span><span class="symbol">][.</span><span class="normal">marks</span><span class="symbol">-</span><span class="normal">after</span><span class="symbol">]</span>
<span class="normal">├── marks</span><span class="symbol">.</span><span class="normal">top</span>
<span class="normal"> ├── mark</span>
<span class="normal">├── </span><span class="symbol">[</span><span class="normal">label</span><span class="symbol">]</span>
<span class="normal"> ┊ ╰── indicator</span>
<span class="normal"> </span>
<span class="normal"> ╰── mark</span>
<span class="normal">├── </span><span class="symbol">[</span><span class="normal">value</span><span class="symbol">]</span>
<span class="normal">├── contents</span>
<span class="normal"> ╰── trough</span>
<span class="normal"> ├── slider</span>
<span class="normal"> ├── </span><span class="symbol">[</span><span class="normal">highlight</span><span class="symbol">]</span>
<span class="normal"> ╰── </span><span class="symbol">[</span><span class="normal">fill</span><span class="symbol">]</span>
<span class="normal">╰── marks</span><span class="symbol">.</span><span class="normal">bottom</span>
<span class="normal"> ├── mark</span>
<span class="normal"> ┊ ├── indicator</span>
<span class="normal">╰── </span><span class="symbol">[</span><span class="normal">label</span><span class="symbol">]</span>
<span class="normal"> ╰── mark</span></pre></td>
<td class="listing_code"><pre class="programlisting"><span class="n">scale</span><span class="p">[.</span><span class="n">fine</span><span class="o">-</span><span class="n">tune</span><span class="p">][.</span><span class="n">marks</span><span class="o">-</span><span class="n">before</span><span class="p">][.</span><span class="n">marks</span><span class="o">-</span><span class="n">after</span><span class="p">]</span>
<span class="err">├──</span> <span class="n">marks</span><span class="p">.</span><span class="n">top</span>
<span class="err"></span> <span class="err">├──</span> <span class="n">mark</span>
<span class="err"></span> <span class="err"></span> <span class="err">├──</span> <span class="p">[</span><span class="n">label</span><span class="p">]</span>
<span class="err"></span> <span class="err"></span> <span class="err">╰──</span> <span class="n">indicator</span>
<span class="err"></span> <span class="err"></span>
<span class="err"></span> <span class="err">╰──</span> <span class="n">mark</span>
<span class="err">├──</span> <span class="p">[</span><span class="n">value</span><span class="p">]</span>
<span class="err">├──</span> <span class="n">contents</span>
<span class="err"></span> <span class="err">╰──</span> <span class="n">trough</span>
<span class="err"></span> <span class="err">├──</span> <span class="n">slider</span>
<span class="err"></span> <span class="err">├──</span> <span class="p">[</span><span class="n">highlight</span><span class="p">]</span>
<span class="err"></span> <span class="err">╰──</span> <span class="p">[</span><span class="n">fill</span><span class="p">]</span>
<span class="err">╰──</span> <span class="n">marks</span><span class="p">.</span><span class="n">bottom</span>
<span class="err">├──</span> <span class="n">mark</span>
<span class="err"></span> <span class="err">├──</span> <span class="n">indicator</span>
<span class="err"></span> <span class="err">╰──</span> <span class="p">[</span><span class="n">label</span><span class="p">]</span>
<span class="err">╰──</span> <span class="n">mark</span></pre></td>
</tr>
</tbody>
</table>
@ -362,7 +362,7 @@ subnode with name value.</p>
<div class="refsect2">
<a name="gtk-scale-new"></a><h3>gtk_scale_new ()</h3>
<pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *
gtk_scale_new (<em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkOrientation" title="enum GtkOrientation"><span class="type">GtkOrientation</span></a> orientation</code></em>,
gtk_scale_new (<em class="parameter"><code><a href="https://developer.gnome.org/gtk4/gtk4-Standard-Enumerations.html#GtkOrientation"><span class="type">GtkOrientation</span></a> orientation</code></em>,
<em class="parameter"><code><a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a> *adjustment</code></em>);</pre>
<p>Creates a new <a class="link" href="GtkScale.html" title="GtkScale"><span class="type">GtkScale</span></a>.</p>
<div class="refsect3">
@ -398,7 +398,7 @@ of the scale, or <code class="literal">NULL</code> to create a new adjustment. <
<div class="refsect2">
<a name="gtk-scale-new-with-range"></a><h3>gtk_scale_new_with_range ()</h3>
<pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *
gtk_scale_new_with_range (<em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkOrientation" title="enum GtkOrientation"><span class="type">GtkOrientation</span></a> orientation</code></em>,
gtk_scale_new_with_range (<em class="parameter"><code><a href="https://developer.gnome.org/gtk4/gtk4-Standard-Enumerations.html#GtkOrientation"><span class="type">GtkOrientation</span></a> orientation</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> min</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> max</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> step</code></em>);</pre>
@ -563,7 +563,7 @@ and the current value.</p>
<a name="gtk-scale-set-value-pos"></a><h3>gtk_scale_set_value_pos ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gtk_scale_set_value_pos (<em class="parameter"><code><a class="link" href="GtkScale.html" title="GtkScale"><span class="type">GtkScale</span></a> *scale</code></em>,
<em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkPositionType" title="enum GtkPositionType"><span class="type">GtkPositionType</span></a> pos</code></em>);</pre>
<em class="parameter"><code><a href="https://developer.gnome.org/gtk4/gtk4-Standard-Enumerations.html#GtkPositionType"><span class="type">GtkPositionType</span></a> pos</code></em>);</pre>
<p>Sets the position in which the current value is displayed.</p>
<div class="refsect3">
<a name="gtk-scale-set-value-pos.parameters"></a><h4>Parameters</h4>
@ -671,7 +671,7 @@ gtk_scale_get_has_origin (<em class="parameter"><code><a class="link" href="GtkS
<hr>
<div class="refsect2">
<a name="gtk-scale-get-value-pos"></a><h3>gtk_scale_get_value_pos ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-Standard-Enumerations.html#GtkPositionType" title="enum GtkPositionType"><span class="returnvalue">GtkPositionType</span></a>
<pre class="programlisting"><a href="https://developer.gnome.org/gtk4/gtk4-Standard-Enumerations.html#GtkPositionType"><span class="returnvalue">GtkPositionType</span></a>
gtk_scale_get_value_pos (<em class="parameter"><code><a class="link" href="GtkScale.html" title="GtkScale"><span class="type">GtkScale</span></a> *scale</code></em>);</pre>
<p>Gets the position in which the current value is displayed.</p>
<div class="refsect3">
@ -773,7 +773,7 @@ values are undefined.</p>
<pre class="programlisting"><span class="returnvalue">void</span>
gtk_scale_add_mark (<em class="parameter"><code><a class="link" href="GtkScale.html" title="GtkScale"><span class="type">GtkScale</span></a> *scale</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> value</code></em>,
<em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkPositionType" title="enum GtkPositionType"><span class="type">GtkPositionType</span></a> position</code></em>,
<em class="parameter"><code><a href="https://developer.gnome.org/gtk4/gtk4-Standard-Enumerations.html#GtkPositionType"><span class="type">GtkPositionType</span></a> position</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *markup</code></em>);</pre>
<p>Adds a mark at <em class="parameter"><code>value</code></em>
.</p>
@ -805,9 +805,9 @@ the lower and upper limits of the scales adjustment</p></td>
</tr>
<tr>
<td class="parameter_name"><p>position</p></td>
<td class="parameter_description"><p>where to draw the mark. For a horizontal scale, <a class="link" href="gtk3-Standard-Enumerations.html#GTK-POS-TOP:CAPS"><span class="type">GTK_POS_TOP</span></a>
and <a class="link" href="gtk3-Standard-Enumerations.html#GTK-POS-LEFT:CAPS"><code class="literal">GTK_POS_LEFT</code></a> are drawn above the scale, anything else below.
For a vertical scale, <a class="link" href="gtk3-Standard-Enumerations.html#GTK-POS-LEFT:CAPS"><span class="type">GTK_POS_LEFT</span></a> and <a class="link" href="gtk3-Standard-Enumerations.html#GTK-POS-TOP:CAPS"><code class="literal">GTK_POS_TOP</code></a> are drawn to
<td class="parameter_description"><p>where to draw the mark. For a horizontal scale, <a href="https://developer.gnome.org/gtk4/gtk4-Standard-Enumerations.html#GTK-POS-TOP:CAPS"><span class="type">GTK_POS_TOP</span></a>
and <a href="https://developer.gnome.org/gtk4/gtk4-Standard-Enumerations.html#GTK-POS-LEFT:CAPS"><code class="literal">GTK_POS_LEFT</code></a> are drawn above the scale, anything else below.
For a vertical scale, <a href="https://developer.gnome.org/gtk4/gtk4-Standard-Enumerations.html#GTK-POS-LEFT:CAPS"><span class="type">GTK_POS_LEFT</span></a> and <a href="https://developer.gnome.org/gtk4/gtk4-Standard-Enumerations.html#GTK-POS-TOP:CAPS"><code class="literal">GTK_POS_TOP</code></a> are drawn to
the left of the scale, anything else to the right.</p></td>
<td class="parameter_annotations"> </td>
</tr>
@ -846,18 +846,12 @@ gtk_scale_clear_marks (<em class="parameter"><code><a class="link" href="GtkScal
</div>
</div>
<div class="refsect1">
<a name="GtkScale.other_details"></a><h2>Types and Values</h2>
<div class="refsect2">
<a name="GtkScale-struct"></a><h3>struct GtkScale</h3>
<pre class="programlisting">struct GtkScale;</pre>
</div>
</div>
<div class="refsect1">
<a name="GtkScale.property-details"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="GtkScale--digits"></a><h3>The <code class="literal">“digits”</code> property</h3>
<pre class="programlisting"> “digits” <span class="type">gint</span></pre>
<p>The number of decimal places that are displayed in the value.</p>
<p>Owner: GtkScale</p>
<p>Flags: Read / Write</p>
<p>Allowed values: [-1,64]</p>
<p>Default value: 1</p>
@ -867,6 +861,7 @@ gtk_scale_clear_marks (<em class="parameter"><code><a class="link" href="GtkScal
<a name="GtkScale--draw-value"></a><h3>The <code class="literal">“draw-value”</code> property</h3>
<pre class="programlisting"> “draw-value” <span class="type">gboolean</span></pre>
<p>Whether the current value is displayed as a string next to the slider.</p>
<p>Owner: GtkScale</p>
<p>Flags: Read / Write</p>
<p>Default value: TRUE</p>
</div>
@ -875,14 +870,16 @@ gtk_scale_clear_marks (<em class="parameter"><code><a class="link" href="GtkScal
<a name="GtkScale--has-origin"></a><h3>The <code class="literal">“has-origin”</code> property</h3>
<pre class="programlisting"> “has-origin” <span class="type">gboolean</span></pre>
<p>Whether the scale has an origin.</p>
<p>Owner: GtkScale</p>
<p>Flags: Read / Write</p>
<p>Default value: TRUE</p>
</div>
<hr>
<div class="refsect2">
<a name="GtkScale--value-pos"></a><h3>The <code class="literal">“value-pos”</code> property</h3>
<pre class="programlisting"> “value-pos” <a class="link" href="gtk3-Standard-Enumerations.html#GtkPositionType" title="enum GtkPositionType"><span class="type">GtkPositionType</span></a></pre>
<pre class="programlisting"> “value-pos” <a href="https://developer.gnome.org/gtk4/gtk4-Standard-Enumerations.html#GtkPositionType"><span class="type">GtkPositionType</span></a></pre>
<p>The position in which the current value is displayed.</p>
<p>Owner: GtkScale</p>
<p>Flags: Read / Write</p>
<p>Default value: GTK_POS_TOP</p>
</div>
@ -898,6 +895,7 @@ gtk_scale_clear_marks (<em class="parameter"><code><a class="link" href="GtkScal
<p>Use min-height/min-width CSS properties on the slider
element instead. The value of this style property is ignored.</p>
</div>
<p>Owner: GtkScale</p>
<p>Flags: Read</p>
<p>Allowed values: &gt;= 0</p>
<p>Default value: 31</p>
@ -912,6 +910,7 @@ gtk_scale_clear_marks (<em class="parameter"><code><a class="link" href="GtkScal
<p>Use min-height/min-width CSS properties on the value
element instead. The value of this style property is ignored.</p>
</div>
<p>Owner: GtkScale</p>
<p>Flags: Read</p>
<p>Allowed values: &gt;= 0</p>
<p>Default value: 2</p>
@ -945,13 +944,13 @@ with "--&gt;1.0&lt;--".</p>
5
6
7</pre></td>
<td class="listing_code"><pre class="programlisting"><span class="keyword">static</span><span class="normal"> gchar</span><span class="symbol">*</span>
<span class="function">format_value_callback</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">GtkScale</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">scale</span><span class="symbol">,</span>
<span class="normal"> </span><span class="usertype">gdouble</span><span class="normal"> value</span><span class="symbol">)</span>
<span class="cbracket">{</span>
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> </span><span class="function">g_strdup_printf</span><span class="normal"> </span><span class="symbol">(</span><span class="string">"--&gt;</span><span class="specialchar">\%</span><span class="string">0.*g&lt;--"</span><span class="symbol">,</span>
<span class="normal"> </span><span class="function"><a href="GtkScale.html#gtk-scale-get-digits">gtk_scale_get_digits</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">scale</span><span class="symbol">),</span><span class="normal"> value</span><span class="symbol">);</span>
<span class="normal"> </span><span class="cbracket">}</span></pre></td>
<td class="listing_code"><pre class="programlisting"><span class="k">static</span> <span class="n">gchar</span><span class="o">*</span>
<span class="nf">format_value_callback</span> <span class="p">(</span><span class="n">GtkScale</span> <span class="o">*</span><span class="n">scale</span><span class="p">,</span>
<span class="n">gdouble</span> <span class="n">value</span><span class="p">)</span>
<span class="p">{</span>
<span class="k">return</span> <span class="n">g_strdup_printf</span> <span class="p">(</span><span class="s">&quot;--&gt;\%0.*g&lt;--&quot;</span><span class="p">,</span>
<span class="n">gtk_scale_get_digits</span> <span class="p">(</span><span class="n">scale</span><span class="p">),</span> <span class="n">value</span><span class="p">);</span>
<span class="p">}</span></pre></td>
</tr>
</tbody>
</table>
@ -995,6 +994,6 @@ with "--&gt;1.0&lt;--".</p>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.29</div>
<hr>Generated by GTK-Doc V1.32.1</div>
</body>
</html>