From: Luis Felipe <luis.felipe.la@protonmail.com>
To: Mike Gran <spk121@yahoo.com>
Cc: "guile-user@gnu.org" <guile-user@gnu.org>
Subject: Re: Guile-GI: <GSimpleAction>: Setting parameter type to None or NULL
Date: Sun, 25 Apr 2021 21:47:58 +0000 [thread overview]
Message-ID: <G0US9Vod_sCy5sSg6wRXIxZ3XRM-lCm_cwn0huRPd3dLw9PgStbHKO5gQnAbsoVvXmqgEsb5YGXg6eMZpQeEIepZIB94qDnKYfShV4P3kjE=@protonmail.com> (raw)
In-Reply-To: <20210425204459.GA2644511@spikycactus.com>
On Sunday, April 25, 2021 8:44 PM, Mike Gran <spk121@yahoo.com> wrote:
> In this form, you'd do the following. Leaving out the #:parameter-type
> from the constructor sets it to to its default of what Python would
> call None.
>
> (make <GSimpleAction> #:name "about")
Thanks for checking, Mike. I'm actually doing this (omitting #:parameter-type), but then, when I run the application and interact with something in the GUI that should trigger an action, I get the following error, and the appropriate callbacks are never run:
Backtrace:
In ice-9/boot-9.scm:
1736:10 7 (with-exception-handler _ _ #:unwind? _ # _)
In unknown file:
6 (apply-smob/0 #<thunk 7f367913fd20>)
In ice-9/boot-9.scm:
718:2 5 (call-with-prompt _ _ #<procedure default-prompt-handle…>)
In ice-9/eval.scm:
619:8 4 (_ #(#(#<directory (guile-user) 7f3679139c80>)))
In ice-9/boot-9.scm:
2806:4 3 (save-module-excursion _)
4351:12 2 (_)
In geteka.scm:
153:8 1 (_)
In unknown file:
0 (application:run #<<GtkApplication> 7f367819b5e0> ("ge…"))
ERROR: In procedure application:run:
In procedure gig_value_to_scm: unknown type "GVariant"
I thought that maybe this could be related to not specifying #:paramenter-type... So I don't understand what I'm doing wrong. This is the application I'm trying to write:
https://gitlab.com/luis-felipe/geteka/-/blob/master/geteka.scm
The actions and connections are defined in the "app:activate" and "app:startup" procedures.
next prev parent reply other threads:[~2021-04-25 21:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-25 19:36 Guile-GI: <GSimpleAction>: Setting parameter type to None or NULL Luis Felipe
2021-04-25 20:44 ` Mike Gran
2021-04-25 21:47 ` Luis Felipe [this message]
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='G0US9Vod_sCy5sSg6wRXIxZ3XRM-lCm_cwn0huRPd3dLw9PgStbHKO5gQnAbsoVvXmqgEsb5YGXg6eMZpQeEIepZIB94qDnKYfShV4P3kjE=@protonmail.com' \
--to=luis.felipe.la@protonmail.com \
--cc=guile-user@gnu.org \
--cc=spk121@yahoo.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).