guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: guile_gi question: gtk+ interface object?


From: Maxime Devos
Subject: Re: guile_gi question: gtk+ interface object?
Date: Wed, 15 Jun 2022 09:48:47 +0200
User-agent: Evolution 3.38.3-1

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.

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

[Prev in Thread] Current Thread [Next in Thread]