From: Luis Felipe <luis.felipe.la@protonmail.com>
To: "guile-user@gnu.org" <guile-user@gnu.org>
Subject: Guile-GI: <GSimpleAction>: Setting parameter type to None or NULL
Date: Sun, 25 Apr 2021 19:36:04 +0000 [thread overview]
Message-ID: <ySxuTkiBL72WT4KC7lZuVdFoHGihHS1ceTunvPRZIsihIv8BbXuU6-AGMjZNvsJyotnSu1_u0ci85aEO7Z_0oVx-rFM6d9QeXUpOQ3rmNAM=@protonmail.com> (raw)
Hello again,
I want to add actions to an application but I can't seem to find the correct value to indicate that no parameter should be passed to a handler.
In Python, for example, I do this:
action = Gio.SimpleAction.new("about", None)
In Guile, I'm doing it like this for now:
(let [(action (make «GSimpleAction» #:name "about"))
...]
...)
But what I need to indicate is:
(make «GSimpleAction» #:name "about" #:parameter-type None)
So what's the equivalent to None in Guile?
Any help is very welcome,
---
Luis Felipe López Acevedo
https://luis-felipe.gitlab.io/
next reply other threads:[~2021-04-25 19:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-25 19:36 Luis Felipe [this message]
2021-04-25 20:44 ` Guile-GI: <GSimpleAction>: Setting parameter type to None or NULL Mike Gran
2021-04-25 21:47 ` Luis Felipe
2021-04-26 0:16 ` Mike Gran
2021-04-26 1:40 ` Luis Felipe
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='ySxuTkiBL72WT4KC7lZuVdFoHGihHS1ceTunvPRZIsihIv8BbXuU6-AGMjZNvsJyotnSu1_u0ci85aEO7Z_0oVx-rFM6d9QeXUpOQ3rmNAM=@protonmail.com' \
--to=luis.felipe.la@protonmail.com \
--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).