123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657(**************************************************************************)(* 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$ *)openStdLabelsopenGauxopenGobjectopenGtkopenTagsopenGtkEditPropsopenGtkBasemoduleEditable=structincludeEditableletmarshal_insertfargv=matchList.tl(Closure.get_argsargv)with|`STRING_::`INTlen::`POINTER(Somep)::_->(* XXX These two accesses are implementation-dependent *)lets=Gpointer.peek_string(Closure.get_pointerargv~pos:1)~lenandpos=ref(Gpointer.peek_intp)in(fs~pos:unit);Gpointer.poke_intp!pos|_->invalid_arg"GtkEdit.Editable.marshal_insert"let()=Internal.marshal_insert:=marshal_insertendmoduleEntry=EntrymoduleSpinButton=structincludeSpinButtonletget_value_as_intw=truncate(floor(getP.valuew+.0.5))endmoduleComboBox=GtkEditProps.ComboBoxmoduleComboBoxText=GtkEditProps.ComboBoxTextmoduleEntryCompletion=GtkEditProps.EntryCompletion