Andy Tai schreef op di 14-06-2022 om 21:05 [-0700]: > (let ((iter (make <GtkTreeIter>)) > (model (make <GtkTreeModel>))) > (define selected (tree-selection:get-selected! selection model iter)) > > get_selected(GtkTreeModel out model, GtkTreeeIter out iter) has two > out parameters, model and iter,
Looking at <https://spk121.github.io/guile-gi/Function-Parameters-Arity-and-Return-Values.html>, on the Scheme level the output parameters would be converted to return values, so the API would be (receive (selected iter model) (tree-selection:get-selected selection) ; or [do things with iter and iter and model]) Doesn't seem to work though -- looking at (generic-function-methods tree-selection:get-selected), Guile-GI incorrectly doesn't convert it to a return value or something? Greetings, Maxime.
signature.asc
Description: This is a digitally signed message part