1999-08-16 18:51:52 +00:00
|
|
|
<!-- ##### SECTION Title ##### -->
|
|
|
|
GtkMenuItem
|
|
|
|
|
|
|
|
<!-- ##### SECTION Short_Description ##### -->
|
2000-02-28 21:39:41 +00:00
|
|
|
the widget used for item in menus
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
<!-- ##### SECTION Long_Description ##### -->
|
|
|
|
<para>
|
2000-02-28 21:39:41 +00:00
|
|
|
The #GtkMenuItem widget and the derived widgets are the only valid
|
|
|
|
childs for menus. Their function is to correctly handle highlighting,
|
|
|
|
alignment, events and submenus.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
As it derives from #GtkBin it can hold any valid child widget, altough
|
|
|
|
only a few are really useful.
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### SECTION See_Also ##### -->
|
|
|
|
<para>
|
2000-02-28 21:39:41 +00:00
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term>#GtkBin</term>
|
|
|
|
<listitem><para>for how to handle the child.</para></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term>#GtkItem</term>
|
|
|
|
<listitem><para>is the abstract class for all sorts of items.</para></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
2000-02-29 18:43:54 +00:00
|
|
|
<term>#GtkMenuShell</term>
|
2000-02-28 21:39:41 +00:00
|
|
|
<listitem><para>is always the parent of #GtkMenuItem.</para></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### STRUCT GtkMenuItem ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_menu_item_new ##### -->
|
|
|
|
<para>
|
2000-02-28 21:39:41 +00:00
|
|
|
Creates a new #GtkMenuItem.
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
2000-02-28 21:39:41 +00:00
|
|
|
@Returns: the newly created #GtkMenuItem
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_menu_item_new_with_label ##### -->
|
|
|
|
<para>
|
2000-02-28 21:39:41 +00:00
|
|
|
Creates a new #GtkMenuItem whose child is a simple #GtlLabel.
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
2000-02-28 21:39:41 +00:00
|
|
|
@label: the text for the label
|
|
|
|
@Returns: the newly created #GtkMenuItem
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_menu_item_set_submenu ##### -->
|
|
|
|
<para>
|
2000-02-28 21:39:41 +00:00
|
|
|
Sets the widget submenu, or changes it.
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
2000-02-28 21:39:41 +00:00
|
|
|
@menu_item: the menu item widget
|
|
|
|
@submenu: the submenu
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_menu_item_remove_submenu ##### -->
|
|
|
|
<para>
|
2000-02-28 21:39:41 +00:00
|
|
|
Removes the widget's submenu.
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
2000-02-28 21:39:41 +00:00
|
|
|
@menu_item: the menu item widget
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_menu_item_set_placement ##### -->
|
|
|
|
<para>
|
2000-02-28 21:39:41 +00:00
|
|
|
Specifies the placement of the submenu around the menu item. The placement
|
|
|
|
is usually #GTK_LEFT_RIGHT for menu items in a popup menu and
|
|
|
|
#GTK_TOP_BOTTOM in menu bars.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
This function is useless in usual applications.
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
2000-02-28 21:39:41 +00:00
|
|
|
@menu_item: the menu item
|
|
|
|
@placement: the submenu placement
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_menu_item_configure ##### -->
|
|
|
|
<para>
|
2000-02-28 21:39:41 +00:00
|
|
|
Sets whether the menu item should show a submenu indicator, which is a right
|
|
|
|
arrow.
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
2000-02-28 21:39:41 +00:00
|
|
|
@menu_item: the menu item
|
|
|
|
@show_toggle_indicator: unused
|
|
|
|
@show_submenu_indicator: whether to show the arrow or not
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_menu_item_select ##### -->
|
|
|
|
<para>
|
2000-02-28 21:39:41 +00:00
|
|
|
Emits the "select" signal on the given item. Behaves exactly like
|
|
|
|
#gtk_item_select.
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
2000-02-28 21:39:41 +00:00
|
|
|
@menu_item: the menu item
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_menu_item_deselect ##### -->
|
|
|
|
<para>
|
2000-02-28 21:39:41 +00:00
|
|
|
Emits the "deselect" signal on the given item. Behaves exactly like
|
|
|
|
#gtk_item_deselect.
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
2000-02-28 21:39:41 +00:00
|
|
|
@menu_item: the menu item
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_menu_item_activate ##### -->
|
|
|
|
<para>
|
2000-02-28 21:39:41 +00:00
|
|
|
Emits the "activate" signal on the given item
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
2000-02-28 21:39:41 +00:00
|
|
|
@menu_item: the menu item
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
2000-11-14 16:36:20 +00:00
|
|
|
<!-- ##### FUNCTION gtk_menu_item_toggle_size_request ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@menu_item:
|
|
|
|
@requisition:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_menu_item_toggle_size_allocate ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@menu_item:
|
|
|
|
@allocation:
|
|
|
|
|
|
|
|
|
1999-08-16 18:51:52 +00:00
|
|
|
<!-- ##### FUNCTION gtk_menu_item_right_justify ##### -->
|
|
|
|
<para>
|
2000-02-28 21:39:41 +00:00
|
|
|
Sets the menu item to be right-justified. Only useful for menu bars.
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
2000-02-28 21:39:41 +00:00
|
|
|
@menu_item: the menu item
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### SIGNAL GtkMenuItem::activate ##### -->
|
|
|
|
<para>
|
2000-02-28 21:39:41 +00:00
|
|
|
Emitted when the item is activated.
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
@menuitem: the object which received the signal.
|
|
|
|
|
|
|
|
<!-- ##### SIGNAL GtkMenuItem::activate-item ##### -->
|
|
|
|
<para>
|
2000-02-28 21:39:41 +00:00
|
|
|
Emitted when the item is activated, but also if the menu item has a
|
|
|
|
submenu. For normal applications, the relevant signal is "activate".
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
@menuitem: the object which received the signal.
|
|
|
|
|
2000-11-14 16:36:20 +00:00
|
|
|
<!-- ##### SIGNAL GtkMenuItem::toggle-size-allocate ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@menuitem: the object which received the signal.
|
|
|
|
@arg1:
|
|
|
|
|
|
|
|
<!-- ##### SIGNAL GtkMenuItem::toggle-size-request ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@menuitem: the object which received the signal.
|
|
|
|
@arg1:
|
|
|
|
|