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