From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: David Pirotte Newsgroups: gmane.lisp.guile.user Subject: Re: G-Golf - Help with ListView needed Date: Mon, 6 Mar 2023 19:09:39 -0300 Message-ID: <20230306190939.49a8085e@aicha> References: <20230306010758.454a9bb1@aicha> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/gVZMReS=F8b+1RkgD+e5HI_"; protocol="application/pgp-signature"; micalg=pgp-sha512 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25492"; mail-complaints-to="usenet@ciao.gmane.io" Cc: guile-user@gnu.org To: Michele Lindroos Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Mon Mar 06 23:10:35 2023 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 1pZJ2N-0006Ru-Mt for guile-user@m.gmane-mx.org; Mon, 06 Mar 2023 23:10:31 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pZJ21-0007EW-2j; Mon, 06 Mar 2023 17:10:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pZJ1z-0007EI-2u for guile-user@gnu.org; Mon, 06 Mar 2023 17:10:07 -0500 Original-Received: from moses.all2all.org ([79.99.200.14]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pZJ1v-0008Gm-9h for guile-user@gnu.org; Mon, 06 Mar 2023 17:10:05 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by moses.all2all.org (Postfix) with ESMTP id C5AB067C007E; Mon, 6 Mar 2023 23:09:58 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at moses.all2all.org Original-Received: from moses.all2all.org ([127.0.0.1]) by localhost (moses.all2all.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id y_5yWuKaOmIA; Mon, 6 Mar 2023 23:09:47 +0100 (CET) Original-Received: from aicha (unknown [179.210.48.245]) by moses.all2all.org (Postfix) with ESMTPSA id 3E35567C007B; Mon, 6 Mar 2023 23:09:45 +0100 (CET) In-Reply-To: X-Mailer: Claws Mail 4.1.1 (GTK 3.24.36; x86_64-pc-linux-gnu) Received-SPF: pass client-ip=79.99.200.14; envelope-from=david@altosw.be; helo=moses.all2all.org X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-bounces+guile-user=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.user:18926 Archived-At: --Sig_/gVZMReS=F8b+1RkgD+e5HI_ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi Michele, > Thank you so much, it works perfectly now! Great. I have to correct what I said, about how/when(or when not) one can create a GObject (sub)class instance calling (make #:prop-name prop-value ...) [ which internally calls g_object_new_with_properties ... In this particular situation, the property exists since 4.10, but most distributions still have 4.8.xx ... As soon as you have access to gtk 4.10 or later, you may revert your code to use the prefered scheme idiomatic way (make #:strings '("one" "two" "three" "four")) Forget about what I wrote about the prop flags, 'Construct-only' ... when the property exists, you may always (and should) use instance creation mechanism: (make #:prop-name prop-value ...) Cheers, David --Sig_/gVZMReS=F8b+1RkgD+e5HI_ Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEhCJlRZtBM3furJHe83T9k6MFetcFAmQGZKMACgkQ83T9k6MF etfpowgAxMZy1qcZP5WC9lOC5BPo5pD6dduGsLeX+JmPJxcqOXWSSr+pPaNexSV5 b/GrMAfsnfwqU0Fomy/LLuvqPLvjFRGxMkKQN0j/v3FVNd3kqyuRENF3Rrpd3cyO 38X/n125kkfbb6h3+4wFOtlKCXa+VdVP8Ks53f49Q+uHK6XzB6SjAwZtRRKtxjTp oqwPbWljT99SabhIDki1NyCU6IS53lmME0GY80+1Pumtz8IuiElEA25a80FG8NK1 zf2DoaeRbSF3pylTk2Gxb9vllUAneJq7wzVGx5RHqL4lAz3f79uH56+K98dl7ODW PMj5e2c8EPx2YYrm0FNe9JBcFIZB5g== =vRL/ -----END PGP SIGNATURE----- --Sig_/gVZMReS=F8b+1RkgD+e5HI_--