From: Maxime Devos <maximedevos@telenet.be>
To: Andy Tai <atai@atai.org>
Cc: guile-user@gnu.org
Subject: Re: guile_gi question: gtk+ interface object?
Date: Wed, 15 Jun 2022 09:48:47 +0200 [thread overview]
Message-ID: <58db563eba9d28bb55b0358ac076c2e445b7be76.camel@telenet.be> (raw)
In-Reply-To: <CAJsg1E-1TpFay5EU3043cEdcv1BXs1dt4JPS8y_=1OW+Evd79Q@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 838 bytes --]
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 #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]
next prev parent reply other threads:[~2022-06-15 7:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-14 18:52 guile_gi question: gtk+ interface object? Andy Tai
2022-06-14 19:42 ` Maxime Devos
2022-06-15 4:05 ` Andy Tai
2022-06-15 7:48 ` Maxime Devos [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-06-14 18:46 Andy Tai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=58db563eba9d28bb55b0358ac076c2e445b7be76.camel@telenet.be \
--to=maximedevos@telenet.be \
--cc=atai@atai.org \
--cc=guile-user@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).