add brief explanation of how to use GtkOptionMenu
2001-12-01 Havoc Pennington <hp@pobox.com> * gtk/tmpl/gtkoptionmenu.sgml: add brief explanation of how to use GtkOptionMenu
This commit is contained in:
committed by
Havoc Pennington
parent
8a6a8e914c
commit
e57211cb1b
@@ -1,3 +1,8 @@
|
||||
2001-12-01 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* gtk/tmpl/gtkoptionmenu.sgml: add brief explanation of how to use
|
||||
GtkOptionMenu
|
||||
|
||||
2001-11-30 Matthias Clasen <matthiasc@poet.de>
|
||||
|
||||
* gdk/tmpl/colors.sgml, gdk/tmpl/pixmaps.sgml, gdk/tmpl/dnd.sgml,
|
||||
|
||||
@@ -12,6 +12,16 @@ 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 ##### -->
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user