From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Maxime Devos Newsgroups: gmane.lisp.guile.user Subject: Re: guile_gi question: gtk+ interface object? Date: Wed, 15 Jun 2022 09:48:47 +0200 Message-ID: <58db563eba9d28bb55b0358ac076c2e445b7be76.camel@telenet.be> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-hHiJvQS52U1DURrAeIqE" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20669"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Evolution 3.38.3-1 Cc: guile-user@gnu.org To: Andy Tai Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Wed Jun 15 09:50:42 2022 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o1NnV-0005AD-Pn for guile-user@m.gmane-mx.org; Wed, 15 Jun 2022 09:50:41 +0200 Original-Received: from localhost ([::1]:60070 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o1NnT-0006Bl-TT for guile-user@m.gmane-mx.org; Wed, 15 Jun 2022 03:50:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59622) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o1Nlv-0006BY-2Z for guile-user@gnu.org; Wed, 15 Jun 2022 03:49:03 -0400 Original-Received: from michel.telenet-ops.be ([2a02:1800:110:4::f00:18]:45796) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o1Nls-00061Z-Id for guile-user@gnu.org; Wed, 15 Jun 2022 03:49:02 -0400 Original-Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by michel.telenet-ops.be with bizsmtp id jKov2700P4UW6Th06KovKA; Wed, 15 Jun 2022 09:48:56 +0200 In-Reply-To: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1655279336; bh=U3KfV1cZObF0/pBi+AoUfEs0bjIVzBBDTSR6S96QMP0=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=ZxFAzrXO00vjSLOF9GTj2PJXjB/MNHlR1a7OweTQE2cti6rfKDmKtwGgk/Gogm9v0 RTF4lXj48VfLCPJHPisAHIheMxm5LgAtkYyOa7r2+lt/uEdxFsBBmWy5SoPfsqJIna rXeO6C5RJBRFcMT0qBug+o3gTXzhRvmeObMM3XL9BZF1PvlZDd82CVxfmC33OuD3ap rejcWe8NYEZ+SkwNPGCm3IR1U4g+Tvto2GDCYQqhOVezwtWIzSsU/jY60movhGHwYm TVrRZzsJea/bRFUcD69I/NlbETjcFvzu0B2rRYyAcNpNhPWCpcd/dZL5gahL8dyezz ivgtJX5WN7XtQ== Received-SPF: pass client-ip=2a02:1800:110:4::f00:18; envelope-from=maximedevos@telenet.be; helo=michel.telenet-ops.be X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:18311 Archived-At: --=-hHiJvQS52U1DURrAeIqE Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Andy Tai schreef op di 14-06-2022 om 21:05 [-0700]: > (let ((iter (make )) > =C2=A0(model (make ))) > (define selected (tree-selection:get-selected! selection model iter)) >=20 > get_selected(GtkTreeModel out model, GtkTreeeIter out iter) has two > out parameters, model and iter, Looking at=20 , on the Scheme level the output parameters would be converted to return valu= es, so the API would be (receive (selected iter model) (tree-selection:get-selected selection) ; or=20 [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 incorrectl= y doesn't convert it to a return value or something? Greetings, Maxime. --=-hHiJvQS52U1DURrAeIqE Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYqmO3xccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7lB9AQCAQkykaIHAw17qn1Z4ZVSVCLjY f881oMFglY2l2riyrwEA+rv/i3ERBb/k70OMIc46aE+mFc0KtjFeSKNCv1Fl0gs= =PiF/ -----END PGP SIGNATURE----- --=-hHiJvQS52U1DURrAeIqE--