1999-08-16 18:51:52 +00:00
|
|
|
<!-- ##### SECTION Title ##### -->
|
|
|
|
GtkMenuShell
|
|
|
|
|
|
|
|
<!-- ##### SECTION Short_Description ##### -->
|
2004-10-11 18:08:35 +00:00
|
|
|
A base class for menu objects
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
<!-- ##### SECTION Long_Description ##### -->
|
|
|
|
<para>
|
|
|
|
A #GtkMenuShell is the abstract base class used to derive the
|
|
|
|
#GtkMenu and #GtkMenuBar subclasses.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
A #GtkMenuShell is a container of #GtkMenuItem objects arranged in a
|
|
|
|
list which can be navigated, selected, and activated by the user to perform
|
|
|
|
application functions. A #GtkMenuItem can have a submenu associated with it,
|
|
|
|
allowing for nested hierarchical menus.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### SECTION See_Also ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2005-06-20 22:06:27 +00:00
|
|
|
<!-- ##### SECTION Stability_Level ##### -->
|
|
|
|
|
|
|
|
|
2010-05-08 05:18:53 +00:00
|
|
|
<!-- ##### SECTION Image ##### -->
|
|
|
|
|
|
|
|
|
1999-08-16 18:51:52 +00:00
|
|
|
<!-- ##### STRUCT GtkMenuShell ##### -->
|
|
|
|
<para>
|
|
|
|
The #GtkMenuShell-struct struct contains the following fields.
|
|
|
|
(These fields should be considered read-only. They should never be set by
|
|
|
|
an application.)
|
|
|
|
|
2002-05-28 22:23:55 +00:00
|
|
|
<informaltable pgwide="1" frame="none" role="struct">
|
|
|
|
<tgroup cols="2"><colspec colwidth="2*"/><colspec colwidth="8*"/>
|
1999-08-16 18:51:52 +00:00
|
|
|
<tbody>
|
|
|
|
|
|
|
|
<row>
|
|
|
|
<entry>#GList *children;</entry>
|
|
|
|
<entry>The list of #GtkMenuItem objects contained by this #GtkMenuShell.
|
|
|
|
</entry>
|
|
|
|
</row>
|
|
|
|
</tbody></tgroup></informaltable>
|
|
|
|
</para>
|
|
|
|
|
|
|
|
|
2004-07-20 02:26:06 +00:00
|
|
|
<!-- ##### SIGNAL GtkMenuShell::activate-current ##### -->
|
|
|
|
<para>
|
|
|
|
An action signal that activates the current menu item within the menu
|
|
|
|
shell.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@menushell: the object which received the signal.
|
|
|
|
@force_hide: if TRUE, hide the menu after activating the menu item.
|
|
|
|
|
|
|
|
<!-- ##### SIGNAL GtkMenuShell::cancel ##### -->
|
|
|
|
<para>
|
|
|
|
An action signal which cancels the selection within the menu shell.
|
|
|
|
Causes the GtkMenuShell::selection-done signal to be emitted.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@menushell: the object which received the signal.
|
|
|
|
|
|
|
|
<!-- ##### SIGNAL GtkMenuShell::cycle-focus ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@menushell: the object which received the signal.
|
|
|
|
@arg1:
|
|
|
|
|
|
|
|
<!-- ##### SIGNAL GtkMenuShell::deactivate ##### -->
|
|
|
|
<para>
|
|
|
|
This signal is emitted when a menu shell is deactivated.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@menushell: the object which received the signal.
|
|
|
|
|
|
|
|
<!-- ##### SIGNAL GtkMenuShell::move-current ##### -->
|
|
|
|
<para>
|
|
|
|
An action signal which moves the current menu item in the direction
|
|
|
|
specified by @direction.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@menushell: the object which received the signal.
|
|
|
|
@direction: the direction to move.
|
|
|
|
|
2007-06-16 02:02:37 +00:00
|
|
|
<!-- ##### SIGNAL GtkMenuShell::move-selected ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@menushell: the object which received the signal.
|
|
|
|
@arg1:
|
|
|
|
@Returns:
|
|
|
|
|
2004-07-20 02:26:06 +00:00
|
|
|
<!-- ##### SIGNAL GtkMenuShell::selection-done ##### -->
|
|
|
|
<para>
|
|
|
|
This signal is emitted when a selection has been completed within a menu
|
|
|
|
shell.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@menushell: the object which received the signal.
|
|
|
|
|
2005-03-31 17:04:27 +00:00
|
|
|
<!-- ##### ARG GtkMenuShell:take-focus ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
1999-08-16 18:51:52 +00:00
|
|
|
<!-- ##### FUNCTION gtk_menu_shell_append ##### -->
|
|
|
|
<para>
|
|
|
|
Adds a new #GtkMenuItem to the end of the menu shell's item list.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@menu_shell: a #GtkMenuShell.
|
|
|
|
@child: The #GtkMenuItem to add.
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_menu_shell_prepend ##### -->
|
|
|
|
<para>
|
|
|
|
Adds a new #GtkMenuItem to the beginning of the menu shell's item list.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@menu_shell: a #GtkMenuShell.
|
|
|
|
@child: The #GtkMenuItem to add.
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_menu_shell_insert ##### -->
|
|
|
|
<para>
|
|
|
|
Adds a new #GtkMenuItem to the menu shell's item list at the position
|
|
|
|
indicated by @position.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@menu_shell: a #GtkMenuShell.
|
|
|
|
@child: The #GtkMenuItem to add.
|
|
|
|
@position: The position in the item list where @child is added.
|
|
|
|
Positions are numbered from 0 to n-1.
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_menu_shell_deactivate ##### -->
|
|
|
|
<para>
|
|
|
|
Deactivates the menu shell. Typically this results in the menu shell
|
|
|
|
being erased from the screen.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@menu_shell: a #GtkMenuShell.
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_menu_shell_select_item ##### -->
|
|
|
|
<para>
|
|
|
|
Selects the menu item from the menu shell.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@menu_shell: a #GtkMenuShell.
|
|
|
|
@menu_item: The #GtkMenuItem to select.
|
|
|
|
|
|
|
|
|
Documentation fixes.
Sun Oct 13 18:50:14 2002 Soeren Sandmann <sandmann@daimi.au.dk>
* gtkmenu.c, gtkmenu.sgml, gtkitemfactory.c, gdkwindow.c,
gtkwindow.c, gtkpaned.sgml, gtkdialog.c, gtkbox.h, gtkbutton.sgml,
gtktreemodel.sgml,gtktable.sgml, gtktable.c:
Documentation fixes.
#85719, #90759, #95169, Owen Taylor;
#89221, Yao Zhang, Matthias Clasen;
#95592, Joost Faassen;
#92637, Vitaly Tishkov;
#94616, Ben Martin;
#94772, sbaillie@bigpond.net.au;
2002-10-13 17:17:14 +00:00
|
|
|
<!-- ##### FUNCTION gtk_menu_shell_select_first ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@menu_shell:
|
|
|
|
@search_sensitive:
|
|
|
|
|
|
|
|
|
2000-09-07 18:17:06 +00:00
|
|
|
<!-- ##### FUNCTION gtk_menu_shell_deselect ##### -->
|
|
|
|
<para>
|
2001-10-28 21:15:36 +00:00
|
|
|
Deselects the currently selected item from the menu shell, if any.
|
2000-09-07 18:17:06 +00:00
|
|
|
</para>
|
|
|
|
|
2001-10-29 20:43:01 +00:00
|
|
|
@menu_shell: a #GtkMenuShell.
|
2000-09-07 18:17:06 +00:00
|
|
|
|
|
|
|
|
1999-08-16 18:51:52 +00:00
|
|
|
<!-- ##### FUNCTION gtk_menu_shell_activate_item ##### -->
|
|
|
|
<para>
|
|
|
|
Activates the menu item within the menu shell.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@menu_shell: a #GtkMenuShell.
|
|
|
|
@menu_item: The #GtkMenuItem to activate.
|
|
|
|
@force_deactivate: If TRUE, force the deactivation of the menu shell
|
|
|
|
after the menu item is activated.
|
|
|
|
|
|
|
|
|
2004-01-22 06:48:20 +00:00
|
|
|
<!-- ##### FUNCTION gtk_menu_shell_cancel ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@menu_shell:
|
|
|
|
|
|
|
|
|
2005-03-31 17:04:27 +00:00
|
|
|
<!-- ##### FUNCTION gtk_menu_shell_set_take_focus ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@menu_shell:
|
|
|
|
@take_focus:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_menu_shell_get_take_focus ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@menu_shell:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
1999-08-16 18:51:52 +00:00
|
|
|
<!-- ##### ENUM GtkMenuDirectionType ##### -->
|
|
|
|
<para>
|
|
|
|
An enumeration representing directional movements within a menu.
|
|
|
|
</para>
|
|
|
|
|
2008-12-28 06:59:23 +00:00
|
|
|
@GTK_MENU_DIR_PARENT: To the parent menu shell.
|
|
|
|
@GTK_MENU_DIR_CHILD: To the submenu, if any, associated with the item.
|
|
|
|
@GTK_MENU_DIR_NEXT: To the next menu item.
|
|
|
|
@GTK_MENU_DIR_PREV: To the previous menu item.
|
1999-08-16 18:51:52 +00:00
|
|
|
|