
Thu Oct 23 21:55:10 2003 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtktoolbar.c (gtk_toolbar_highlight_drop_location): Make this function take an index and a GtkToolItem. * tests/testtoolbar.c (main): Make "Show Arrow" default to true. Make one of the separators !draw and expand. Update for new highlight_drop_location() API. * gtk/gtktoolitem.[ch]: Remove "pack_end" property * gtk/gtktoolbar.h: Formatting fixes. * gtk/gtktoolbar.c: Remove "pack_end" child property. Allow separator tool items to expand. (logical_to_physical, physical_to_logical): Fix off-by-one errors (Fix #125472, Marco Pesenti Gritti) * gtk/gtkseparatortoolitem.[ch]: Add new "draw" property. (gtk_separator_tool_item_expose) only draw if "draw" is TRUE. Also return FALSE, not TRUE. (gtk_separator_too_item_{set|get}_property, (gtk_separator_tool_item_{set|get}_draw): new functions
113 lines
2.6 KiB
Plaintext
113 lines
2.6 KiB
Plaintext
<!-- ##### SECTION Title ##### -->
|
|
GtkOptionMenu
|
|
|
|
<!-- ##### SECTION Short_Description ##### -->
|
|
a widget used to choose from a list of valid choices.
|
|
|
|
<!-- ##### SECTION Long_Description ##### -->
|
|
<para>
|
|
A #GtkOptionMenu is a widget that allows the user to choose from a
|
|
list of valid choices. The #GtkOptionMenu displays the selected
|
|
choice. When activated the #GtkOptionMenu displays a popup #GtkMenu
|
|
which allows the user to make a new choice.
|
|
</para>
|
|
|
|
<para>
|
|
Using a #GtkOptionMenu is simple; build a #GtkMenu, by calling
|
|
gtk_menu_new(), then appending menu items to it with
|
|
gtk_menu_shell_append(). Set that menu on the option menu
|
|
with gtk_option_menu_set_menu(). Set the selected menu item with
|
|
gtk_option_menu_set_history(); connect to the "changed" signal on
|
|
the option menu; in the "changed" signal, check the new selected
|
|
menu item with gtk_option_menu_get_history().
|
|
</para>
|
|
|
|
<!-- ##### SECTION See_Also ##### -->
|
|
|
|
|
|
<!-- ##### STRUCT GtkOptionMenu ##### -->
|
|
<para>
|
|
The #GtkOptionMenu-struct struct contains private data only, and
|
|
should be accessed using the functions below.
|
|
</para>
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_option_menu_new ##### -->
|
|
<para>
|
|
Creates a new #GtkOptionMenu.
|
|
</para>
|
|
|
|
@Returns: a new #GtkOptionMenu.
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_option_menu_get_menu ##### -->
|
|
<para>
|
|
Returns the #GtkMenu associated with the #GtkOptionMenu.
|
|
</para>
|
|
|
|
@option_menu: a #GtkOptionMenu.
|
|
@Returns: the #GtkMenu associated with the #GtkOptionMenu.
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_option_menu_set_menu ##### -->
|
|
<para>
|
|
Provides the #GtkMenu that is popped up to allow the user to choose
|
|
a new value. You should provide a simple menu avoiding the
|
|
use of tearoff menu items, submenus, and accelerators.
|
|
</para>
|
|
|
|
@option_menu: a #GtkOptionMenu.
|
|
@menu: the #GtkMenu to associate with the #GtkOptionMenu.
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_option_menu_remove_menu ##### -->
|
|
<para>
|
|
Removes the menu from the option menu.
|
|
</para>
|
|
|
|
@option_menu: a #GtkOptionMenu.
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_option_menu_set_history ##### -->
|
|
<para>
|
|
Selects the menu item specified by @index_ making it the newly
|
|
selected value for the option menu.
|
|
</para>
|
|
|
|
@option_menu: a #GtkOptionMenu.
|
|
@index_: the index of the menu item to select. Index values are from
|
|
0 to n-1.
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_option_menu_get_history ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@option_menu:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### SIGNAL GtkOptionMenu::changed ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@optionmenu: the object which received the signal.
|
|
|
|
<!-- ##### ARG GtkOptionMenu:menu ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
<!-- ##### ARG GtkOptionMenu:indicator-size ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
<!-- ##### ARG GtkOptionMenu:indicator-spacing ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|