New upstream version 3.24.5
This commit is contained in:
@ -150,7 +150,7 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">const <span class="returnvalue">gchar</span> *
|
||||
<td class="function_type">const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
|
||||
</td>
|
||||
<td class="function_name">
|
||||
<a class="link" href="GtkMenu.html#gtk-menu-get-accel-path" title="gtk_menu_get_accel_path ()">gtk_menu_get_accel_path</a> <span class="c_punctuation">()</span>
|
||||
@ -165,7 +165,7 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">const <span class="returnvalue">gchar</span> *
|
||||
<td class="function_type">const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
|
||||
</td>
|
||||
<td class="function_name">
|
||||
<a class="link" href="GtkMenu.html#gtk-menu-get-title" title="gtk_menu_get_title ()">gtk_menu_get_title</a> <span class="c_punctuation">()</span>
|
||||
@ -181,7 +181,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<span class="returnvalue">gint</span>
|
||||
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
|
||||
</td>
|
||||
<td class="function_name">
|
||||
<a class="link" href="GtkMenu.html#gtk-menu-get-monitor" title="gtk_menu_get_monitor ()">gtk_menu_get_monitor</a> <span class="c_punctuation">()</span>
|
||||
@ -197,7 +197,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<span class="returnvalue">gboolean</span>
|
||||
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
||||
</td>
|
||||
<td class="function_name">
|
||||
<a class="link" href="GtkMenu.html#gtk-menu-get-tearoff-state" title="gtk_menu_get_tearoff_state ()">gtk_menu_get_tearoff_state</a> <span class="c_punctuation">()</span>
|
||||
@ -213,7 +213,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<span class="returnvalue">gboolean</span>
|
||||
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
||||
</td>
|
||||
<td class="function_name">
|
||||
<a class="link" href="GtkMenu.html#gtk-menu-get-reserve-toggle-size" title="gtk_menu_get_reserve_toggle_size ()">gtk_menu_get_reserve_toggle_size</a> <span class="c_punctuation">()</span>
|
||||
@ -285,7 +285,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<span class="returnvalue">GList</span> *
|
||||
<a href="https://developer.gnome.org/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *
|
||||
</td>
|
||||
<td class="function_name">
|
||||
<a class="link" href="GtkMenu.html#gtk-menu-get-for-attach-widget" title="gtk_menu_get_for_attach_widget ()">gtk_menu_get_for_attach_widget</a> <span class="c_punctuation">()</span>
|
||||
@ -327,12 +327,12 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="property_type">
|
||||
<span class="type">gchar</span> *</td>
|
||||
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</td>
|
||||
<td class="property_name"><a class="link" href="GtkMenu.html#GtkMenu--accel-path" title="The “accel-path” property">accel-path</a></td>
|
||||
<td class="property_flags">Read / Write</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="property_type"><span class="type">gint</span></td>
|
||||
<td class="property_type"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></td>
|
||||
<td class="property_name"><a class="link" href="GtkMenu.html#GtkMenu--active" title="The “active” property">active</a></td>
|
||||
<td class="property_flags">Read / Write</td>
|
||||
</tr>
|
||||
@ -353,33 +353,33 @@
|
||||
<td class="property_flags">Read / Write / Construct</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="property_type"><span class="type">gint</span></td>
|
||||
<td class="property_type"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></td>
|
||||
<td class="property_name"><a class="link" href="GtkMenu.html#GtkMenu--monitor" title="The “monitor” property">monitor</a></td>
|
||||
<td class="property_flags">Read / Write</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="property_type"><span class="type">gint</span></td>
|
||||
<td class="property_type"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></td>
|
||||
<td class="property_name"><a class="link" href="GtkMenu.html#GtkMenu--rect-anchor-dx" title="The “rect-anchor-dx” property">rect-anchor-dx</a></td>
|
||||
<td class="property_flags">Read / Write / Construct</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="property_type"><span class="type">gint</span></td>
|
||||
<td class="property_type"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></td>
|
||||
<td class="property_name"><a class="link" href="GtkMenu.html#GtkMenu--rect-anchor-dy" title="The “rect-anchor-dy” property">rect-anchor-dy</a></td>
|
||||
<td class="property_flags">Read / Write / Construct</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="property_type"><span class="type">gboolean</span></td>
|
||||
<td class="property_type"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></td>
|
||||
<td class="property_name"><a class="link" href="GtkMenu.html#GtkMenu--reserve-toggle-size" title="The “reserve-toggle-size” property">reserve-toggle-size</a></td>
|
||||
<td class="property_flags">Read / Write</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="property_type"><span class="type">gboolean</span></td>
|
||||
<td class="property_type"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></td>
|
||||
<td class="property_name"><a class="link" href="GtkMenu.html#GtkMenu--tearoff-state" title="The “tearoff-state” property">tearoff-state</a></td>
|
||||
<td class="property_flags">Read / Write</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="property_type">
|
||||
<span class="type">gchar</span> *</td>
|
||||
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</td>
|
||||
<td class="property_name"><a class="link" href="GtkMenu.html#GtkMenu--tearoff-title" title="The “tearoff-title” property">tearoff-title</a></td>
|
||||
<td class="property_flags">Read / Write</td>
|
||||
</tr>
|
||||
@ -396,22 +396,22 @@
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="property_type"><span class="type">gint</span></td>
|
||||
<td class="property_type"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></td>
|
||||
<td class="property_name"><a class="link" href="GtkMenu.html#GtkMenu--c-bottom-attach" title="The “bottom-attach” child property">bottom-attach</a></td>
|
||||
<td class="property_flags">Read / Write</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="property_type"><span class="type">gint</span></td>
|
||||
<td class="property_type"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></td>
|
||||
<td class="property_name"><a class="link" href="GtkMenu.html#GtkMenu--c-left-attach" title="The “left-attach” child property">left-attach</a></td>
|
||||
<td class="property_flags">Read / Write</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="property_type"><span class="type">gint</span></td>
|
||||
<td class="property_type"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></td>
|
||||
<td class="property_name"><a class="link" href="GtkMenu.html#GtkMenu--c-right-attach" title="The “right-attach” child property">right-attach</a></td>
|
||||
<td class="property_flags">Read / Write</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="property_type"><span class="type">gint</span></td>
|
||||
<td class="property_type"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></td>
|
||||
<td class="property_name"><a class="link" href="GtkMenu.html#GtkMenu--c-top-attach" title="The “top-attach” child property">top-attach</a></td>
|
||||
<td class="property_flags">Read / Write</td>
|
||||
</tr>
|
||||
@ -433,32 +433,32 @@
|
||||
<td class="property_flags">Read</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="property_type"><span class="type">gfloat</span></td>
|
||||
<td class="property_type"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a></td>
|
||||
<td class="property_name"><a class="link" href="GtkMenu.html#GtkMenu--s-arrow-scaling" title="The “arrow-scaling” style property">arrow-scaling</a></td>
|
||||
<td class="property_flags">Read</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="property_type"><span class="type">gboolean</span></td>
|
||||
<td class="property_type"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></td>
|
||||
<td class="property_name"><a class="link" href="GtkMenu.html#GtkMenu--s-double-arrows" title="The “double-arrows” style property">double-arrows</a></td>
|
||||
<td class="property_flags">Read</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="property_type"><span class="type">gint</span></td>
|
||||
<td class="property_type"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></td>
|
||||
<td class="property_name"><a class="link" href="GtkMenu.html#GtkMenu--s-horizontal-offset" title="The “horizontal-offset” style property">horizontal-offset</a></td>
|
||||
<td class="property_flags">Read</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="property_type"><span class="type">gint</span></td>
|
||||
<td class="property_type"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></td>
|
||||
<td class="property_name"><a class="link" href="GtkMenu.html#GtkMenu--s-horizontal-padding" title="The “horizontal-padding” style property">horizontal-padding</a></td>
|
||||
<td class="property_flags">Read</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="property_type"><span class="type">gint</span></td>
|
||||
<td class="property_type"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></td>
|
||||
<td class="property_name"><a class="link" href="GtkMenu.html#GtkMenu--s-vertical-offset" title="The “vertical-offset” style property">vertical-offset</a></td>
|
||||
<td class="property_flags">Read</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="property_type"><span class="type">gint</span></td>
|
||||
<td class="property_type"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></td>
|
||||
<td class="property_name"><a class="link" href="GtkMenu.html#GtkMenu--s-vertical-padding" title="The “vertical-padding” style property">vertical-padding</a></td>
|
||||
<td class="property_flags">Read</td>
|
||||
</tr>
|
||||
@ -477,12 +477,12 @@
|
||||
<tr>
|
||||
<td class="signal_type"><span class="returnvalue">void</span></td>
|
||||
<td class="signal_name"><a class="link" href="GtkMenu.html#GtkMenu-move-scroll" title="The “move-scroll” signal">move-scroll</a></td>
|
||||
<td class="signal_flags">Action</td>
|
||||
<td class="signal_flags"><a href="https://developer.gnome.org/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS">Action</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="signal_type"><span class="returnvalue">void</span></td>
|
||||
<td class="signal_name"><a class="link" href="GtkMenu.html#GtkMenu-popped-up" title="The “popped-up” signal">popped-up</a></td>
|
||||
<td class="signal_flags">Run First</td>
|
||||
<td class="signal_flags"><a href="https://developer.gnome.org/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS">Run First</a></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
@ -508,8 +508,8 @@
|
||||
</div>
|
||||
<div class="refsect1">
|
||||
<a name="GtkMenu.object-hierarchy"></a><h2>Object Hierarchy</h2>
|
||||
<pre class="screen"> GObject
|
||||
<span class="lineart">╰──</span> GInitiallyUnowned
|
||||
<pre class="screen"> <a href="https://developer.gnome.org/gobject/unstable/gobject-The-Base-Object-Type.html#GObject-struct">GObject</a>
|
||||
<span class="lineart">╰──</span> <a href="https://developer.gnome.org/gobject/unstable/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a>
|
||||
<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="GtkMenuShell.html" title="GtkMenuShell">GtkMenuShell</a>
|
||||
@ -552,8 +552,8 @@ can pop up a menu when the 3rd mouse button is pressed. </p>
|
||||
2
|
||||
3</pre></td>
|
||||
<td class="listing_code"><pre class="programlisting"><span class="comment">// connect our handler which will popup the menu</span>
|
||||
<span class="function">g_signal_connect_swapped</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"button_press_event"</span><span class="symbol">,</span>
|
||||
<span class="function">G_CALLBACK</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">my_popup_handler</span><span class="symbol">),</span><span class="normal"> menu</span><span class="symbol">);</span></pre></td>
|
||||
<span class="function"><a href="https://developer.gnome.org/gobject/unstable/gobject-Signals.html#g-signal-connect-swapped">g_signal_connect_swapped</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"button_press_event"</span><span class="symbol">,</span>
|
||||
<span class="function"><a href="https://developer.gnome.org/gobject/unstable/gobject-Closures.html#G-CALLBACK:CAPS">G_CALLBACK</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">my_popup_handler</span><span class="symbol">),</span><span class="normal"> menu</span><span class="symbol">);</span></pre></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@ -594,15 +594,15 @@ can pop up a menu when the 3rd mouse button is pressed. </p>
|
||||
25
|
||||
26
|
||||
27</pre></td>
|
||||
<td class="listing_code"><pre class="programlisting"><span class="keyword">static</span><span class="normal"> gint</span>
|
||||
<td class="listing_code"><pre class="programlisting"><span class="keyword">static</span><span class="normal"> <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint">gint</a></span>
|
||||
<span class="function">my_popup_handler</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">widget</span><span class="symbol">,</span><span class="normal"> </span><span class="usertype">GdkEvent</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">event</span><span class="symbol">)</span>
|
||||
<span class="cbracket">{</span>
|
||||
<span class="normal"> </span><span class="usertype">GtkMenu</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">menu</span><span class="symbol">;</span>
|
||||
<span class="normal"> </span><span class="usertype">GdkEventButton</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">event_button</span><span class="symbol">;</span>
|
||||
|
||||
<span class="normal"> </span><span class="function">g_return_val_if_fail</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">widget </span><span class="symbol">!=</span><span class="normal"> NULL</span><span class="symbol">,</span><span class="normal"> FALSE</span><span class="symbol">);</span>
|
||||
<span class="normal"> </span><span class="function">g_return_val_if_fail</span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_IS_MENU</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">widget</span><span class="symbol">),</span><span class="normal"> FALSE</span><span class="symbol">);</span>
|
||||
<span class="normal"> </span><span class="function">g_return_val_if_fail</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">event </span><span class="symbol">!=</span><span class="normal"> NULL</span><span class="symbol">,</span><span class="normal"> FALSE</span><span class="symbol">);</span>
|
||||
<span class="normal"> </span><span class="function"><a href="https://developer.gnome.org/glib/unstable/glib-Warnings-and-Assertions.html#g-return-val-if-fail">g_return_val_if_fail</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">widget </span><span class="symbol">!=</span><span class="normal"> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span><span class="normal"> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS">FALSE</a></span><span class="symbol">);</span>
|
||||
<span class="normal"> </span><span class="function"><a href="https://developer.gnome.org/glib/unstable/glib-Warnings-and-Assertions.html#g-return-val-if-fail">g_return_val_if_fail</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_IS_MENU</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">widget</span><span class="symbol">),</span><span class="normal"> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS">FALSE</a></span><span class="symbol">);</span>
|
||||
<span class="normal"> </span><span class="function"><a href="https://developer.gnome.org/glib/unstable/glib-Warnings-and-Assertions.html#g-return-val-if-fail">g_return_val_if_fail</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">event </span><span class="symbol">!=</span><span class="normal"> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span><span class="normal"> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS">FALSE</a></span><span class="symbol">);</span>
|
||||
|
||||
<span class="normal"> </span><span class="comment">// The "widget" is the menu that was supplied when </span>
|
||||
<span class="normal"> </span><span class="comment">// g_signal_connect_swapped() was called.</span>
|
||||
@ -613,13 +613,13 @@ can pop up a menu when the 3rd mouse button is pressed. </p>
|
||||
<span class="normal"> event_button </span><span class="symbol">=</span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="https://developer.gnome.org/gdk3/gdk3-Event-Structures.html#GdkEventButton">GdkEventButton</a> </span><span class="symbol">*)</span><span class="normal"> event</span><span class="symbol">;</span>
|
||||
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">event_button</span><span class="symbol">-></span><span class="normal">button </span><span class="symbol">==</span><span class="normal"> <a href="https://developer.gnome.org/gdk3/gdk3-Events.html#GDK-BUTTON-SECONDARY:CAPS">GDK_BUTTON_SECONDARY</a></span><span class="symbol">)</span>
|
||||
<span class="normal"> </span><span class="cbracket">{</span>
|
||||
<span class="normal"> </span><span class="function"><a href="GtkMenu.html#gtk-menu-popup">gtk_menu_popup</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">menu</span><span class="symbol">,</span><span class="normal"> NULL</span><span class="symbol">,</span><span class="normal"> NULL</span><span class="symbol">,</span><span class="normal"> NULL</span><span class="symbol">,</span><span class="normal"> NULL</span><span class="symbol">,</span><span class="normal"> </span>
|
||||
<span class="normal"> </span><span class="function"><a href="GtkMenu.html#gtk-menu-popup">gtk_menu_popup</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">menu</span><span class="symbol">,</span><span class="normal"> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span><span class="normal"> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span><span class="normal"> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span><span class="normal"> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span><span class="normal"> </span>
|
||||
<span class="normal"> event_button</span><span class="symbol">-></span><span class="normal">button</span><span class="symbol">,</span><span class="normal"> event_button</span><span class="symbol">-></span><span class="normal">time</span><span class="symbol">);</span>
|
||||
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> TRUE</span><span class="symbol">;</span>
|
||||
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS">TRUE</a></span><span class="symbol">;</span>
|
||||
<span class="normal"> </span><span class="cbracket">}</span>
|
||||
<span class="normal"> </span><span class="cbracket">}</span>
|
||||
|
||||
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> FALSE</span><span class="symbol">;</span>
|
||||
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS">FALSE</a></span><span class="symbol">;</span>
|
||||
<span class="cbracket">}</span></pre></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -727,7 +727,7 @@ gtk_menu_set_screen (<em class="parameter"><code><a class="link" href="GtkMenu.h
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>screen</p></td>
|
||||
<td class="parameter_description"><p>a <a href="https://developer.gnome.org/gdk3/GdkScreen.html#GdkScreen-struct"><span class="type">GdkScreen</span></a>, or <code class="literal">NULL</code> if the screen should be
|
||||
<td class="parameter_description"><p>a <a href="https://developer.gnome.org/gdk3/GdkScreen.html#GdkScreen-struct"><span class="type">GdkScreen</span></a>, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the screen should be
|
||||
determined by the widget the menu is attached to. </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>
|
||||
@ -742,7 +742,7 @@ determined by the widget the menu is attached to. </p></td>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
gtk_menu_reorder_child (<em class="parameter"><code><a class="link" href="GtkMenu.html" title="GtkMenu"><span class="type">GtkMenu</span></a> *menu</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *child</code></em>,
|
||||
<em class="parameter"><code><span class="type">gint</span> position</code></em>);</pre>
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> position</code></em>);</pre>
|
||||
<p>Moves <em class="parameter"><code>child</code></em>
|
||||
to a new <em class="parameter"><code>position</code></em>
|
||||
in the list of <em class="parameter"><code>menu</code></em>
|
||||
@ -784,10 +784,10 @@ Positions are numbered from 0 to n - 1</p></td>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
gtk_menu_attach (<em class="parameter"><code><a class="link" href="GtkMenu.html" title="GtkMenu"><span class="type">GtkMenu</span></a> *menu</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *child</code></em>,
|
||||
<em class="parameter"><code><span class="type">guint</span> left_attach</code></em>,
|
||||
<em class="parameter"><code><span class="type">guint</span> right_attach</code></em>,
|
||||
<em class="parameter"><code><span class="type">guint</span> top_attach</code></em>,
|
||||
<em class="parameter"><code><span class="type">guint</span> bottom_attach</code></em>);</pre>
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> left_attach</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> right_attach</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> top_attach</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> bottom_attach</code></em>);</pre>
|
||||
<p>Adds a new <a class="link" href="GtkMenuItem.html" title="GtkMenuItem"><span class="type">GtkMenuItem</span></a> to a (table) menu. The number of “cells” that
|
||||
an item will occupy is specified by <em class="parameter"><code>left_attach</code></em>
|
||||
, <em class="parameter"><code>right_attach</code></em>
|
||||
@ -919,7 +919,7 @@ to align with <em class="parameter"><code>rect</code></em>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>trigger_event</p></td>
|
||||
<td class="parameter_description"><p>the <a href="https://developer.gnome.org/gdk3/gdk3-Event-Structures.html#GdkEvent"><span class="type">GdkEvent</span></a> that initiated this request or
|
||||
<code class="literal">NULL</code> if it's the current event. </p></td>
|
||||
<a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if it's the current event. </p></td>
|
||||
<td class="parameter_annotations"><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>]</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -996,7 +996,7 @@ to align with <em class="parameter"><code>widget</code></em>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>trigger_event</p></td>
|
||||
<td class="parameter_description"><p>the <a href="https://developer.gnome.org/gdk3/gdk3-Event-Structures.html#GdkEvent"><span class="type">GdkEvent</span></a> that initiated this request or
|
||||
<code class="literal">NULL</code> if it's the current event. </p></td>
|
||||
<a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if it's the current event. </p></td>
|
||||
<td class="parameter_annotations"><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>]</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -1039,7 +1039,7 @@ out how it was actually positioned.</p>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>trigger_event</p></td>
|
||||
<td class="parameter_description"><p>the <a href="https://developer.gnome.org/gdk3/gdk3-Event-Structures.html#GdkEvent"><span class="type">GdkEvent</span></a> that initiated this request or
|
||||
<code class="literal">NULL</code> if it's the current event. </p></td>
|
||||
<a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if it's the current event. </p></td>
|
||||
<td class="parameter_annotations"><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>]</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -1056,10 +1056,10 @@ gtk_menu_popup_for_device (<em class="parameter"><code><a class="link" href="Gtk
|
||||
<em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *parent_menu_shell</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *parent_menu_item</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="GtkMenu.html#GtkMenuPositionFunc" title="GtkMenuPositionFunc ()"><span class="type">GtkMenuPositionFunc</span></a> func</code></em>,
|
||||
<em class="parameter"><code><span class="type">gpointer</span> data</code></em>,
|
||||
<em class="parameter"><code><span class="type">GDestroyNotify</span> destroy</code></em>,
|
||||
<em class="parameter"><code><span class="type">guint</span> button</code></em>,
|
||||
<em class="parameter"><code><span class="type">guint32</span> activate_time</code></em>);</pre>
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> destroy</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> button</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> activate_time</code></em>);</pre>
|
||||
<div class="warning">
|
||||
<p><code class="literal">gtk_menu_popup_for_device</code> has been deprecated since version 3.22 and should not be used in newly-written code.</p>
|
||||
<p>Please use <a class="link" href="GtkMenu.html#gtk-menu-popup-at-widget" title="gtk_menu_popup_at_widget ()"><code class="function">gtk_menu_popup_at_widget()</code></a>,
|
||||
@ -1067,7 +1067,7 @@ gtk_menu_popup_for_device (<em class="parameter"><code><a class="link" href="Gtk
|
||||
</div>
|
||||
<p>Displays a menu and makes it available for selection.</p>
|
||||
<p>Applications can use this function to display context-sensitive menus,
|
||||
and will typically supply <code class="literal">NULL</code> for the <em class="parameter"><code>parent_menu_shell</code></em>
|
||||
and will typically supply <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> for the <em class="parameter"><code>parent_menu_shell</code></em>
|
||||
,
|
||||
<em class="parameter"><code>parent_menu_item</code></em>
|
||||
, <em class="parameter"><code>func</code></em>
|
||||
@ -1116,19 +1116,19 @@ have this problem.</p>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>parent_menu_shell</p></td>
|
||||
<td class="parameter_description"><p>the menu shell containing the triggering
|
||||
menu item, or <code class="literal">NULL</code>. </p></td>
|
||||
menu item, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </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>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>parent_menu_item</p></td>
|
||||
<td class="parameter_description"><p>the menu item whose activation triggered
|
||||
the popup, or <code class="literal">NULL</code>. </p></td>
|
||||
the popup, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </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>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>func</p></td>
|
||||
<td class="parameter_description"><p>a user supplied function used to position the menu,
|
||||
or <code class="literal">NULL</code>. </p></td>
|
||||
or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </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>
|
||||
<tr>
|
||||
@ -1166,9 +1166,9 @@ gtk_menu_popup (<em class="parameter"><code><a class="link" href="GtkMenu.html"
|
||||
<em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *parent_menu_shell</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *parent_menu_item</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="GtkMenu.html#GtkMenuPositionFunc" title="GtkMenuPositionFunc ()"><span class="type">GtkMenuPositionFunc</span></a> func</code></em>,
|
||||
<em class="parameter"><code><span class="type">gpointer</span> data</code></em>,
|
||||
<em class="parameter"><code><span class="type">guint</span> button</code></em>,
|
||||
<em class="parameter"><code><span class="type">guint32</span> activate_time</code></em>);</pre>
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> button</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> activate_time</code></em>);</pre>
|
||||
<div class="warning">
|
||||
<p><code class="literal">gtk_menu_popup</code> has been deprecated since version 3.22 and should not be used in newly-written code.</p>
|
||||
<p>Please use <a class="link" href="GtkMenu.html#gtk-menu-popup-at-widget" title="gtk_menu_popup_at_widget ()"><code class="function">gtk_menu_popup_at_widget()</code></a>,
|
||||
@ -1176,7 +1176,7 @@ gtk_menu_popup (<em class="parameter"><code><a class="link" href="GtkMenu.html"
|
||||
</div>
|
||||
<p>Displays a menu and makes it available for selection.</p>
|
||||
<p>Applications can use this function to display context-sensitive
|
||||
menus, and will typically supply <code class="literal">NULL</code> for the <em class="parameter"><code>parent_menu_shell</code></em>
|
||||
menus, and will typically supply <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> for the <em class="parameter"><code>parent_menu_shell</code></em>
|
||||
,
|
||||
<em class="parameter"><code>parent_menu_item</code></em>
|
||||
, <em class="parameter"><code>func</code></em>
|
||||
@ -1218,19 +1218,19 @@ have this problem.</p>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>parent_menu_shell</p></td>
|
||||
<td class="parameter_description"><p>the menu shell containing the
|
||||
triggering menu item, or <code class="literal">NULL</code>. </p></td>
|
||||
triggering menu item, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </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>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>parent_menu_item</p></td>
|
||||
<td class="parameter_description"><p>the menu item whose activation
|
||||
triggered the popup, or <code class="literal">NULL</code>. </p></td>
|
||||
triggered the popup, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </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>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>func</p></td>
|
||||
<td class="parameter_description"><p>a user supplied function used to position
|
||||
the menu, or <code class="literal">NULL</code>. </p></td>
|
||||
the menu, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
|
||||
<td class="parameter_annotations"><span class="annotation">[<acronym title="The callback is valid until first called."><span class="acronym">scope async</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -1321,7 +1321,7 @@ menu. See <a class="link" href="GtkMenu.html#gtk-menu-set-accel-group" title="gt
|
||||
<a name="gtk-menu-set-accel-path"></a><h3>gtk_menu_set_accel_path ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
gtk_menu_set_accel_path (<em class="parameter"><code><a class="link" href="GtkMenu.html" title="GtkMenu"><span class="type">GtkMenu</span></a> *menu</code></em>,
|
||||
<em class="parameter"><code>const <span class="type">gchar</span> *accel_path</code></em>);</pre>
|
||||
<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *accel_path</code></em>);</pre>
|
||||
<p>Sets an accelerator path for this menu from which accelerator paths
|
||||
for its immediate children, its menu items, can be constructed.
|
||||
The main purpose of this function is to spare the programmer the
|
||||
@ -1338,9 +1338,9 @@ and <code class="literal">"&lt;Gnumeric-Sheet>/File/Exit"</code>.</p>
|
||||
their accelerators at runtime. More details about accelerator paths
|
||||
and their default setups can be found at <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>.</p>
|
||||
<p>Note that <em class="parameter"><code>accel_path</code></em>
|
||||
string will be stored in a <span class="type">GQuark</span>. Therefore,
|
||||
string will be stored in a <a href="https://developer.gnome.org/glib/unstable/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a>. Therefore,
|
||||
if you pass a static string, you can save some memory by interning
|
||||
it first with <code class="function">g_intern_static_string()</code>.</p>
|
||||
it first with <a href="https://developer.gnome.org/glib/unstable/glib-Quarks.html#g-intern-static-string"><code class="function">g_intern_static_string()</code></a>.</p>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-menu-set-accel-path.parameters"></a><h4>Parameters</h4>
|
||||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||||
@ -1357,7 +1357,7 @@ it first with <code class="function">g_intern_static_string()</code>.</p>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>accel_path</p></td>
|
||||
<td class="parameter_description"><p>a valid accelerator path, or <code class="literal">NULL</code> to unset the path. </p></td>
|
||||
<td class="parameter_description"><p>a valid accelerator path, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to unset the path. </p></td>
|
||||
<td class="parameter_annotations"><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>]</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -1367,7 +1367,7 @@ it first with <code class="function">g_intern_static_string()</code>.</p>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-menu-get-accel-path"></a><h3>gtk_menu_get_accel_path ()</h3>
|
||||
<pre class="programlisting">const <span class="returnvalue">gchar</span> *
|
||||
<pre class="programlisting">const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
|
||||
gtk_menu_get_accel_path (<em class="parameter"><code><a class="link" href="GtkMenu.html" title="GtkMenu"><span class="type">GtkMenu</span></a> *menu</code></em>);</pre>
|
||||
<p>Retrieves the accelerator path set on the menu.</p>
|
||||
<div class="refsect3">
|
||||
@ -1396,12 +1396,12 @@ gtk_menu_get_accel_path (<em class="parameter"><code><a class="link" href="GtkMe
|
||||
<a name="gtk-menu-set-title"></a><h3>gtk_menu_set_title ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
gtk_menu_set_title (<em class="parameter"><code><a class="link" href="GtkMenu.html" title="GtkMenu"><span class="type">GtkMenu</span></a> *menu</code></em>,
|
||||
<em class="parameter"><code>const <span class="type">gchar</span> *title</code></em>);</pre>
|
||||
<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *title</code></em>);</pre>
|
||||
<div class="warning"><p><code class="literal">gtk_menu_set_title</code> has been deprecated since version 3.10 and should not be used in newly-written code.</p></div>
|
||||
<p>Sets the title string for the menu.</p>
|
||||
<p>The title is displayed when the menu is shown as a tearoff
|
||||
menu. If <em class="parameter"><code>title</code></em>
|
||||
is <code class="literal">NULL</code>, the menu will see if it is attached
|
||||
is <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, the menu will see if it is attached
|
||||
to a parent menu item, and if so it will try to use the same
|
||||
text as that menu item’s label.</p>
|
||||
<div class="refsect3">
|
||||
@ -1420,7 +1420,7 @@ text as that menu item’s label.</p>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>title</p></td>
|
||||
<td class="parameter_description"><p>a string containing the title for the menu, or <code class="literal">NULL</code> to
|
||||
<td class="parameter_description"><p>a string containing the title for the menu, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to
|
||||
inherit the title of the parent menu item, if any. </p></td>
|
||||
<td class="parameter_annotations"><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>]</span></td>
|
||||
</tr>
|
||||
@ -1431,7 +1431,7 @@ inherit the title of the parent menu item, if any. </p></td>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-menu-get-title"></a><h3>gtk_menu_get_title ()</h3>
|
||||
<pre class="programlisting">const <span class="returnvalue">gchar</span> *
|
||||
<pre class="programlisting">const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
|
||||
gtk_menu_get_title (<em class="parameter"><code><a class="link" href="GtkMenu.html" title="GtkMenu"><span class="type">GtkMenu</span></a> *menu</code></em>);</pre>
|
||||
<div class="warning"><p><code class="literal">gtk_menu_get_title</code> has been deprecated since version 3.10 and should not be used in newly-written code.</p></div>
|
||||
<p>Returns the title of the menu. See <a class="link" href="GtkMenu.html#gtk-menu-set-title" title="gtk_menu_set_title ()"><code class="function">gtk_menu_set_title()</code></a>.</p>
|
||||
@ -1452,7 +1452,7 @@ gtk_menu_get_title (<em class="parameter"><code><a class="link" href="GtkMenu.ht
|
||||
</div>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-menu-get-title.returns"></a><h4>Returns</h4>
|
||||
<p> the title of the menu, or <code class="literal">NULL</code> if the menu
|
||||
<p> the title of the menu, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the menu
|
||||
has no title set on it. This string is owned by GTK+
|
||||
and should not be modified or freed.</p>
|
||||
</div>
|
||||
@ -1462,7 +1462,7 @@ and should not be modified or freed.</p>
|
||||
<a name="gtk-menu-set-monitor"></a><h3>gtk_menu_set_monitor ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
gtk_menu_set_monitor (<em class="parameter"><code><a class="link" href="GtkMenu.html" title="GtkMenu"><span class="type">GtkMenu</span></a> *menu</code></em>,
|
||||
<em class="parameter"><code><span class="type">gint</span> monitor_num</code></em>);</pre>
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> monitor_num</code></em>);</pre>
|
||||
<p>Informs GTK+ on which monitor a menu should be popped up.
|
||||
See <a href="https://developer.gnome.org/gdk3/GdkMonitor.html#gdk-monitor-get-geometry"><code class="function">gdk_monitor_get_geometry()</code></a>.</p>
|
||||
<p>This function should be called from a <a class="link" href="GtkMenu.html#GtkMenuPositionFunc" title="GtkMenuPositionFunc ()"><span class="type">GtkMenuPositionFunc</span></a>
|
||||
@ -1499,7 +1499,7 @@ be popped up</p></td>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-menu-get-monitor"></a><h3>gtk_menu_get_monitor ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">gint</span>
|
||||
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
|
||||
gtk_menu_get_monitor (<em class="parameter"><code><a class="link" href="GtkMenu.html" title="GtkMenu"><span class="type">GtkMenu</span></a> *menu</code></em>);</pre>
|
||||
<p>Retrieves the number of the monitor on which to show the menu.</p>
|
||||
<div class="refsect3">
|
||||
@ -1559,7 +1559,7 @@ gtk_menu_place_on_monitor (<em class="parameter"><code><a class="link" href="Gtk
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-menu-get-tearoff-state"></a><h3>gtk_menu_get_tearoff_state ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">gboolean</span>
|
||||
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
||||
gtk_menu_get_tearoff_state (<em class="parameter"><code><a class="link" href="GtkMenu.html" title="GtkMenu"><span class="type">GtkMenu</span></a> *menu</code></em>);</pre>
|
||||
<div class="warning"><p><code class="literal">gtk_menu_get_tearoff_state</code> has been deprecated since version 3.10 and should not be used in newly-written code.</p></div>
|
||||
<p>Returns whether the menu is torn off.
|
||||
@ -1581,7 +1581,7 @@ See <a class="link" href="GtkMenu.html#gtk-menu-set-tearoff-state" title="gtk_me
|
||||
</div>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-menu-get-tearoff-state.returns"></a><h4>Returns</h4>
|
||||
<p> <code class="literal">TRUE</code> if the menu is currently torn off.</p>
|
||||
<p> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the menu is currently torn off.</p>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
@ -1589,7 +1589,7 @@ See <a class="link" href="GtkMenu.html#gtk-menu-set-tearoff-state" title="gtk_me
|
||||
<a name="gtk-menu-set-reserve-toggle-size"></a><h3>gtk_menu_set_reserve_toggle_size ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
gtk_menu_set_reserve_toggle_size (<em class="parameter"><code><a class="link" href="GtkMenu.html" title="GtkMenu"><span class="type">GtkMenu</span></a> *menu</code></em>,
|
||||
<em class="parameter"><code><span class="type">gboolean</span> reserve_toggle_size</code></em>);</pre>
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> reserve_toggle_size</code></em>);</pre>
|
||||
<p>Sets whether the menu should reserve space for drawing toggles
|
||||
or icons, regardless of their actual presence.</p>
|
||||
<div class="refsect3">
|
||||
@ -1619,7 +1619,7 @@ or icons, regardless of their actual presence.</p>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-menu-get-reserve-toggle-size"></a><h3>gtk_menu_get_reserve_toggle_size ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">gboolean</span>
|
||||
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
||||
gtk_menu_get_reserve_toggle_size (<em class="parameter"><code><a class="link" href="GtkMenu.html" title="GtkMenu"><span class="type">GtkMenu</span></a> *menu</code></em>);</pre>
|
||||
<p>Returns whether the menu reserves space for toggles and
|
||||
icons, regardless of their actual presence.</p>
|
||||
@ -1723,7 +1723,7 @@ first menu item is selected. </p>
|
||||
<a name="gtk-menu-set-active"></a><h3>gtk_menu_set_active ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
gtk_menu_set_active (<em class="parameter"><code><a class="link" href="GtkMenu.html" title="GtkMenu"><span class="type">GtkMenu</span></a> *menu</code></em>,
|
||||
<em class="parameter"><code><span class="type">guint</span> index</code></em>);</pre>
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> index</code></em>);</pre>
|
||||
<p>Selects the specified menu item within the menu. This is used by
|
||||
the <a class="link" href="GtkComboBox.html" title="GtkComboBox"><span class="type">GtkComboBox</span></a> and should not be used by anyone else.</p>
|
||||
<div class="refsect3">
|
||||
@ -1755,7 +1755,7 @@ from 0 to n-1</p></td>
|
||||
<a name="gtk-menu-set-tearoff-state"></a><h3>gtk_menu_set_tearoff_state ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
gtk_menu_set_tearoff_state (<em class="parameter"><code><a class="link" href="GtkMenu.html" title="GtkMenu"><span class="type">GtkMenu</span></a> *menu</code></em>,
|
||||
<em class="parameter"><code><span class="type">gboolean</span> torn_off</code></em>);</pre>
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> torn_off</code></em>);</pre>
|
||||
<div class="warning"><p><code class="literal">gtk_menu_set_tearoff_state</code> has been deprecated since version 3.10 and should not be used in newly-written code.</p></div>
|
||||
<p>Changes the tearoff state of the menu. A menu is normally
|
||||
displayed as drop down menu which persists as long as the menu is
|
||||
@ -1777,7 +1777,7 @@ until it is closed or reattached.</p>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>torn_off</p></td>
|
||||
<td class="parameter_description"><p>If <code class="literal">TRUE</code>, menu is displayed as a tearoff menu.</p></td>
|
||||
<td class="parameter_description"><p>If <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, menu is displayed as a tearoff menu.</p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -1882,7 +1882,7 @@ gtk_menu_get_attach_widget (<em class="parameter"><code><a class="link" href="Gt
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-menu-get-for-attach-widget"></a><h3>gtk_menu_get_for_attach_widget ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">GList</span> *
|
||||
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *
|
||||
gtk_menu_get_for_attach_widget (<em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *widget</code></em>);</pre>
|
||||
<p>Returns a list of the menus which are attached to this widget.
|
||||
This list is owned by GTK+ and must not be modified.</p>
|
||||
@ -1914,10 +1914,10 @@ of menus attached to his widget. </p>
|
||||
<a name="GtkMenuPositionFunc"></a><h3>GtkMenuPositionFunc ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
<span class="c_punctuation">(</span>*GtkMenuPositionFunc<span class="c_punctuation">)</span> (<em class="parameter"><code><a class="link" href="GtkMenu.html" title="GtkMenu"><span class="type">GtkMenu</span></a> *menu</code></em>,
|
||||
<em class="parameter"><code><span class="type">gint</span> *x</code></em>,
|
||||
<em class="parameter"><code><span class="type">gint</span> *y</code></em>,
|
||||
<em class="parameter"><code><span class="type">gboolean</span> *push_in</code></em>,
|
||||
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);</pre>
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *x</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *y</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> *push_in</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
|
||||
<p>A user function supplied when calling <a class="link" href="GtkMenu.html#gtk-menu-popup" title="gtk_menu_popup ()"><code class="function">gtk_menu_popup()</code></a> which
|
||||
controls the positioning of the menu when it is displayed. The
|
||||
function sets the <em class="parameter"><code>x</code></em>
|
||||
@ -1942,20 +1942,20 @@ called.</p>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>x</p></td>
|
||||
<td class="parameter_description"><p>address of the <span class="type">gint</span> representing the horizontal
|
||||
<td class="parameter_description"><p>address of the <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> representing the horizontal
|
||||
position where the menu shall be drawn. </p></td>
|
||||
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for input and for returning results. Default is transfer full."><span class="acronym">inout</span></acronym>]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>y</p></td>
|
||||
<td class="parameter_description"><p>address of the <span class="type">gint</span> representing the vertical position
|
||||
<td class="parameter_description"><p>address of the <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> representing the vertical position
|
||||
where the menu shall be drawn. This is an output parameter. </p></td>
|
||||
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for input and for returning results. Default is transfer full."><span class="acronym">inout</span></acronym>]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>push_in</p></td>
|
||||
<td class="parameter_description"><p>This parameter controls how menus placed outside
|
||||
the monitor are handled. If this is set to <code class="literal">TRUE</code> and part of
|
||||
the monitor are handled. If this is set to <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> and part of
|
||||
the menu is outside the monitor then GTK+ pushes the window
|
||||
into the visible area, effectively modifying the popup
|
||||
position. Note that moving and possibly resizing the menu
|
||||
@ -2067,7 +2067,7 @@ will be called when the menu is later detached from the widget.</p>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="GtkMenu--accel-path"></a><h3>The <code class="literal">“accel-path”</code> property</h3>
|
||||
<pre class="programlisting"> “accel-path” <span class="type">gchar</span> *</pre>
|
||||
<pre class="programlisting"> “accel-path” <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</pre>
|
||||
<p>An accel path used to conveniently construct accel paths of child items.</p>
|
||||
<p>Flags: Read / Write</p>
|
||||
<p>Default value: NULL</p>
|
||||
@ -2076,7 +2076,7 @@ will be called when the menu is later detached from the widget.</p>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="GtkMenu--active"></a><h3>The <code class="literal">“active”</code> property</h3>
|
||||
<pre class="programlisting"> “active” <span class="type">gint</span></pre>
|
||||
<pre class="programlisting"> “active” <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></pre>
|
||||
<p>The index of the currently selected menu item, or -1 if no
|
||||
menu item is selected.</p>
|
||||
<p>Flags: Read / Write</p>
|
||||
@ -2127,7 +2127,7 @@ use <a class="link" href="GtkMenu.html#gtk-menu-attach-to-widget" title="gtk_men
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="GtkMenu--monitor"></a><h3>The <code class="literal">“monitor”</code> property</h3>
|
||||
<pre class="programlisting"> “monitor” <span class="type">gint</span></pre>
|
||||
<pre class="programlisting"> “monitor” <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></pre>
|
||||
<p>The monitor the menu will be popped up on.</p>
|
||||
<p>Flags: Read / Write</p>
|
||||
<p>Allowed values: >= -1</p>
|
||||
@ -2137,7 +2137,7 @@ use <a class="link" href="GtkMenu.html#gtk-menu-attach-to-widget" title="gtk_men
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="GtkMenu--rect-anchor-dx"></a><h3>The <code class="literal">“rect-anchor-dx”</code> property</h3>
|
||||
<pre class="programlisting"> “rect-anchor-dx” <span class="type">gint</span></pre>
|
||||
<pre class="programlisting"> “rect-anchor-dx” <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></pre>
|
||||
<p>Horizontal offset to apply to the menu, i.e. the rectangle or widget
|
||||
anchor.</p>
|
||||
<p>See <a class="link" href="GtkMenu.html#gtk-menu-popup-at-rect" title="gtk_menu_popup_at_rect ()"><code class="function">gtk_menu_popup_at_rect()</code></a>, <a class="link" href="GtkMenu.html#gtk-menu-popup-at-widget" title="gtk_menu_popup_at_widget ()"><code class="function">gtk_menu_popup_at_widget()</code></a>,
|
||||
@ -2150,7 +2150,7 @@ anchor.</p>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="GtkMenu--rect-anchor-dy"></a><h3>The <code class="literal">“rect-anchor-dy”</code> property</h3>
|
||||
<pre class="programlisting"> “rect-anchor-dy” <span class="type">gint</span></pre>
|
||||
<pre class="programlisting"> “rect-anchor-dy” <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></pre>
|
||||
<p>Vertical offset to apply to the menu, i.e. the rectangle or widget anchor.</p>
|
||||
<p>See <a class="link" href="GtkMenu.html#gtk-menu-popup-at-rect" title="gtk_menu_popup_at_rect ()"><code class="function">gtk_menu_popup_at_rect()</code></a>, <a class="link" href="GtkMenu.html#gtk-menu-popup-at-widget" title="gtk_menu_popup_at_widget ()"><code class="function">gtk_menu_popup_at_widget()</code></a>,
|
||||
<a class="link" href="GtkMenu.html#gtk-menu-popup-at-pointer" title="gtk_menu_popup_at_pointer ()"><code class="function">gtk_menu_popup_at_pointer()</code></a>, <a class="link" href="GtkMenu.html#GtkMenu--anchor-hints" title="The “anchor-hints” property"><span class="type">“anchor-hints”</span></a>,
|
||||
@ -2162,7 +2162,7 @@ anchor.</p>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="GtkMenu--reserve-toggle-size"></a><h3>The <code class="literal">“reserve-toggle-size”</code> property</h3>
|
||||
<pre class="programlisting"> “reserve-toggle-size” <span class="type">gboolean</span></pre>
|
||||
<pre class="programlisting"> “reserve-toggle-size” <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></pre>
|
||||
<p>A boolean that indicates whether the menu reserves space for
|
||||
toggles and icons, regardless of their actual presence.</p>
|
||||
<p>This property should only be changed from its default value
|
||||
@ -2176,7 +2176,7 @@ toggle space for consistency.</p>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="GtkMenu--tearoff-state"></a><h3>The <code class="literal">“tearoff-state”</code> property</h3>
|
||||
<pre class="programlisting"> “tearoff-state” <span class="type">gboolean</span></pre>
|
||||
<pre class="programlisting"> “tearoff-state” <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></pre>
|
||||
<p>A boolean that indicates whether the menu is torn-off.</p>
|
||||
<div class="warning"><p><code class="literal">GtkMenu:tearoff-state</code> has been deprecated since version 3.10 and should not be used in newly-written code.</p></div>
|
||||
<p>Flags: Read / Write</p>
|
||||
@ -2186,7 +2186,7 @@ toggle space for consistency.</p>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="GtkMenu--tearoff-title"></a><h3>The <code class="literal">“tearoff-title”</code> property</h3>
|
||||
<pre class="programlisting"> “tearoff-title” <span class="type">gchar</span> *</pre>
|
||||
<pre class="programlisting"> “tearoff-title” <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</pre>
|
||||
<p>A title that may be displayed by the window manager when this
|
||||
menu is torn-off.</p>
|
||||
<div class="warning"><p><code class="literal">GtkMenu:tearoff-title</code> has been deprecated since version 3.10 and should not be used in newly-written code.</p></div>
|
||||
@ -2198,7 +2198,7 @@ menu is torn-off.</p>
|
||||
<a name="GtkMenu.child-property-details"></a><h2>Child Property Details</h2>
|
||||
<div class="refsect2">
|
||||
<a name="GtkMenu--c-bottom-attach"></a><h3>The <code class="literal">“bottom-attach”</code> child property</h3>
|
||||
<pre class="programlisting"> “bottom-attach” <span class="type">gint</span></pre>
|
||||
<pre class="programlisting"> “bottom-attach” <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></pre>
|
||||
<p>The row number to attach the bottom of the child to.</p>
|
||||
<p>Flags: Read / Write</p>
|
||||
<p>Allowed values: >= -1</p>
|
||||
@ -2207,7 +2207,7 @@ menu is torn-off.</p>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="GtkMenu--c-left-attach"></a><h3>The <code class="literal">“left-attach”</code> child property</h3>
|
||||
<pre class="programlisting"> “left-attach” <span class="type">gint</span></pre>
|
||||
<pre class="programlisting"> “left-attach” <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></pre>
|
||||
<p>The column number to attach the left side of the child to.</p>
|
||||
<p>Flags: Read / Write</p>
|
||||
<p>Allowed values: >= -1</p>
|
||||
@ -2216,7 +2216,7 @@ menu is torn-off.</p>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="GtkMenu--c-right-attach"></a><h3>The <code class="literal">“right-attach”</code> child property</h3>
|
||||
<pre class="programlisting"> “right-attach” <span class="type">gint</span></pre>
|
||||
<pre class="programlisting"> “right-attach” <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></pre>
|
||||
<p>The column number to attach the right side of the child to.</p>
|
||||
<p>Flags: Read / Write</p>
|
||||
<p>Allowed values: >= -1</p>
|
||||
@ -2225,7 +2225,7 @@ menu is torn-off.</p>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="GtkMenu--c-top-attach"></a><h3>The <code class="literal">“top-attach”</code> child property</h3>
|
||||
<pre class="programlisting"> “top-attach” <span class="type">gint</span></pre>
|
||||
<pre class="programlisting"> “top-attach” <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></pre>
|
||||
<p>The row number to attach the top of the child to.</p>
|
||||
<p>Flags: Read / Write</p>
|
||||
<p>Allowed values: >= -1</p>
|
||||
@ -2249,7 +2249,7 @@ menu is torn-off.</p>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="GtkMenu--s-arrow-scaling"></a><h3>The <code class="literal">“arrow-scaling”</code> style property</h3>
|
||||
<pre class="programlisting"> “arrow-scaling” <span class="type">gfloat</span></pre>
|
||||
<pre class="programlisting"> “arrow-scaling” <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a></pre>
|
||||
<p>Arbitrary constant to scale down the size of the scroll arrow.</p>
|
||||
<div class="warning">
|
||||
<p><code class="literal">GtkMenu:arrow-scaling</code> has been deprecated since version 3.20 and should not be used in newly-written code.</p>
|
||||
@ -2264,8 +2264,8 @@ menu is torn-off.</p>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="GtkMenu--s-double-arrows"></a><h3>The <code class="literal">“double-arrows”</code> style property</h3>
|
||||
<pre class="programlisting"> “double-arrows” <span class="type">gboolean</span></pre>
|
||||
<p>When <code class="literal">TRUE</code>, both arrows are shown when scrolling.</p>
|
||||
<pre class="programlisting"> “double-arrows” <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></pre>
|
||||
<p>When <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, both arrows are shown when scrolling.</p>
|
||||
<div class="warning">
|
||||
<p><code class="literal">GtkMenu:double-arrows</code> has been deprecated since version 3.20 and should not be used in newly-written code.</p>
|
||||
<p>the value of this style property is ignored.</p>
|
||||
@ -2276,7 +2276,7 @@ menu is torn-off.</p>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="GtkMenu--s-horizontal-offset"></a><h3>The <code class="literal">“horizontal-offset”</code> style property</h3>
|
||||
<pre class="programlisting"> “horizontal-offset” <span class="type">gint</span></pre>
|
||||
<pre class="programlisting"> “horizontal-offset” <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></pre>
|
||||
<p>When the menu is a submenu, position it this number of pixels offset horizontally.</p>
|
||||
<p>Flags: Read</p>
|
||||
<p>Default value: -2</p>
|
||||
@ -2284,7 +2284,7 @@ menu is torn-off.</p>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="GtkMenu--s-horizontal-padding"></a><h3>The <code class="literal">“horizontal-padding”</code> style property</h3>
|
||||
<pre class="programlisting"> “horizontal-padding” <span class="type">gint</span></pre>
|
||||
<pre class="programlisting"> “horizontal-padding” <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></pre>
|
||||
<p>Extra space at the left and right edges of the menu.</p>
|
||||
<div class="warning">
|
||||
<p><code class="literal">GtkMenu:horizontal-padding</code> has been deprecated since version 3.8 and should not be used in newly-written code.</p>
|
||||
@ -2299,7 +2299,7 @@ menu is torn-off.</p>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="GtkMenu--s-vertical-offset"></a><h3>The <code class="literal">“vertical-offset”</code> style property</h3>
|
||||
<pre class="programlisting"> “vertical-offset” <span class="type">gint</span></pre>
|
||||
<pre class="programlisting"> “vertical-offset” <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></pre>
|
||||
<p>When the menu is a submenu, position it this number of pixels offset vertically.</p>
|
||||
<p>Flags: Read</p>
|
||||
<p>Default value: 0</p>
|
||||
@ -2307,7 +2307,7 @@ menu is torn-off.</p>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="GtkMenu--s-vertical-padding"></a><h3>The <code class="literal">“vertical-padding”</code> style property</h3>
|
||||
<pre class="programlisting"> “vertical-padding” <span class="type">gint</span></pre>
|
||||
<pre class="programlisting"> “vertical-padding” <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></pre>
|
||||
<p>Extra space at the top and bottom of the menu.</p>
|
||||
<div class="warning">
|
||||
<p><code class="literal">GtkMenu:vertical-padding</code> has been deprecated since version 3.8 and should not be used in newly-written code.</p>
|
||||
@ -2327,7 +2327,7 @@ menu is torn-off.</p>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
user_function (<a class="link" href="GtkMenu.html" title="GtkMenu"><span class="type">GtkMenu</span></a> *menu,
|
||||
<a class="link" href="gtk3-Standard-Enumerations.html#GtkScrollType" title="enum GtkScrollType"><span class="type">GtkScrollType</span></a> scroll_type,
|
||||
<span class="type">gpointer</span> user_data)</pre>
|
||||
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data)</pre>
|
||||
<div class="refsect3">
|
||||
<a name="GtkMenu-move-scroll.parameters"></a><h4>Parameters</h4>
|
||||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||||
@ -2355,18 +2355,18 @@ user_function (<a class="link" href="GtkMenu.html" title="GtkMenu"><span class="
|
||||
</tbody>
|
||||
</table></div>
|
||||
</div>
|
||||
<p>Flags: Action</p>
|
||||
<p>Flags: <a href="https://developer.gnome.org/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS">Action</a></p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="GtkMenu-popped-up"></a><h3>The <code class="literal">“popped-up”</code> signal</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
user_function (<a class="link" href="GtkMenu.html" title="GtkMenu"><span class="type">GtkMenu</span></a> *menu,
|
||||
<span class="type">gpointer</span> flipped_rect,
|
||||
<span class="type">gpointer</span> final_rect,
|
||||
<span class="type">gboolean</span> flipped_x,
|
||||
<span class="type">gboolean</span> flipped_y,
|
||||
<span class="type">gpointer</span> user_data)</pre>
|
||||
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> flipped_rect,
|
||||
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> final_rect,
|
||||
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> flipped_x,
|
||||
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> flipped_y,
|
||||
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data)</pre>
|
||||
<p>Emitted when the position of <em class="parameter"><code>menu</code></em>
|
||||
is finalized after being popped up
|
||||
using <a class="link" href="GtkMenu.html#gtk-menu-popup-at-rect" title="gtk_menu_popup_at_rect ()"><code class="function">gtk_menu_popup_at_rect()</code></a>, <a class="link" href="GtkMenu.html#gtk-menu-popup-at-widget" title="gtk_menu_popup_at_widget ()"><code class="function">gtk_menu_popup_at_widget()</code></a>, or
|
||||
@ -2375,7 +2375,7 @@ using <a class="link" href="GtkMenu.html#gtk-menu-popup-at-rect" title="gtk_menu
|
||||
might be flipped over the anchor rectangle in order to keep it
|
||||
on-screen, in which case <em class="parameter"><code>flipped_x</code></em>
|
||||
and <em class="parameter"><code>flipped_y</code></em>
|
||||
will be set to <code class="literal">TRUE</code>
|
||||
will be set to <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>
|
||||
accordingly.</p>
|
||||
<p><em class="parameter"><code>flipped_rect</code></em>
|
||||
is the ideal position of <em class="parameter"><code>menu</code></em>
|
||||
@ -2414,24 +2414,24 @@ and the red menu is <em class="parameter"><code>final_rect</code></em>
|
||||
<td class="parameter_name"><p>flipped_rect</p></td>
|
||||
<td class="parameter_description"><p>the position of <em class="parameter"><code>menu</code></em>
|
||||
after any possible
|
||||
flipping or <code class="literal">NULL</code> if the backend can't obtain it. </p></td>
|
||||
flipping or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the backend can't obtain it. </p></td>
|
||||
<td class="parameter_annotations"><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>]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>final_rect</p></td>
|
||||
<td class="parameter_description"><p>the final position of <em class="parameter"><code>menu</code></em>
|
||||
or <code class="literal">NULL</code> if the
|
||||
or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the
|
||||
backend can't obtain it. </p></td>
|
||||
<td class="parameter_annotations"><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>]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>flipped_x</p></td>
|
||||
<td class="parameter_description"><p><code class="literal">TRUE</code> if the anchors were flipped horizontally</p></td>
|
||||
<td class="parameter_description"><p><a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the anchors were flipped horizontally</p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>flipped_y</p></td>
|
||||
<td class="parameter_description"><p><code class="literal">TRUE</code> if the anchors were flipped vertically</p></td>
|
||||
<td class="parameter_description"><p><a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the anchors were flipped vertically</p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -2442,7 +2442,7 @@ backend can't obtain it. </p></td>
|
||||
</tbody>
|
||||
</table></div>
|
||||
</div>
|
||||
<p>Flags: Run First</p>
|
||||
<p>Flags: <a href="https://developer.gnome.org/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS">Run First</a></p>
|
||||
<p class="since">Since: <a class="link" href="api-index-3-22.html#api-index-3.22">3.22</a></p>
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user