Commit e57211cb authored by Havoc Pennington's avatar Havoc Pennington Committed by Havoc Pennington

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
parent 8a6a8e91
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 ##### -->
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment