New upstream version 3.22.28
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
<link rel="up" href="DeprecatedObjects.html" title="Deprecated">
|
||||
<link rel="prev" href="GtkActivatable.html" title="GtkActivatable">
|
||||
<link rel="next" href="GtkMisc.html" title="GtkMisc">
|
||||
<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">
|
||||
@ -92,7 +92,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="GtkImageMenuItem.html#gtk-image-menu-item-get-use-stock" title="gtk_image_menu_item_get_use_stock ()">gtk_image_menu_item_get_use_stock</a> <span class="c_punctuation">()</span>
|
||||
@ -108,7 +108,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="GtkImageMenuItem.html#gtk-image-menu-item-get-always-show-image" title="gtk_image_menu_item_get_always_show_image ()">gtk_image_menu_item_get_always_show_image</a> <span class="c_punctuation">()</span>
|
||||
@ -149,7 +149,7 @@
|
||||
<td class="property_flags">Write</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="property_type"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></td>
|
||||
<td class="property_type"><span class="type">gboolean</span></td>
|
||||
<td class="property_name"><a class="link" href="GtkImageMenuItem.html#GtkImageMenuItem--always-show-image" title="The “always-show-image” property">always-show-image</a></td>
|
||||
<td class="property_flags">Read / Write / Construct</td>
|
||||
</tr>
|
||||
@ -160,7 +160,7 @@
|
||||
<td class="property_flags">Read / Write</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="property_type"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></td>
|
||||
<td class="property_type"><span class="type">gboolean</span></td>
|
||||
<td class="property_name"><a class="link" href="GtkImageMenuItem.html#GtkImageMenuItem--use-stock" title="The “use-stock” property">use-stock</a></td>
|
||||
<td class="property_flags">Read / Write / Construct</td>
|
||||
</tr>
|
||||
@ -188,8 +188,8 @@
|
||||
</div>
|
||||
<div class="refsect1">
|
||||
<a name="GtkImageMenuItem.object-hierarchy"></a><h2>Object Hierarchy</h2>
|
||||
<pre class="screen"> <a href="../gobject/gobject-The-Base-Object-Type.html#GObject-struct">GObject</a>
|
||||
<span class="lineart">╰──</span> <a href="../gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a>
|
||||
<pre class="screen"> GObject
|
||||
<span class="lineart">╰──</span> GInitiallyUnowned
|
||||
<span class="lineart">╰──</span> <a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a>
|
||||
<span class="lineart">╰──</span> <a class="link" href="GtkContainer.html" title="GtkContainer">GtkContainer</a>
|
||||
<span class="lineart">╰──</span> <a class="link" href="GtkBin.html" title="GtkBin">GtkBin</a>
|
||||
@ -227,17 +227,17 @@ GtkImageMenuItem implements
|
||||
9
|
||||
10
|
||||
11</pre></td>
|
||||
<td class="listing_code"><pre class="programlisting">GtkWidget <span class="gtkdoc opt">*</span>box <span class="gtkdoc opt">=</span> <span class="function"><a href="GtkBox.html#gtk-box-new">gtk_box_new</a></span> <span class="gtkdoc opt">(</span>GTK_ORIENTATION_HORIZONTAL<span class="gtkdoc opt">,</span> <span class="number">6</span><span class="gtkdoc opt">);</span>
|
||||
GtkWidget <span class="gtkdoc opt">*</span>icon <span class="gtkdoc opt">=</span> <span class="function"><a href="GtkImage.html#gtk-image-new-from-icon-name">gtk_image_new_from_icon_name</a></span> <span class="gtkdoc opt">(</span><span class="string">"folder-music-symbolic"</span><span class="gtkdoc opt">,</span> GTK_ICON_SIZE_MENU<span class="gtkdoc opt">);</span>
|
||||
GtkWidget <span class="gtkdoc opt">*</span>label <span class="gtkdoc opt">=</span> <span class="function"><a href="GtkLabel.html#gtk-label-new">gtk_label_new</a></span> <span class="gtkdoc opt">(</span><span class="string">"Music"</span><span class="gtkdoc opt">);</span>
|
||||
GtkWidget <span class="gtkdoc opt">*</span>menu_item <span class="gtkdoc opt">=</span> <span class="function"><a href="GtkMenuItem.html#gtk-menu-item-new">gtk_menu_item_new</a></span> <span class="gtkdoc opt">();</span>
|
||||
<td class="listing_code"><pre class="programlisting"><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">box </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkBox.html#gtk-box-new">gtk_box_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="gtk3-Standard-Enumerations.html#GTK-ORIENTATION-HORIZONTAL:CAPS">GTK_ORIENTATION_HORIZONTAL</a></span><span class="symbol">,</span><span class="normal"> </span><span class="number">6</span><span class="symbol">);</span>
|
||||
<span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">icon </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkImage.html#gtk-image-new-from-icon-name">gtk_image_new_from_icon_name</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"folder-music-symbolic"</span><span class="symbol">,</span><span class="normal"> <a href="gtk3-Themeable-Stock-Images.html#GTK-ICON-SIZE-MENU:CAPS">GTK_ICON_SIZE_MENU</a></span><span class="symbol">);</span>
|
||||
<span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">label </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkLabel.html#gtk-label-new">gtk_label_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Music"</span><span class="symbol">);</span>
|
||||
<span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">menu_item </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkMenuItem.html#gtk-menu-item-new">gtk_menu_item_new</a></span><span class="normal"> </span><span class="symbol">();</span>
|
||||
|
||||
<span class="function"><a href="GtkContainer.html#gtk-container-add">gtk_container_add</a></span> <span class="gtkdoc opt">(</span><span class="function">GTK_CONTAINER</span> <span class="gtkdoc opt">(</span>box<span class="gtkdoc opt">),</span> icon<span class="gtkdoc opt">);</span>
|
||||
<span class="function"><a href="GtkContainer.html#gtk-container-add">gtk_container_add</a></span> <span class="gtkdoc opt">(</span><span class="function">GTK_CONTAINER</span> <span class="gtkdoc opt">(</span>box<span class="gtkdoc opt">),</span> label<span class="gtkdoc opt">);</span>
|
||||
<span class="function"><a href="GtkContainer.html#gtk-container-add">gtk_container_add</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_CONTAINER</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">box</span><span class="symbol">),</span><span class="normal"> icon</span><span class="symbol">);</span>
|
||||
<span class="function"><a href="GtkContainer.html#gtk-container-add">gtk_container_add</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_CONTAINER</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">box</span><span class="symbol">),</span><span class="normal"> label</span><span class="symbol">);</span>
|
||||
|
||||
<span class="function"><a href="GtkContainer.html#gtk-container-add">gtk_container_add</a></span> <span class="gtkdoc opt">(</span><span class="function">GTK_CONTAINER</span> <span class="gtkdoc opt">(</span>menu_item<span class="gtkdoc opt">),</span> box<span class="gtkdoc opt">);</span>
|
||||
<span class="function"><a href="GtkContainer.html#gtk-container-add">gtk_container_add</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_CONTAINER</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">menu_item</span><span class="symbol">),</span><span class="normal"> box</span><span class="symbol">);</span>
|
||||
|
||||
<span class="function"><a href="GtkWidget.html#gtk-widget-show-all">gtk_widget_show_all</a></span> <span class="gtkdoc opt">(</span>menu_item<span class="gtkdoc opt">);</span></pre></td>
|
||||
<span class="function"><a href="GtkWidget.html#gtk-widget-show-all">gtk_widget_show_all</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">menu_item</span><span class="symbol">);</span></pre></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@ -252,7 +252,7 @@ with a <a class="link" href="GtkImage.html" title="GtkImage"><span class="type">
|
||||
<p><a class="link" href="GtkImageMenuItem.html" title="GtkImageMenuItem"><span class="type">GtkImageMenuItem</span></a> has been deprecated since GTK+ 3.10. If you want to
|
||||
display an icon in a menu item, you should use <a class="link" href="GtkMenuItem.html" title="GtkMenuItem"><span class="type">GtkMenuItem</span></a> and pack a
|
||||
<a class="link" href="GtkBox.html" title="GtkBox"><span class="type">GtkBox</span></a> with a <a class="link" href="GtkImage.html" title="GtkImage"><span class="type">GtkImage</span></a> and a <a class="link" href="GtkLabel.html" title="GtkLabel"><span class="type">GtkLabel</span></a> instead. You should also consider
|
||||
using <a class="link" href="GtkBuilder.html" title="GtkBuilder"><span class="type">GtkBuilder</span></a> and the XML <a href="../gio/GMenu.html#GMenu-struct"><span class="type">GMenu</span></a> description for creating menus, by
|
||||
using <a class="link" href="GtkBuilder.html" title="GtkBuilder"><span class="type">GtkBuilder</span></a> and the XML <span class="type">GMenu</span> description for creating menus, by
|
||||
following the GMenu guide. You should
|
||||
consider using icons in menu items only sparingly, and for "objects" (or
|
||||
"nouns") elements only, like bookmarks, files, and links; "actions" (or
|
||||
@ -286,26 +286,26 @@ binding of Ctrl+M:</p>
|
||||
18
|
||||
19
|
||||
20</pre></td>
|
||||
<td class="listing_code"><pre class="programlisting">GtkWidget <span class="gtkdoc opt">*</span>box <span class="gtkdoc opt">=</span> <span class="function"><a href="GtkBox.html#gtk-box-new">gtk_box_new</a></span> <span class="gtkdoc opt">(</span>GTK_ORIENTATION_HORIZONTAL<span class="gtkdoc opt">,</span> <span class="number">6</span><span class="gtkdoc opt">);</span>
|
||||
GtkWidget <span class="gtkdoc opt">*</span>icon <span class="gtkdoc opt">=</span> <span class="function"><a href="GtkImage.html#gtk-image-new-from-icon-name">gtk_image_new_from_icon_name</a></span> <span class="gtkdoc opt">(</span><span class="string">"folder-music-symbolic"</span><span class="gtkdoc opt">,</span> GTK_ICON_SIZE_MENU<span class="gtkdoc opt">);</span>
|
||||
GtkWidget <span class="gtkdoc opt">*</span>label <span class="gtkdoc opt">=</span> <span class="function"><a href="GtkAccelLabel.html#gtk-accel-label-new">gtk_accel_label_new</a></span> <span class="gtkdoc opt">(</span><span class="string">"Music"</span><span class="gtkdoc opt">);</span>
|
||||
GtkWidget <span class="gtkdoc opt">*</span>menu_item <span class="gtkdoc opt">=</span> <span class="function"><a href="GtkMenuItem.html#gtk-menu-item-new">gtk_menu_item_new</a></span> <span class="gtkdoc opt">();</span>
|
||||
GtkAccelGroup <span class="gtkdoc opt">*</span>accel_group <span class="gtkdoc opt">=</span> <span class="function"><a href="gtk3-Keyboard-Accelerators.html#gtk-accel-group-new">gtk_accel_group_new</a></span> <span class="gtkdoc opt">();</span>
|
||||
<td class="listing_code"><pre class="programlisting"><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">box </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkBox.html#gtk-box-new">gtk_box_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="gtk3-Standard-Enumerations.html#GTK-ORIENTATION-HORIZONTAL:CAPS">GTK_ORIENTATION_HORIZONTAL</a></span><span class="symbol">,</span><span class="normal"> </span><span class="number">6</span><span class="symbol">);</span>
|
||||
<span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">icon </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkImage.html#gtk-image-new-from-icon-name">gtk_image_new_from_icon_name</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"folder-music-symbolic"</span><span class="symbol">,</span><span class="normal"> <a href="gtk3-Themeable-Stock-Images.html#GTK-ICON-SIZE-MENU:CAPS">GTK_ICON_SIZE_MENU</a></span><span class="symbol">);</span>
|
||||
<span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">label </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkAccelLabel.html#gtk-accel-label-new">gtk_accel_label_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Music"</span><span class="symbol">);</span>
|
||||
<span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">menu_item </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkMenuItem.html#gtk-menu-item-new">gtk_menu_item_new</a></span><span class="normal"> </span><span class="symbol">();</span>
|
||||
<span class="usertype">GtkAccelGroup</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">accel_group </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="gtk3-Keyboard-Accelerators.html#gtk-accel-group-new">gtk_accel_group_new</a></span><span class="normal"> </span><span class="symbol">();</span>
|
||||
|
||||
<span class="function"><a href="GtkContainer.html#gtk-container-add">gtk_container_add</a></span> <span class="gtkdoc opt">(</span><span class="function">GTK_CONTAINER</span> <span class="gtkdoc opt">(</span>box<span class="gtkdoc opt">),</span> icon<span class="gtkdoc opt">);</span>
|
||||
<span class="function"><a href="GtkContainer.html#gtk-container-add">gtk_container_add</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_CONTAINER</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">box</span><span class="symbol">),</span><span class="normal"> icon</span><span class="symbol">);</span>
|
||||
|
||||
<span class="function"><a href="GtkLabel.html#gtk-label-set-use-underline">gtk_label_set_use_underline</a></span> <span class="gtkdoc opt">(</span><span class="function">GTK_LABEL</span> <span class="gtkdoc opt">(</span>label<span class="gtkdoc opt">),</span> TRUE<span class="gtkdoc opt">);</span>
|
||||
<span class="function"><a href="GtkLabel.html#gtk-label-set-xalign">gtk_label_set_xalign</a></span> <span class="gtkdoc opt">(</span><span class="function">GTK_LABEL</span> <span class="gtkdoc opt">(</span>label<span class="gtkdoc opt">),</span> <span class="number">0.0</span><span class="gtkdoc opt">);</span>
|
||||
<span class="function"><a href="GtkLabel.html#gtk-label-set-use-underline">gtk_label_set_use_underline</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_LABEL</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">label</span><span class="symbol">),</span><span class="normal"> TRUE</span><span class="symbol">);</span>
|
||||
<span class="function"><a href="GtkLabel.html#gtk-label-set-xalign">gtk_label_set_xalign</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_LABEL</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">label</span><span class="symbol">),</span><span class="normal"> </span><span class="number">0.0</span><span class="symbol">);</span>
|
||||
|
||||
<span class="function"><a href="GtkWidget.html#gtk-widget-add-accelerator">gtk_widget_add_accelerator</a></span> <span class="gtkdoc opt">(</span>menu_item<span class="gtkdoc opt">,</span> <span class="string">"activate"</span><span class="gtkdoc opt">,</span> accel_group<span class="gtkdoc opt">,</span>
|
||||
GDK_KEY_m<span class="gtkdoc opt">,</span> GDK_CONTROL_MASK<span class="gtkdoc opt">,</span> GTK_ACCEL_VISIBLE<span class="gtkdoc opt">);</span>
|
||||
<span class="function"><a href="GtkAccelLabel.html#gtk-accel-label-set-accel-widget">gtk_accel_label_set_accel_widget</a></span> <span class="gtkdoc opt">(</span><span class="function">GTK_ACCEL_LABEL</span> <span class="gtkdoc opt">(</span>label<span class="gtkdoc opt">),</span> menu_item<span class="gtkdoc opt">);</span>
|
||||
<span class="function"><a href="GtkWidget.html#gtk-widget-add-accelerator">gtk_widget_add_accelerator</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">menu_item</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"activate"</span><span class="symbol">,</span><span class="normal"> accel_group</span><span class="symbol">,</span>
|
||||
<span class="normal"> GDK_KEY_m</span><span class="symbol">,</span><span class="normal"> GDK_CONTROL_MASK</span><span class="symbol">,</span><span class="normal"> <a href="gtk3-Keyboard-Accelerators.html#GTK-ACCEL-VISIBLE:CAPS">GTK_ACCEL_VISIBLE</a></span><span class="symbol">);</span>
|
||||
<span class="function"><a href="GtkAccelLabel.html#gtk-accel-label-set-accel-widget">gtk_accel_label_set_accel_widget</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_ACCEL_LABEL</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">label</span><span class="symbol">),</span><span class="normal"> menu_item</span><span class="symbol">);</span>
|
||||
|
||||
<span class="function"><a href="GtkBox.html#gtk-box-pack-end">gtk_box_pack_end</a></span> <span class="gtkdoc opt">(</span><span class="function">GTK_BOX</span> <span class="gtkdoc opt">(</span>box<span class="gtkdoc opt">),</span> label<span class="gtkdoc opt">,</span> TRUE<span class="gtkdoc opt">,</span> TRUE<span class="gtkdoc opt">,</span> <span class="number">0</span><span class="gtkdoc opt">);</span>
|
||||
<span class="function"><a href="GtkBox.html#gtk-box-pack-end">gtk_box_pack_end</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_BOX</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">box</span><span class="symbol">),</span><span class="normal"> label</span><span class="symbol">,</span><span class="normal"> TRUE</span><span class="symbol">,</span><span class="normal"> TRUE</span><span class="symbol">,</span><span class="normal"> </span><span class="number">0</span><span class="symbol">);</span>
|
||||
|
||||
<span class="function"><a href="GtkContainer.html#gtk-container-add">gtk_container_add</a></span> <span class="gtkdoc opt">(</span><span class="function">GTK_CONTAINER</span> <span class="gtkdoc opt">(</span>menu_item<span class="gtkdoc opt">),</span> box<span class="gtkdoc opt">);</span>
|
||||
<span class="function"><a href="GtkContainer.html#gtk-container-add">gtk_container_add</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_CONTAINER</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">menu_item</span><span class="symbol">),</span><span class="normal"> box</span><span class="symbol">);</span>
|
||||
|
||||
<span class="function"><a href="GtkWidget.html#gtk-widget-show-all">gtk_widget_show_all</a></span> <span class="gtkdoc opt">(</span>menu_item<span class="gtkdoc opt">);</span></pre></td>
|
||||
<span class="function"><a href="GtkWidget.html#gtk-widget-show-all">gtk_widget_show_all</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">menu_item</span><span class="symbol">);</span></pre></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@ -341,7 +341,7 @@ the image will be displayed or not.</p>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>image</p></td>
|
||||
<td class="parameter_description"><p> a widget to set as the image for the menu item. </p></td>
|
||||
<td class="parameter_description"><p>a widget to set as the image for the menu item. </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>
|
||||
@ -374,7 +374,7 @@ See <a class="link" href="GtkImageMenuItem.html#gtk-image-menu-item-set-image" t
|
||||
</div>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-image-menu-item-get-image.returns"></a><h4>Returns</h4>
|
||||
<p> the widget set as image of <em class="parameter"><code>image_menu_item</code></em>
|
||||
<p>the widget set as image of <em class="parameter"><code>image_menu_item</code></em>
|
||||
. </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>
|
||||
@ -398,7 +398,7 @@ gtk_image_menu_item_new (<em class="parameter"><code><span class="type">void</sp
|
||||
<div class="refsect2">
|
||||
<a name="gtk-image-menu-item-new-from-stock"></a><h3>gtk_image_menu_item_new_from_stock ()</h3>
|
||||
<pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *
|
||||
gtk_image_menu_item_new_from_stock (<em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *stock_id</code></em>,
|
||||
gtk_image_menu_item_new_from_stock (<em class="parameter"><code>const <span class="type">gchar</span> *stock_id</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="gtk3-Keyboard-Accelerators.html#GtkAccelGroup"><span class="type">GtkAccelGroup</span></a> *accel_group</code></em>);</pre>
|
||||
<div class="warning">
|
||||
<p><code class="literal">gtk_image_menu_item_new_from_stock</code> has been deprecated since version 3.10 and should not be used in newly-written code.</p>
|
||||
@ -408,7 +408,7 @@ gtk_image_menu_item_new_from_stock (<em class="parameter"><code>const <a href=".
|
||||
stock item. 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 you want this menu item to have changeable accelerators, then pass in
|
||||
<a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> for accel_group. Next call <a class="link" href="GtkMenuItem.html#gtk-menu-item-set-accel-path" title="gtk_menu_item_set_accel_path ()"><code class="function">gtk_menu_item_set_accel_path()</code></a> with an
|
||||
<code class="literal">NULL</code> for accel_group. Next call <a class="link" href="GtkMenuItem.html#gtk-menu-item-set-accel-path" title="gtk_menu_item_set_accel_path ()"><code class="function">gtk_menu_item_set_accel_path()</code></a> with an
|
||||
appropriate path for the menu item, use <a class="link" href="gtk3-Stock-Items.html#gtk-stock-lookup" title="gtk_stock_lookup ()"><code class="function">gtk_stock_lookup()</code></a> to look up the
|
||||
standard accelerator for the stock item, and if one is found, call
|
||||
<a class="link" href="gtk3-Accelerator-Maps.html#gtk-accel-map-add-entry" title="gtk_accel_map_add_entry ()"><code class="function">gtk_accel_map_add_entry()</code></a> to register it.</p>
|
||||
@ -428,8 +428,8 @@ standard accelerator for the stock item, and if one is found, call
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>accel_group</p></td>
|
||||
<td class="parameter_description"><p> the <a class="link" href="gtk3-Keyboard-Accelerators.html#GtkAccelGroup"><span class="type">GtkAccelGroup</span></a> to add the menu items
|
||||
accelerator to, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
|
||||
<td class="parameter_description"><p>the <a class="link" href="gtk3-Keyboard-Accelerators.html#GtkAccelGroup"><span class="type">GtkAccelGroup</span></a> to add the menu items
|
||||
accelerator to, or <code class="literal">NULL</code>. </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>
|
||||
@ -444,7 +444,7 @@ accelerator to, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code c
|
||||
<div class="refsect2">
|
||||
<a name="gtk-image-menu-item-new-with-label"></a><h3>gtk_image_menu_item_new_with_label ()</h3>
|
||||
<pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *
|
||||
gtk_image_menu_item_new_with_label (<em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *label</code></em>);</pre>
|
||||
gtk_image_menu_item_new_with_label (<em class="parameter"><code>const <span class="type">gchar</span> *label</code></em>);</pre>
|
||||
<div class="warning">
|
||||
<p><code class="literal">gtk_image_menu_item_new_with_label</code> has been deprecated since version 3.10 and should not be used in newly-written code.</p>
|
||||
<p>Use <a class="link" href="GtkMenuItem.html#gtk-menu-item-new-with-label" title="gtk_menu_item_new_with_label ()"><code class="function">gtk_menu_item_new_with_label()</code></a> instead.</p>
|
||||
@ -474,7 +474,7 @@ gtk_image_menu_item_new_with_label (<em class="parameter"><code>const <a href=".
|
||||
<div class="refsect2">
|
||||
<a name="gtk-image-menu-item-new-with-mnemonic"></a><h3>gtk_image_menu_item_new_with_mnemonic ()</h3>
|
||||
<pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *
|
||||
gtk_image_menu_item_new_with_mnemonic (<em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *label</code></em>);</pre>
|
||||
gtk_image_menu_item_new_with_mnemonic (<em class="parameter"><code>const <span class="type">gchar</span> *label</code></em>);</pre>
|
||||
<div class="warning">
|
||||
<p><code class="literal">gtk_image_menu_item_new_with_mnemonic</code> has been deprecated since version 3.10 and should not be used in newly-written code.</p>
|
||||
<p>Use <a class="link" href="GtkMenuItem.html#gtk-menu-item-new-with-mnemonic" title="gtk_menu_item_new_with_mnemonic ()"><code class="function">gtk_menu_item_new_with_mnemonic()</code></a> instead.</p>
|
||||
@ -507,7 +507,7 @@ mnemonic character</p></td>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-image-menu-item-get-use-stock"></a><h3>gtk_image_menu_item_get_use_stock ()</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_image_menu_item_get_use_stock (<em class="parameter"><code><a class="link" href="GtkImageMenuItem.html" title="GtkImageMenuItem"><span class="type">GtkImageMenuItem</span></a> *image_menu_item</code></em>);</pre>
|
||||
<div class="warning"><p><code class="literal">gtk_image_menu_item_get_use_stock</code> has been deprecated since version 3.10 and should not be used in newly-written code.</p></div>
|
||||
<p>Checks whether the label set in the menuitem is used as a
|
||||
@ -529,7 +529,7 @@ stock id to select the stock item for the item.</p>
|
||||
</div>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-image-menu-item-get-use-stock.returns"></a><h4>Returns</h4>
|
||||
<p> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the label set in the menuitem is used as a
|
||||
<p> <code class="literal">TRUE</code> if the label set in the menuitem is used as a
|
||||
stock id to select the stock item for the item</p>
|
||||
</div>
|
||||
<p class="since">Since: 2.16</p>
|
||||
@ -539,9 +539,9 @@ stock id to select the stock item for the item</p>
|
||||
<a name="gtk-image-menu-item-set-use-stock"></a><h3>gtk_image_menu_item_set_use_stock ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
gtk_image_menu_item_set_use_stock (<em class="parameter"><code><a class="link" href="GtkImageMenuItem.html" title="GtkImageMenuItem"><span class="type">GtkImageMenuItem</span></a> *image_menu_item</code></em>,
|
||||
<em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> use_stock</code></em>);</pre>
|
||||
<em class="parameter"><code><span class="type">gboolean</span> use_stock</code></em>);</pre>
|
||||
<div class="warning"><p><code class="literal">gtk_image_menu_item_set_use_stock</code> has been deprecated since version 3.10 and should not be used in newly-written code.</p></div>
|
||||
<p>If <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, the label set in the menuitem is used as a
|
||||
<p>If <code class="literal">TRUE</code>, the label set in the menuitem is used as a
|
||||
stock id to select the stock item for the item.</p>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-image-menu-item-set-use-stock.parameters"></a><h4>Parameters</h4>
|
||||
@ -559,7 +559,7 @@ stock id to select the stock item for the item.</p>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>use_stock</p></td>
|
||||
<td class="parameter_description"><p><a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the menuitem should use a stock item</p></td>
|
||||
<td class="parameter_description"><p><code class="literal">TRUE</code> if the menuitem should use a stock item</p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -570,7 +570,7 @@ stock id to select the stock item for the item.</p>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-image-menu-item-get-always-show-image"></a><h3>gtk_image_menu_item_get_always_show_image ()</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_image_menu_item_get_always_show_image
|
||||
(<em class="parameter"><code><a class="link" href="GtkImageMenuItem.html" title="GtkImageMenuItem"><span class="type">GtkImageMenuItem</span></a> *image_menu_item</code></em>);</pre>
|
||||
<div class="warning"><p><code class="literal">gtk_image_menu_item_get_always_show_image</code> has been deprecated since version 3.10 and should not be used in newly-written code.</p></div>
|
||||
@ -593,7 +593,7 @@ setting and always show the image, if available.</p>
|
||||
</div>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-image-menu-item-get-always-show-image.returns"></a><h4>Returns</h4>
|
||||
<p> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the menu item will always show the image</p>
|
||||
<p> <code class="literal">TRUE</code> if the menu item will always show the image</p>
|
||||
</div>
|
||||
<p class="since">Since: 2.16</p>
|
||||
</div>
|
||||
@ -603,9 +603,9 @@ setting and always show the image, if available.</p>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
gtk_image_menu_item_set_always_show_image
|
||||
(<em class="parameter"><code><a class="link" href="GtkImageMenuItem.html" title="GtkImageMenuItem"><span class="type">GtkImageMenuItem</span></a> *image_menu_item</code></em>,
|
||||
<em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> always_show</code></em>);</pre>
|
||||
<em class="parameter"><code><span class="type">gboolean</span> always_show</code></em>);</pre>
|
||||
<div class="warning"><p><code class="literal">gtk_image_menu_item_set_always_show_image</code> has been deprecated since version 3.10 and should not be used in newly-written code.</p></div>
|
||||
<p>If <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, the menu item will ignore the <a class="link" href="GtkSettings.html#GtkSettings--gtk-menu-images" title="The “gtk-menu-images” property"><span class="type">“gtk-menu-images”</span></a>
|
||||
<p>If <code class="literal">TRUE</code>, the menu item will ignore the <a class="link" href="GtkSettings.html#GtkSettings--gtk-menu-images" title="The “gtk-menu-images” property"><span class="type">“gtk-menu-images”</span></a>
|
||||
setting and always show the image, if available.</p>
|
||||
<p>Use this property if the menuitem would be useless or hard to use
|
||||
without the image.</p>
|
||||
@ -625,7 +625,7 @@ without the image.</p>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>always_show</p></td>
|
||||
<td class="parameter_description"><p><a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the menuitem should always show the image</p></td>
|
||||
<td class="parameter_description"><p><code class="literal">TRUE</code> if the menuitem should always show the image</p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -714,8 +714,8 @@ you shouldnt need this (see <a class="link" href="GtkImageMenuItem.html#gtk-imag
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="GtkImageMenuItem--always-show-image"></a><h3>The <code class="literal">“always-show-image”</code> property</h3>
|
||||
<pre class="programlisting"> “always-show-image” <a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></pre>
|
||||
<p>If <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, the menu item will always show the image, if available.</p>
|
||||
<pre class="programlisting"> “always-show-image” <span class="type">gboolean</span></pre>
|
||||
<p>If <code class="literal">TRUE</code>, the menu item will always show the image, if available.</p>
|
||||
<p>Use this property only if the menuitem would be useless or hard to use
|
||||
without the image.</p>
|
||||
<div class="warning">
|
||||
@ -742,8 +742,8 @@ without the image.</p>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="GtkImageMenuItem--use-stock"></a><h3>The <code class="literal">“use-stock”</code> property</h3>
|
||||
<pre class="programlisting"> “use-stock” <a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></pre>
|
||||
<p>If <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, the label set in the menuitem is used as a
|
||||
<pre class="programlisting"> “use-stock” <span class="type">gboolean</span></pre>
|
||||
<p>If <code class="literal">TRUE</code>, the label set in the menuitem is used as a
|
||||
stock id to select the stock item for the item.</p>
|
||||
<div class="warning">
|
||||
<p><code class="literal">GtkImageMenuItem:use-stock</code> has been deprecated since version 3.10 and should not be used in newly-written code.</p>
|
||||
@ -756,6 +756,6 @@ stock id to select the stock item for the item.</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