unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: David Pirotte <david@altosw.be>
To: Michele Lindroos <keelefi@gmail.com>
Cc: guile-user@gnu.org
Subject: Re: G-Golf - Help with ListView needed
Date: Mon, 6 Mar 2023 19:09:39 -0300	[thread overview]
Message-ID: <20230306190939.49a8085e@aicha> (raw)
In-Reply-To: <CAEvXz3RvQ+ssbFPbHj3VCcRrpVR6fv6HwLLdeYxtv4ZT7w2FzQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 821 bytes --]

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 <the-class> #: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 <gtk-string-list> #: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 <a-class> #:prop-name prop-value ...)

Cheers,
David

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

  reply	other threads:[~2023-03-06 22:09 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-04  9:09 G-Golf - Help with ListView needed Michele Lindroos
2023-03-05  2:35 ` David Pirotte
2023-03-06  4:07 ` David Pirotte
2023-03-06 15:50   ` Michele Lindroos
2023-03-06 22:09     ` David Pirotte [this message]
2023-03-07 18:55       ` Michele Lindroos
2023-03-09 22:08         ` David Pirotte

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=20230306190939.49a8085e@aicha \
    --to=david@altosw.be \
    --cc=guile-user@gnu.org \
    --cc=keelefi@gmail.com \
    /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).