New upstream version 3.24.18
This commit is contained in:
@ -134,7 +134,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<a href="https://developer.gnome.org/gtk4/gtk4-Standard-Enumerations.html#GtkReliefStyle"><span class="returnvalue">GtkReliefStyle</span></a>
|
||||
<a class="link" href="gtk3-Standard-Enumerations.html#GtkReliefStyle" title="enum GtkReliefStyle"><span class="returnvalue">GtkReliefStyle</span></a>
|
||||
</td>
|
||||
<td class="function_name">
|
||||
<a class="link" href="GtkButton.html#gtk-button-get-relief" title="gtk_button_get_relief ()">gtk_button_get_relief</a> <span class="c_punctuation">()</span>
|
||||
@ -245,7 +245,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<a href="https://developer.gnome.org/gtk4/gtk4-Standard-Enumerations.html#GtkPositionType"><span class="returnvalue">GtkPositionType</span></a>
|
||||
<a class="link" href="gtk3-Standard-Enumerations.html#GtkPositionType" title="enum GtkPositionType"><span class="returnvalue">GtkPositionType</span></a>
|
||||
</td>
|
||||
<td class="function_name">
|
||||
<a class="link" href="GtkButton.html#gtk-button-get-image-position" title="gtk_button_get_image_position ()">gtk_button_get_image_position</a> <span class="c_punctuation">()</span>
|
||||
@ -299,7 +299,7 @@
|
||||
<td class="property_flags">Read / Write</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<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_type"><a class="link" href="gtk3-Standard-Enumerations.html#GtkPositionType" title="enum GtkPositionType"><span class="type">GtkPositionType</span></a></td>
|
||||
<td class="property_name"><a class="link" href="GtkButton.html#GtkButton--image-position" title="The “image-position” property">image-position</a></td>
|
||||
<td class="property_flags">Read / Write</td>
|
||||
</tr>
|
||||
@ -310,7 +310,7 @@
|
||||
<td class="property_flags">Read / Write / Construct</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="property_type"><a href="https://developer.gnome.org/gtk4/gtk4-Standard-Enumerations.html#GtkReliefStyle"><span class="type">GtkReliefStyle</span></a></td>
|
||||
<td class="property_type"><a class="link" href="gtk3-Standard-Enumerations.html#GtkReliefStyle" title="enum GtkReliefStyle"><span class="type">GtkReliefStyle</span></a></td>
|
||||
<td class="property_name"><a class="link" href="GtkButton.html#GtkButton--relief" title="The “relief” property">relief</a></td>
|
||||
<td class="property_flags">Read / Write</td>
|
||||
</tr>
|
||||
@ -439,11 +439,11 @@
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="datatype_keyword">struct</td>
|
||||
<td class="function_name"><a href="https://developer.gnome.org/gtk4/GtkButton.html#GtkButton-struct">GtkButton</a></td>
|
||||
<td class="function_name"><a class="link" href="GtkButton.html#GtkButton-struct" title="struct GtkButton">GtkButton</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="datatype_keyword">struct</td>
|
||||
<td class="function_name"><a href="https://developer.gnome.org/gtk4/GtkButton.html#GtkButtonClass">GtkButtonClass</a></td>
|
||||
<td class="function_name"><a class="link" href="GtkButton.html#GtkButtonClass" title="struct GtkButtonClass">GtkButtonClass</a></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
@ -576,7 +576,7 @@ mnemonic character</p></td>
|
||||
<a name="gtk-button-new-from-icon-name"></a><h3>gtk_button_new_from_icon_name ()</h3>
|
||||
<pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *
|
||||
gtk_button_new_from_icon_name (<em class="parameter"><code>const <span class="type">gchar</span> *icon_name</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/gtk4/gtk4-Standard-Enumerations.html#GtkIconSize"><span class="type">GtkIconSize</span></a> size</code></em>);</pre>
|
||||
<em class="parameter"><code><a class="link" href="gtk3-Themeable-Stock-Images.html#GtkIconSize" title="enum GtkIconSize"><span class="type">GtkIconSize</span></a> size</code></em>);</pre>
|
||||
<p>Creates a new button containing an icon from the current icon theme.</p>
|
||||
<p>If the icon name isn’t known, a “broken image” icon will be
|
||||
displayed instead. If the current icon theme is changed, the icon
|
||||
@ -599,7 +599,7 @@ will be updated appropriately.</p>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>size</p></td>
|
||||
<td class="parameter_description"><p>an icon size (<a href="https://developer.gnome.org/gtk4/gtk4-Standard-Enumerations.html#GtkIconSize"><span class="type">GtkIconSize</span></a>). </p></td>
|
||||
<td class="parameter_description"><p>an icon size (<a class="link" href="gtk3-Themeable-Stock-Images.html#GtkIconSize" title="enum GtkIconSize"><span class="type">GtkIconSize</span></a>). </p></td>
|
||||
<td class="parameter_annotations"><span class="annotation">[<acronym title="Override the parsed C type with given type."><span class="acronym">type</span></acronym> int]</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -623,8 +623,8 @@ instead.</p>
|
||||
</div>
|
||||
<p>Creates a new <a class="link" href="GtkButton.html" title="GtkButton"><span class="type">GtkButton</span></a> containing the image and text from a
|
||||
stock item.
|
||||
Some stock ids have preprocessor macros like <span class="type">GTK_STOCK_OK</span> and
|
||||
<span class="type">GTK_STOCK_APPLY</span>.</p>
|
||||
Some stock ids have preprocessor macros like <a class="link" href="gtk3-Stock-Items.html#GTK-STOCK-OK:CAPS" title="GTK_STOCK_OK"><span class="type">GTK_STOCK_OK</span></a> and
|
||||
<a class="link" href="gtk3-Stock-Items.html#GTK-STOCK-APPLY:CAPS" title="GTK_STOCK_APPLY"><span class="type">GTK_STOCK_APPLY</span></a>.</p>
|
||||
<p>If <em class="parameter"><code>stock_id</code></em>
|
||||
is unknown, then it will be treated as a mnemonic
|
||||
label (as for <a class="link" href="GtkButton.html#gtk-button-new-with-mnemonic" title="gtk_button_new_with_mnemonic ()"><code class="function">gtk_button_new_with_mnemonic()</code></a>).</p>
|
||||
@ -779,12 +779,12 @@ gtk_button_leave (<em class="parameter"><code><a class="link" href="GtkButton.ht
|
||||
<a name="gtk-button-set-relief"></a><h3>gtk_button_set_relief ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
gtk_button_set_relief (<em class="parameter"><code><a class="link" href="GtkButton.html" title="GtkButton"><span class="type">GtkButton</span></a> *button</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/gtk4/gtk4-Standard-Enumerations.html#GtkReliefStyle"><span class="type">GtkReliefStyle</span></a> relief</code></em>);</pre>
|
||||
<em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkReliefStyle" title="enum GtkReliefStyle"><span class="type">GtkReliefStyle</span></a> relief</code></em>);</pre>
|
||||
<p>Sets the relief style of the edges of the given <a class="link" href="GtkButton.html" title="GtkButton"><span class="type">GtkButton</span></a> widget.
|
||||
Two styles exist, <a href="https://developer.gnome.org/gtk4/gtk4-Standard-Enumerations.html#GTK-RELIEF-NORMAL:CAPS"><code class="literal">GTK_RELIEF_NORMAL</code></a> and <a href="https://developer.gnome.org/gtk4/gtk4-Standard-Enumerations.html#GTK-RELIEF-NONE:CAPS"><code class="literal">GTK_RELIEF_NONE</code></a>.
|
||||
The default style is, as one can guess, <a href="https://developer.gnome.org/gtk4/gtk4-Standard-Enumerations.html#GTK-RELIEF-NORMAL:CAPS"><code class="literal">GTK_RELIEF_NORMAL</code></a>.
|
||||
The deprecated value <code class="literal">GTK_RELIEF_HALF</code> behaves the same as
|
||||
<a href="https://developer.gnome.org/gtk4/gtk4-Standard-Enumerations.html#GTK-RELIEF-NORMAL:CAPS"><code class="literal">GTK_RELIEF_NORMAL</code></a>.</p>
|
||||
Two styles exist, <a class="link" href="gtk3-Standard-Enumerations.html#GTK-RELIEF-NORMAL:CAPS"><code class="literal">GTK_RELIEF_NORMAL</code></a> and <a class="link" href="gtk3-Standard-Enumerations.html#GTK-RELIEF-NONE:CAPS"><code class="literal">GTK_RELIEF_NONE</code></a>.
|
||||
The default style is, as one can guess, <a class="link" href="gtk3-Standard-Enumerations.html#GTK-RELIEF-NORMAL:CAPS"><code class="literal">GTK_RELIEF_NORMAL</code></a>.
|
||||
The deprecated value <a class="link" href="gtk3-Standard-Enumerations.html#GTK-RELIEF-HALF:CAPS"><code class="literal">GTK_RELIEF_HALF</code></a> behaves the same as
|
||||
<a class="link" href="gtk3-Standard-Enumerations.html#GTK-RELIEF-NORMAL:CAPS"><code class="literal">GTK_RELIEF_NORMAL</code></a>.</p>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-button-set-relief.parameters"></a><h4>Parameters</h4>
|
||||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||||
@ -811,7 +811,7 @@ The deprecated value <code class="literal">GTK_RELIEF_HALF</code> behaves the sa
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-button-get-relief"></a><h3>gtk_button_get_relief ()</h3>
|
||||
<pre class="programlisting"><a href="https://developer.gnome.org/gtk4/gtk4-Standard-Enumerations.html#GtkReliefStyle"><span class="returnvalue">GtkReliefStyle</span></a>
|
||||
<pre class="programlisting"><a class="link" href="gtk3-Standard-Enumerations.html#GtkReliefStyle" title="enum GtkReliefStyle"><span class="returnvalue">GtkReliefStyle</span></a>
|
||||
gtk_button_get_relief (<em class="parameter"><code><a class="link" href="GtkButton.html" title="GtkButton"><span class="type">GtkButton</span></a> *button</code></em>);</pre>
|
||||
<p>Returns the current relief style of the given <a class="link" href="GtkButton.html" title="GtkButton"><span class="type">GtkButton</span></a>.</p>
|
||||
<div class="refsect3">
|
||||
@ -824,14 +824,14 @@ gtk_button_get_relief (<em class="parameter"><code><a class="link" href="GtkButt
|
||||
</colgroup>
|
||||
<tbody><tr>
|
||||
<td class="parameter_name"><p>button</p></td>
|
||||
<td class="parameter_description"><p>The <a class="link" href="GtkButton.html" title="GtkButton"><span class="type">GtkButton</span></a> you want the <a href="https://developer.gnome.org/gtk4/gtk4-Standard-Enumerations.html#GtkReliefStyle"><span class="type">GtkReliefStyle</span></a> from.</p></td>
|
||||
<td class="parameter_description"><p>The <a class="link" href="GtkButton.html" title="GtkButton"><span class="type">GtkButton</span></a> you want the <a class="link" href="gtk3-Standard-Enumerations.html#GtkReliefStyle" title="enum GtkReliefStyle"><span class="type">GtkReliefStyle</span></a> from.</p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
</div>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-button-get-relief.returns"></a><h4>Returns</h4>
|
||||
<p> The current <a href="https://developer.gnome.org/gtk4/gtk4-Standard-Enumerations.html#GtkReliefStyle"><span class="type">GtkReliefStyle</span></a></p>
|
||||
<p> The current <a class="link" href="gtk3-Standard-Enumerations.html#GtkReliefStyle" title="enum GtkReliefStyle"><span class="type">GtkReliefStyle</span></a></p>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
@ -1250,7 +1250,7 @@ there is no image. </p>
|
||||
<a name="gtk-button-set-image-position"></a><h3>gtk_button_set_image_position ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
gtk_button_set_image_position (<em class="parameter"><code><a class="link" href="GtkButton.html" title="GtkButton"><span class="type">GtkButton</span></a> *button</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>);</pre>
|
||||
<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>);</pre>
|
||||
<p>Sets the position of the image relative to the text
|
||||
inside the button.</p>
|
||||
<div class="refsect3">
|
||||
@ -1280,7 +1280,7 @@ inside the button.</p>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-button-get-image-position"></a><h3>gtk_button_get_image_position ()</h3>
|
||||
<pre class="programlisting"><a href="https://developer.gnome.org/gtk4/gtk4-Standard-Enumerations.html#GtkPositionType"><span class="returnvalue">GtkPositionType</span></a>
|
||||
<pre class="programlisting"><a class="link" href="gtk3-Standard-Enumerations.html#GtkPositionType" title="enum GtkPositionType"><span class="returnvalue">GtkPositionType</span></a>
|
||||
gtk_button_get_image_position (<em class="parameter"><code><a class="link" href="GtkButton.html" title="GtkButton"><span class="type">GtkButton</span></a> *button</code></em>);</pre>
|
||||
<p>Gets the position of the image relative to the text
|
||||
inside the button.</p>
|
||||
@ -1399,6 +1399,73 @@ This function should be rarely needed.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="refsect1">
|
||||
<a name="GtkButton.other_details"></a><h2>Types and Values</h2>
|
||||
<div class="refsect2">
|
||||
<a name="GtkButton-struct"></a><h3>struct GtkButton</h3>
|
||||
<pre class="programlisting">struct GtkButton;</pre>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="GtkButtonClass"></a><h3>struct GtkButtonClass</h3>
|
||||
<pre class="programlisting">struct GtkButtonClass {
|
||||
GtkBinClass parent_class;
|
||||
|
||||
void (* pressed) (GtkButton *button);
|
||||
void (* released) (GtkButton *button);
|
||||
void (* clicked) (GtkButton *button);
|
||||
void (* enter) (GtkButton *button);
|
||||
void (* leave) (GtkButton *button);
|
||||
void (* activate) (GtkButton *button);
|
||||
};
|
||||
</pre>
|
||||
<div class="refsect3">
|
||||
<a name="GtkButtonClass.members"></a><h4>Members</h4>
|
||||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||||
<colgroup>
|
||||
<col width="300px" class="struct_members_name">
|
||||
<col class="struct_members_description">
|
||||
<col width="200px" class="struct_members_annotations">
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="struct_member_name"><p><em class="structfield"><code><a name="GtkButtonClass.pressed"></a>pressed</code></em> ()</p></td>
|
||||
<td class="struct_member_description"><p>Signal emitted when the button is pressed. Deprecated: 2.8.</p></td>
|
||||
<td class="struct_member_annotations"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="struct_member_name"><p><em class="structfield"><code><a name="GtkButtonClass.released"></a>released</code></em> ()</p></td>
|
||||
<td class="struct_member_description"><p>Signal emitted when the button is released. Deprecated: 2.8.</p></td>
|
||||
<td class="struct_member_annotations"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="struct_member_name"><p><em class="structfield"><code><a name="GtkButtonClass.clicked"></a>clicked</code></em> ()</p></td>
|
||||
<td class="struct_member_description"><p>Signal emitted when the button has been activated (pressed and released).</p></td>
|
||||
<td class="struct_member_annotations"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="struct_member_name"><p><em class="structfield"><code><a name="GtkButtonClass.enter"></a>enter</code></em> ()</p></td>
|
||||
<td class="struct_member_description"><p>Signal emitted when the pointer enters the button. Deprecated: 2.8.</p></td>
|
||||
<td class="struct_member_annotations"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="struct_member_name"><p><em class="structfield"><code><a name="GtkButtonClass.leave"></a>leave</code></em> ()</p></td>
|
||||
<td class="struct_member_description"><p>Signal emitted when the pointer leaves the button. Deprecated: 2.8.</p></td>
|
||||
<td class="struct_member_annotations"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="struct_member_name"><p><em class="structfield"><code><a name="GtkButtonClass.activate"></a>activate</code></em> ()</p></td>
|
||||
<td class="struct_member_description"><p>Signal that causes the button to animate press then
|
||||
release. Applications should never connect to this signal, but use
|
||||
the <em class="parameter"><code>clicked</code></em>
|
||||
signal.</p></td>
|
||||
<td class="struct_member_annotations"> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="refsect1">
|
||||
<a name="GtkButton.property-details"></a><h2>Property Details</h2>
|
||||
<div class="refsect2">
|
||||
<a name="GtkButton--always-show-image"></a><h3>The <code class="literal">“always-show-image”</code> property</h3>
|
||||
@ -1424,7 +1491,7 @@ without the image.</p>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="GtkButton--image-position"></a><h3>The <code class="literal">“image-position”</code> property</h3>
|
||||
<pre class="programlisting"> “image-position” <a href="https://developer.gnome.org/gtk4/gtk4-Standard-Enumerations.html#GtkPositionType"><span class="type">GtkPositionType</span></a></pre>
|
||||
<pre class="programlisting"> “image-position” <a class="link" href="gtk3-Standard-Enumerations.html#GtkPositionType" title="enum GtkPositionType"><span class="type">GtkPositionType</span></a></pre>
|
||||
<p>The position of the image relative to the text inside the button.</p>
|
||||
<p>Owner: GtkButton</p>
|
||||
<p>Flags: Read / Write</p>
|
||||
@ -1443,7 +1510,7 @@ without the image.</p>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="GtkButton--relief"></a><h3>The <code class="literal">“relief”</code> property</h3>
|
||||
<pre class="programlisting"> “relief” <a href="https://developer.gnome.org/gtk4/gtk4-Standard-Enumerations.html#GtkReliefStyle"><span class="type">GtkReliefStyle</span></a></pre>
|
||||
<pre class="programlisting"> “relief” <a class="link" href="gtk3-Standard-Enumerations.html#GtkReliefStyle" title="enum GtkReliefStyle"><span class="type">GtkReliefStyle</span></a></pre>
|
||||
<p>The border relief style.</p>
|
||||
<p>Owner: GtkButton</p>
|
||||
<p>Flags: Read / Write</p>
|
||||
|
Reference in New Issue
Block a user