It turns out if I store the data as strings, editing will work as expected.<br>With this definition of *items*:<br><br><div class="gmail_quote">(defparameter *items*<br><div> (list (make-be 'listbox-test-item<br> :position (prin1-to-string (coerce (random 20) 'double-float)) <br>
:curvature (prin1-to-string (coerce (random 20) 'double-float)))<br> (make-be 'listbox-test-item<br> :position (prin1-to-string (coerce (random 20) 'double-float)) <br> :curvature (prin1-to-string (coerce (random 20) 'double-float)))))<br>
<br>and the following change to :columns<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">(let ((top (find-widget :mk-top)))<br> (setf<br>
(kids top)<br> (list <br> (mk-vbox<br> :fm-parent top<br> :kids <br> (kids-list?<br> (mk-listbox :md-name :listbox<br> :selection-mode :single<br> :columns (def-columns<br> (:double (:title "Position") (lambda (node) '(:editable t)))<br>
(:double (:title "Curvature")))<br></blockquote><div> :columns (def-columns<br> (:string (:title "Position") #'(lambda (node) '(:editable t)))<br> (:string (:title "Curvature")))</div>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> :items *items*<br> :print-fn (lambda (item)<br> (list (position$ item)<br>
(curvature$ item)))<br> :on-edit (lambda (node col new-val)<br>
(format t "~a~%" (list node col new-val)))))))))<br></blockquote><div> <br>The output looks like this:<br><br></div></div>"----------UTILSRESET----------------------------------" <br>
0> c-link> query link :mk-top cells-store1 nil<br>0> overwriting item :listbox listbox<br>* <br>(<unknown>:6092): Gtk-CRITICAL **: gtk_tree_store_set_value: assertion `GTK_IS_TREE_STORE (tree_store)' failed<br>
(#<LISTBOX-TEST-ITEM {C474379}> 0 8.0d0)<br><br>(<unknown>:6092): Gtk-CRITICAL **: gtk_tree_store_set_value: assertion `GTK_IS_TREE_STORE (tree_store)' failed<br>(#<LISTBOX-TEST-ITEM {C474379}> 0 8.0d30)<br>
<br><br>--<br>Martin Kielhorn<br>Randall Division of Cell & Molecular Biophysics<br>King's College London, New Hunt's House<br>Guy's Campus, London SE1 1UL, U.K.<br>tel: +44 (0) 207 848 6519, fax: +44 (0) 207 848 6435<br>