12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788(**************************************************************************)(* Lablgtk *)(* *)(* This program is free software; you can redistribute it *)(* and/or modify it under the terms of the GNU Library General *)(* Public License as published by the Free Software Foundation *)(* version 2, with the exception described in file COPYING which *)(* comes with the library. *)(* *)(* This program is distributed in the hope that it will be useful, *)(* but WITHOUT ANY WARRANTY; without even the implied warranty of *)(* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *)(* GNU Library General Public License for more details. *)(* *)(* You should have received a copy of the GNU Library General *)(* Public License along with this program; if not, write to the *)(* Free Software Foundation, Inc., 59 Temple Place, Suite 330, *)(* Boston, MA 02111-1307 USA *)(* *)(* *)(**************************************************************************)(* $Id$ *)openGauxopenGobjectopenGtkopenGtkMenuPropsopenGtkBasemoduleMenuItem=structincludeMenuItemexternalcreate_with_label:string->menu_itemobj="ml_gtk_menu_item_new_with_label"externalcreate_with_mnemonic:string->menu_itemobj="ml_gtk_menu_item_new_with_mnemonic"externalseparator_create:unit->menu_itemobj="ml_gtk_separator_menu_item_new"letcreate?(use_mnemonic=false)?label()=matchlabelwithNone->create[]|Somelabel->ifuse_mnemonicthencreate_with_mnemoniclabelelsecreate_with_labellabelendmoduleCheckMenuItem=structincludeCheckMenuItemexternalcreate_with_label:string->check_menu_itemobj="ml_gtk_check_menu_item_new_with_label"externalcreate_with_mnemonic:string->check_menu_itemobj="ml_gtk_check_menu_item_new_with_mnemonic"letcreate?(use_mnemonic=false)?label()=matchlabelwithNone->create[]|Somelabel->ifuse_mnemonicthencreate_with_mnemoniclabelelsecreate_with_labellabelletset?activew=mayactive~f:(setP.activew)endmoduleRadioMenuItem=structincludeRadioMenuItemexternalcreate:radio_menu_itemgroup->radio_menu_itemobj="ml_gtk_radio_menu_item_new"externalcreate_with_label:radio_menu_itemgroup->string->radio_menu_itemobj="ml_gtk_radio_menu_item_new_with_label"externalcreate_with_mnemonic:radio_menu_itemgroup->string->radio_menu_itemobj="ml_gtk_radio_menu_item_new_with_mnemonic"letcreate?(group=None)?(use_mnemonic=false)?label()=matchlabelwithNone->creategroup|Somelabel->ifuse_mnemonicthencreate_with_mnemonicgrouplabelelsecreate_with_labelgrouplabelendmoduleMenuShell=MenuShellmoduleMenu=structincludeMenuletpopup?parent_menu?parent_itemw=popupw(Gpointer.optboxedparent_menu)(Gpointer.optboxedparent_item)letset?active?accel_groupw=mayactive~f:(set_activew);mayaccel_group~f:(set_accel_groupw)endmoduleMenuBar=MenuBar