From 7d9ac6ec4b732c0628d84ae9531b0ac305977b43 Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Thu, 11 May 2006 18:14:15 +0000 Subject: [PATCH] Patch from islandjoe@gmail.com svn path=/trunk/gtk-sharp/; revision=60602 --- doc/en/Gtk/MenuItem.xml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/doc/en/Gtk/MenuItem.xml b/doc/en/Gtk/MenuItem.xml index 159bc0a92..75e244a43 100644 --- a/doc/en/Gtk/MenuItem.xml +++ b/doc/en/Gtk/MenuItem.xml @@ -142,7 +142,23 @@ Sets or obtains the widget submenu. A submenu for this menu item, or if none. - + + + +// A container: +Menu mnuFile = new Menu(); + // An item +MenuItem itmFile = new MenuItem ("_File"); + +// Add the item into the container: +itmFile.Submenu = mnuFile; +// + +// Add the newly-created File menu into the menubar: +menuBar.Add (itmFile); + + + @@ -344,4 +360,4 @@ - + \ No newline at end of file