New upstream version 3.22.28
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
<link rel="up" href="AbstractObjects.html" title="Abstract Base Classes">
|
||||
<link rel="prev" href="GtkBin.html" title="GtkBin">
|
||||
<link rel="next" href="GtkRange.html" title="GtkRange">
|
||||
<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">
|
||||
@ -125,7 +125,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="GtkMenuShell.html#gtk-menu-shell-get-take-focus" title="gtk_menu_shell_get_take_focus ()">gtk_menu_shell_get_take_focus</a> <span class="c_punctuation">()</span>
|
||||
@ -167,7 +167,7 @@
|
||||
<col width="200px" class="properties_flags">
|
||||
</colgroup>
|
||||
<tbody><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="GtkMenuShell.html#GtkMenuShell--take-focus" title="The “take-focus” property">take-focus</a></td>
|
||||
<td class="property_flags">Read / Write</td>
|
||||
</tr></tbody>
|
||||
@ -185,42 +185,42 @@
|
||||
<tr>
|
||||
<td class="signal_type"><span class="returnvalue">void</span></td>
|
||||
<td class="signal_name"><a class="link" href="GtkMenuShell.html#GtkMenuShell-activate-current" title="The “activate-current” signal">activate-current</a></td>
|
||||
<td class="signal_flags"><a href="../gobject/gobject-Signals.html#G-SIGNAL-ACTION:CAPS">Action</a></td>
|
||||
<td class="signal_flags">Action</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="signal_type"><span class="returnvalue">void</span></td>
|
||||
<td class="signal_name"><a class="link" href="GtkMenuShell.html#GtkMenuShell-cancel" title="The “cancel” signal">cancel</a></td>
|
||||
<td class="signal_flags"><a href="../gobject/gobject-Signals.html#G-SIGNAL-ACTION:CAPS">Action</a></td>
|
||||
<td class="signal_flags">Action</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="signal_type"><span class="returnvalue">void</span></td>
|
||||
<td class="signal_name"><a class="link" href="GtkMenuShell.html#GtkMenuShell-cycle-focus" title="The “cycle-focus” signal">cycle-focus</a></td>
|
||||
<td class="signal_flags"><a href="../gobject/gobject-Signals.html#G-SIGNAL-ACTION:CAPS">Action</a></td>
|
||||
<td class="signal_flags">Action</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="signal_type"><span class="returnvalue">void</span></td>
|
||||
<td class="signal_name"><a class="link" href="GtkMenuShell.html#GtkMenuShell-deactivate" title="The “deactivate” signal">deactivate</a></td>
|
||||
<td class="signal_flags"><a href="../gobject/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS">Run First</a></td>
|
||||
<td class="signal_flags">Run First</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="signal_type"><span class="returnvalue">void</span></td>
|
||||
<td class="signal_name"><a class="link" href="GtkMenuShell.html#GtkMenuShell-insert" title="The “insert” signal">insert</a></td>
|
||||
<td class="signal_flags"><a href="../gobject/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS">Run First</a></td>
|
||||
<td class="signal_flags">Run First</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="signal_type"><span class="returnvalue">void</span></td>
|
||||
<td class="signal_name"><a class="link" href="GtkMenuShell.html#GtkMenuShell-move-current" title="The “move-current” signal">move-current</a></td>
|
||||
<td class="signal_flags"><a href="../gobject/gobject-Signals.html#G-SIGNAL-ACTION:CAPS">Action</a></td>
|
||||
<td class="signal_flags">Action</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="signal_type"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a></td>
|
||||
<td class="signal_type"><span class="returnvalue">gboolean</span></td>
|
||||
<td class="signal_name"><a class="link" href="GtkMenuShell.html#GtkMenuShell-move-selected" title="The “move-selected” signal">move-selected</a></td>
|
||||
<td class="signal_flags"><a href="../gobject/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS">Run Last</a></td>
|
||||
<td class="signal_flags">Run Last</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="signal_type"><span class="returnvalue">void</span></td>
|
||||
<td class="signal_name"><a class="link" href="GtkMenuShell.html#GtkMenuShell-selection-done" title="The “selection-done” signal">selection-done</a></td>
|
||||
<td class="signal_flags"><a href="../gobject/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS">Run First</a></td>
|
||||
<td class="signal_flags">Run First</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
@ -246,8 +246,8 @@
|
||||
</div>
|
||||
<div class="refsect1">
|
||||
<a name="GtkMenuShell.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> GtkMenuShell
|
||||
@ -318,7 +318,7 @@ item list.</p>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>child</p></td>
|
||||
<td class="parameter_description"><p> The <a class="link" href="GtkMenuItem.html" title="GtkMenuItem"><span class="type">GtkMenuItem</span></a> to add. </p></td>
|
||||
<td class="parameter_description"><p>The <a class="link" href="GtkMenuItem.html" title="GtkMenuItem"><span class="type">GtkMenuItem</span></a> to add. </p></td>
|
||||
<td class="parameter_annotations"><span class="annotation">[<acronym title="Override the parsed C type with given type."><span class="acronym">type</span></acronym> Gtk.MenuItem]</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -362,7 +362,7 @@ item list.</p>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
gtk_menu_shell_insert (<em class="parameter"><code><a class="link" href="GtkMenuShell.html" title="GtkMenuShell"><span class="type">GtkMenuShell</span></a> *menu_shell</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><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> position</code></em>);</pre>
|
||||
<em class="parameter"><code><span class="type">gint</span> position</code></em>);</pre>
|
||||
<p>Adds a new <a class="link" href="GtkMenuItem.html" title="GtkMenuItem"><span class="type">GtkMenuItem</span></a> to the menu shell’s item list
|
||||
at the position indicated by <em class="parameter"><code>position</code></em>
|
||||
.</p>
|
||||
@ -454,7 +454,7 @@ gtk_menu_shell_select_item (<em class="parameter"><code><a class="link" href="Gt
|
||||
<a name="gtk-menu-shell-select-first"></a><h3>gtk_menu_shell_select_first ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
gtk_menu_shell_select_first (<em class="parameter"><code><a class="link" href="GtkMenuShell.html" title="GtkMenuShell"><span class="type">GtkMenuShell</span></a> *menu_shell</code></em>,
|
||||
<em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> search_sensitive</code></em>);</pre>
|
||||
<em class="parameter"><code><span class="type">gboolean</span> search_sensitive</code></em>);</pre>
|
||||
<p>Select the first visible or selectable child of the menu shell;
|
||||
don’t select tearoff items unless the only item is a tearoff
|
||||
item.</p>
|
||||
@ -474,10 +474,10 @@ item.</p>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>search_sensitive</p></td>
|
||||
<td class="parameter_description"><p>if <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, search for the first selectable
|
||||
<td class="parameter_description"><p>if <code class="literal">TRUE</code>, search for the first selectable
|
||||
menu item, otherwise select nothing if
|
||||
the first item isn’t sensitive. This
|
||||
should be <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if the menu is being
|
||||
should be <code class="literal">FALSE</code> if the menu is being
|
||||
popped up initially.</p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
</tr>
|
||||
@ -515,7 +515,7 @@ if any.</p>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
gtk_menu_shell_activate_item (<em class="parameter"><code><a class="link" href="GtkMenuShell.html" title="GtkMenuShell"><span class="type">GtkMenuShell</span></a> *menu_shell</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *menu_item</code></em>,
|
||||
<em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> force_deactivate</code></em>);</pre>
|
||||
<em class="parameter"><code><span class="type">gboolean</span> force_deactivate</code></em>);</pre>
|
||||
<p>Activates the menu item within the menu shell.</p>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-menu-shell-activate-item.parameters"></a><h4>Parameters</h4>
|
||||
@ -538,7 +538,7 @@ gtk_menu_shell_activate_item (<em class="parameter"><code><a class="link" href="
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>force_deactivate</p></td>
|
||||
<td class="parameter_description"><p>if <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, force the deactivation of the
|
||||
<td class="parameter_description"><p>if <code class="literal">TRUE</code>, force the deactivation of the
|
||||
menu shell after the menu item is activated</p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
</tr>
|
||||
@ -574,13 +574,13 @@ gtk_menu_shell_cancel (<em class="parameter"><code><a class="link" href="GtkMenu
|
||||
<a name="gtk-menu-shell-set-take-focus"></a><h3>gtk_menu_shell_set_take_focus ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
gtk_menu_shell_set_take_focus (<em class="parameter"><code><a class="link" href="GtkMenuShell.html" title="GtkMenuShell"><span class="type">GtkMenuShell</span></a> *menu_shell</code></em>,
|
||||
<em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> take_focus</code></em>);</pre>
|
||||
<em class="parameter"><code><span class="type">gboolean</span> take_focus</code></em>);</pre>
|
||||
<p>If <em class="parameter"><code>take_focus</code></em>
|
||||
is <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> (the default) the menu shell will take
|
||||
is <code class="literal">TRUE</code> (the default) the menu shell will take
|
||||
the keyboard focus so that it will receive all keyboard events
|
||||
which is needed to enable keyboard navigation in menus.</p>
|
||||
<p>Setting <em class="parameter"><code>take_focus</code></em>
|
||||
to <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> is useful only for special applications
|
||||
to <code class="literal">FALSE</code> is useful only for special applications
|
||||
like virtual keyboard implementations which should not take keyboard
|
||||
focus.</p>
|
||||
<p>The <em class="parameter"><code>take_focus</code></em>
|
||||
@ -591,12 +591,12 @@ menu hierarchy. Only when programmatically picking a submenu and
|
||||
popping it up manually, the <em class="parameter"><code>take_focus</code></em>
|
||||
property of the submenu
|
||||
needs to be set explicitly.</p>
|
||||
<p>Note that setting it to <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> has side-effects:</p>
|
||||
<p>Note that setting it to <code class="literal">FALSE</code> has side-effects:</p>
|
||||
<p>If the focus is in some other app, it keeps the focus and keynav in
|
||||
the menu doesn’t work. Consequently, keynav on the menu will only
|
||||
work if the focus is on some toplevel owned by the onscreen keyboard.</p>
|
||||
<p>To avoid confusing the user, menus with <em class="parameter"><code>take_focus</code></em>
|
||||
set to <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>
|
||||
set to <code class="literal">FALSE</code>
|
||||
should not display mnemonics or accelerators, since it cannot be
|
||||
guaranteed that they will work.</p>
|
||||
<p>See also <code class="function">gdk_keyboard_grab()</code></p>
|
||||
@ -616,7 +616,7 @@ guaranteed that they will work.</p>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>take_focus</p></td>
|
||||
<td class="parameter_description"><p><a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the menu shell should take the keyboard
|
||||
<td class="parameter_description"><p><code class="literal">TRUE</code> if the menu shell should take the keyboard
|
||||
focus on popup</p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
</tr>
|
||||
@ -628,9 +628,9 @@ focus on popup</p></td>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-menu-shell-get-take-focus"></a><h3>gtk_menu_shell_get_take_focus ()</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_menu_shell_get_take_focus (<em class="parameter"><code><a class="link" href="GtkMenuShell.html" title="GtkMenuShell"><span class="type">GtkMenuShell</span></a> *menu_shell</code></em>);</pre>
|
||||
<p>Returns <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the menu shell will take the keyboard focus on popup.</p>
|
||||
<p>Returns <code class="literal">TRUE</code> if the menu shell will take the keyboard focus on popup.</p>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-menu-shell-get-take-focus.parameters"></a><h4>Parameters</h4>
|
||||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||||
@ -648,7 +648,7 @@ gtk_menu_shell_get_take_focus (<em class="parameter"><code><a class="link" href=
|
||||
</div>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-menu-shell-get-take-focus.returns"></a><h4>Returns</h4>
|
||||
<p> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the menu shell will take the keyboard focus on popup.</p>
|
||||
<p> <code class="literal">TRUE</code> if the menu shell will take the keyboard focus on popup.</p>
|
||||
</div>
|
||||
<p class="since">Since: 2.8</p>
|
||||
</div>
|
||||
@ -675,7 +675,7 @@ gtk_menu_shell_get_selected_item (<em class="parameter"><code><a class="link" hr
|
||||
</div>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-menu-shell-get-selected-item.returns"></a><h4>Returns</h4>
|
||||
<p> the currently selected item. </p>
|
||||
<p>the currently selected item. </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>
|
||||
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></p>
|
||||
@ -705,7 +705,7 @@ from which it was opened up.</p>
|
||||
</div>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-menu-shell-get-parent-shell.returns"></a><h4>Returns</h4>
|
||||
<p> the parent <a class="link" href="GtkMenuShell.html" title="GtkMenuShell"><span class="type">GtkMenuShell</span></a>. </p>
|
||||
<p>the parent <a class="link" href="GtkMenuShell.html" title="GtkMenuShell"><span class="type">GtkMenuShell</span></a>. </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>
|
||||
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></p>
|
||||
@ -715,10 +715,10 @@ from which it was opened up.</p>
|
||||
<a name="gtk-menu-shell-bind-model"></a><h3>gtk_menu_shell_bind_model ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
gtk_menu_shell_bind_model (<em class="parameter"><code><a class="link" href="GtkMenuShell.html" title="GtkMenuShell"><span class="type">GtkMenuShell</span></a> *menu_shell</code></em>,
|
||||
<em class="parameter"><code><a href="../gio/GMenuModel.html#GMenuModel-struct"><span class="type">GMenuModel</span></a> *model</code></em>,
|
||||
<em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *action_namespace</code></em>,
|
||||
<em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> with_separators</code></em>);</pre>
|
||||
<p>Establishes a binding between a <a class="link" href="GtkMenuShell.html" title="GtkMenuShell"><span class="type">GtkMenuShell</span></a> and a <a href="../gio/GMenuModel.html#GMenuModel-struct"><span class="type">GMenuModel</span></a>.</p>
|
||||
<em class="parameter"><code><span class="type">GMenuModel</span> *model</code></em>,
|
||||
<em class="parameter"><code>const <span class="type">gchar</span> *action_namespace</code></em>,
|
||||
<em class="parameter"><code><span class="type">gboolean</span> with_separators</code></em>);</pre>
|
||||
<p>Establishes a binding between a <a class="link" href="GtkMenuShell.html" title="GtkMenuShell"><span class="type">GtkMenuShell</span></a> and a <span class="type">GMenuModel</span>.</p>
|
||||
<p>The contents of <em class="parameter"><code>shell</code></em>
|
||||
are removed and then refilled with menu items
|
||||
according to <em class="parameter"><code>model</code></em>
|
||||
@ -730,14 +730,14 @@ Calling this function twice on <em class="parameter"><code>shell</code></em>
|
||||
will
|
||||
cause the first binding to be replaced with a binding to the new
|
||||
model. If <em class="parameter"><code>model</code></em>
|
||||
is <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> then any previous binding is undone and
|
||||
is <code class="literal">NULL</code> then any previous binding is undone and
|
||||
all children are removed.</p>
|
||||
<p><em class="parameter"><code>with_separators</code></em>
|
||||
determines if toplevel items (eg: sections) have
|
||||
separators inserted between them. This is typically desired for
|
||||
menus but doesn’t make sense for menubars.</p>
|
||||
<p>If <em class="parameter"><code>action_namespace</code></em>
|
||||
is non-<a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> then the effect is as if all
|
||||
is non-<code class="literal">NULL</code> then the effect is as if all
|
||||
actions mentioned in the <em class="parameter"><code>model</code></em>
|
||||
have their names prefixed with the
|
||||
namespace, plus a dot. For example, if the action “quit” is
|
||||
@ -752,10 +752,10 @@ to attach your own action group to the widget hierarchy using
|
||||
<a class="link" href="GtkWidget.html#gtk-widget-insert-action-group" title="gtk_widget_insert_action_group ()"><code class="function">gtk_widget_insert_action_group()</code></a>. As an example, if you created a
|
||||
group with a “quit” action and inserted it with the name “mygroup”
|
||||
then you would use the action name “mygroup.quit” in your
|
||||
<a href="../gio/GMenuModel.html#GMenuModel-struct"><span class="type">GMenuModel</span></a>.</p>
|
||||
<span class="type">GMenuModel</span>.</p>
|
||||
<p>For most cases you are probably better off using
|
||||
<a class="link" href="GtkMenu.html#gtk-menu-new-from-model" title="gtk_menu_new_from_model ()"><code class="function">gtk_menu_new_from_model()</code></a> or <a class="link" href="GtkMenuBar.html#gtk-menu-bar-new-from-model" title="gtk_menu_bar_new_from_model ()"><code class="function">gtk_menu_bar_new_from_model()</code></a> or just
|
||||
directly passing the <a href="../gio/GMenuModel.html#GMenuModel-struct"><span class="type">GMenuModel</span></a> to <a class="link" href="GtkApplication.html#gtk-application-set-app-menu" title="gtk_application_set_app_menu ()"><code class="function">gtk_application_set_app_menu()</code></a> or
|
||||
directly passing the <span class="type">GMenuModel</span> to <a class="link" href="GtkApplication.html#gtk-application-set-app-menu" title="gtk_application_set_app_menu ()"><code class="function">gtk_application_set_app_menu()</code></a> or
|
||||
<a class="link" href="GtkApplication.html#gtk-application-set-menubar" title="gtk_application_set_menubar ()"><code class="function">gtk_application_set_menubar()</code></a>.</p>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-menu-shell-bind-model.parameters"></a><h4>Parameters</h4>
|
||||
@ -773,19 +773,19 @@ directly passing the <a href="../gio/GMenuModel.html#GMenuModel-struct"><span cl
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>model</p></td>
|
||||
<td class="parameter_description"><p> the <a href="../gio/GMenuModel.html#GMenuModel-struct"><span class="type">GMenuModel</span></a> to bind to or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to remove
|
||||
<td class="parameter_description"><p>the <span class="type">GMenuModel</span> to bind to or <code class="literal">NULL</code> to remove
|
||||
binding. </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>action_namespace</p></td>
|
||||
<td class="parameter_description"><p> the namespace for actions in <em class="parameter"><code>model</code></em>
|
||||
<td class="parameter_description"><p>the namespace for actions in <em class="parameter"><code>model</code></em>
|
||||
. </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>with_separators</p></td>
|
||||
<td class="parameter_description"><p><a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if toplevel items in <em class="parameter"><code>shell</code></em>
|
||||
<td class="parameter_description"><p><code class="literal">TRUE</code> if toplevel items in <em class="parameter"><code>shell</code></em>
|
||||
should have
|
||||
separators between them</p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
@ -852,7 +852,7 @@ separators between them</p></td>
|
||||
<a name="GtkMenuShell.property-details"></a><h2>Property Details</h2>
|
||||
<div class="refsect2">
|
||||
<a name="GtkMenuShell--take-focus"></a><h3>The <code class="literal">“take-focus”</code> property</h3>
|
||||
<pre class="programlisting"> “take-focus” <a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></pre>
|
||||
<pre class="programlisting"> “take-focus” <span class="type">gboolean</span></pre>
|
||||
<p>A boolean that determines whether the menu and its submenus grab the
|
||||
keyboard focus. See <a class="link" href="GtkMenuShell.html#gtk-menu-shell-set-take-focus" title="gtk_menu_shell_set_take_focus ()"><code class="function">gtk_menu_shell_set_take_focus()</code></a> and
|
||||
<a class="link" href="GtkMenuShell.html#gtk-menu-shell-get-take-focus" title="gtk_menu_shell_get_take_focus ()"><code class="function">gtk_menu_shell_get_take_focus()</code></a>.</p>
|
||||
@ -867,8 +867,8 @@ keyboard focus. See <a class="link" href="GtkMenuShell.html#gtk-menu-shell-set-t
|
||||
<a name="GtkMenuShell-activate-current"></a><h3>The <code class="literal">“activate-current”</code> signal</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
user_function (<a class="link" href="GtkMenuShell.html" title="GtkMenuShell"><span class="type">GtkMenuShell</span></a> *menushell,
|
||||
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> force_hide,
|
||||
<a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data)</pre>
|
||||
<span class="type">gboolean</span> force_hide,
|
||||
<span class="type">gpointer</span> user_data)</pre>
|
||||
<p>An action signal that activates the current menu item within
|
||||
the menu shell.</p>
|
||||
<div class="refsect3">
|
||||
@ -887,7 +887,7 @@ the menu shell.</p>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>force_hide</p></td>
|
||||
<td class="parameter_description"><p>if <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, hide the menu after activating the menu item</p></td>
|
||||
<td class="parameter_description"><p>if <code class="literal">TRUE</code>, hide the menu after activating the menu item</p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -898,14 +898,14 @@ the menu shell.</p>
|
||||
</tbody>
|
||||
</table></div>
|
||||
</div>
|
||||
<p>Flags: <a href="../gobject/gobject-Signals.html#G-SIGNAL-ACTION:CAPS">Action</a></p>
|
||||
<p>Flags: Action</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="GtkMenuShell-cancel"></a><h3>The <code class="literal">“cancel”</code> signal</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
user_function (<a class="link" href="GtkMenuShell.html" title="GtkMenuShell"><span class="type">GtkMenuShell</span></a> *menushell,
|
||||
<a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data)</pre>
|
||||
<span class="type">gpointer</span> user_data)</pre>
|
||||
<p>An action signal which cancels the selection within the menu shell.
|
||||
Causes the <a class="link" href="GtkMenuShell.html#GtkMenuShell-selection-done" title="The “selection-done” signal"><span class="type">“selection-done”</span></a> signal to be emitted.</p>
|
||||
<div class="refsect3">
|
||||
@ -930,7 +930,7 @@ Causes the <a class="link" href="GtkMenuShell.html#GtkMenuShell-selection-done"
|
||||
</tbody>
|
||||
</table></div>
|
||||
</div>
|
||||
<p>Flags: <a href="../gobject/gobject-Signals.html#G-SIGNAL-ACTION:CAPS">Action</a></p>
|
||||
<p>Flags: Action</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
@ -938,7 +938,7 @@ Causes the <a class="link" href="GtkMenuShell.html#GtkMenuShell-selection-done"
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
user_function (<a class="link" href="GtkMenuShell.html" title="GtkMenuShell"><span class="type">GtkMenuShell</span></a> *menushell,
|
||||
<a class="link" href="gtk3-Standard-Enumerations.html#GtkDirectionType" title="enum GtkDirectionType"><span class="type">GtkDirectionType</span></a> direction,
|
||||
<a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data)</pre>
|
||||
<span class="type">gpointer</span> user_data)</pre>
|
||||
<p>A keybinding signal which moves the focus in the
|
||||
given <em class="parameter"><code>direction</code></em>
|
||||
.</p>
|
||||
@ -969,14 +969,14 @@ given <em class="parameter"><code>direction</code></em>
|
||||
</tbody>
|
||||
</table></div>
|
||||
</div>
|
||||
<p>Flags: <a href="../gobject/gobject-Signals.html#G-SIGNAL-ACTION:CAPS">Action</a></p>
|
||||
<p>Flags: Action</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="GtkMenuShell-deactivate"></a><h3>The <code class="literal">“deactivate”</code> signal</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
user_function (<a class="link" href="GtkMenuShell.html" title="GtkMenuShell"><span class="type">GtkMenuShell</span></a> *menushell,
|
||||
<a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data)</pre>
|
||||
<span class="type">gpointer</span> user_data)</pre>
|
||||
<p>This signal is emitted when a menu shell is deactivated.</p>
|
||||
<div class="refsect3">
|
||||
<a name="GtkMenuShell-deactivate.parameters"></a><h4>Parameters</h4>
|
||||
@ -1000,7 +1000,7 @@ user_function (<a class="link" href="GtkMenuShell.html" title="GtkMenuShell"><sp
|
||||
</tbody>
|
||||
</table></div>
|
||||
</div>
|
||||
<p>Flags: <a href="../gobject/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS">Run First</a></p>
|
||||
<p>Flags: Run First</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
@ -1008,8 +1008,8 @@ user_function (<a class="link" href="GtkMenuShell.html" title="GtkMenuShell"><sp
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
user_function (<a class="link" href="GtkMenuShell.html" title="GtkMenuShell"><span class="type">GtkMenuShell</span></a> *menu_shell,
|
||||
<a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *child,
|
||||
<a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> position,
|
||||
<a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data)</pre>
|
||||
<span class="type">gint</span> position,
|
||||
<span class="type">gpointer</span> user_data)</pre>
|
||||
<p>The ::insert signal is emitted when a new <a class="link" href="GtkMenuItem.html" title="GtkMenuItem"><span class="type">GtkMenuItem</span></a> is added to
|
||||
a <a class="link" href="GtkMenuShell.html" title="GtkMenuShell"><span class="type">GtkMenuShell</span></a>. A separate signal is used instead of
|
||||
GtkContainer::add because of the need for an additional position
|
||||
@ -1047,7 +1047,7 @@ parameter.</p>
|
||||
</tbody>
|
||||
</table></div>
|
||||
</div>
|
||||
<p>Flags: <a href="../gobject/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS">Run First</a></p>
|
||||
<p>Flags: Run First</p>
|
||||
<p class="since">Since: <a class="link" href="api-index-3-2.html#api-index-3.2">3.2</a></p>
|
||||
</div>
|
||||
<hr>
|
||||
@ -1056,7 +1056,7 @@ parameter.</p>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
user_function (<a class="link" href="GtkMenuShell.html" title="GtkMenuShell"><span class="type">GtkMenuShell</span></a> *menushell,
|
||||
<a class="link" href="GtkMenuShell.html#GtkMenuDirectionType" title="enum GtkMenuDirectionType"><span class="type">GtkMenuDirectionType</span></a> direction,
|
||||
<a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data)</pre>
|
||||
<span class="type">gpointer</span> user_data)</pre>
|
||||
<p>An keybinding signal which moves the current menu item
|
||||
in the direction specified by <em class="parameter"><code>direction</code></em>
|
||||
.</p>
|
||||
@ -1087,15 +1087,15 @@ in the direction specified by <em class="parameter"><code>direction</code></em>
|
||||
</tbody>
|
||||
</table></div>
|
||||
</div>
|
||||
<p>Flags: <a href="../gobject/gobject-Signals.html#G-SIGNAL-ACTION:CAPS">Action</a></p>
|
||||
<p>Flags: Action</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="GtkMenuShell-move-selected"></a><h3>The <code class="literal">“move-selected”</code> signal</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>
|
||||
user_function (<a class="link" href="GtkMenuShell.html" title="GtkMenuShell"><span class="type">GtkMenuShell</span></a> *menu_shell,
|
||||
<a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> distance,
|
||||
<a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data)</pre>
|
||||
<span class="type">gint</span> distance,
|
||||
<span class="type">gpointer</span> user_data)</pre>
|
||||
<p>The ::move-selected signal is emitted to move the selection to
|
||||
another item.</p>
|
||||
<div class="refsect3">
|
||||
@ -1127,9 +1127,9 @@ another item.</p>
|
||||
</div>
|
||||
<div class="refsect3">
|
||||
<a name="GtkMenuShell-move-selected.returns"></a><h4>Returns</h4>
|
||||
<p> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to stop the signal emission, <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> to continue</p>
|
||||
<p> <code class="literal">TRUE</code> to stop the signal emission, <code class="literal">FALSE</code> to continue</p>
|
||||
</div>
|
||||
<p>Flags: <a href="../gobject/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS">Run Last</a></p>
|
||||
<p>Flags: Run Last</p>
|
||||
<p class="since">Since: 2.12</p>
|
||||
</div>
|
||||
<hr>
|
||||
@ -1137,7 +1137,7 @@ another item.</p>
|
||||
<a name="GtkMenuShell-selection-done"></a><h3>The <code class="literal">“selection-done”</code> signal</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
user_function (<a class="link" href="GtkMenuShell.html" title="GtkMenuShell"><span class="type">GtkMenuShell</span></a> *menushell,
|
||||
<a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data)</pre>
|
||||
<span class="type">gpointer</span> user_data)</pre>
|
||||
<p>This signal is emitted when a selection has been
|
||||
completed within a menu shell.</p>
|
||||
<div class="refsect3">
|
||||
@ -1162,11 +1162,11 @@ completed within a menu shell.</p>
|
||||
</tbody>
|
||||
</table></div>
|
||||
</div>
|
||||
<p>Flags: <a href="../gobject/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS">Run First</a></p>
|
||||
<p>Flags: Run First</p>
|
||||
</div>
|
||||
</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