[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Guile-GI: <GSimpleAction>: Setting parameter type to None or NULL
From: |
Mike Gran |
Subject: |
Re: Guile-GI: <GSimpleAction>: Setting parameter type to None or NULL |
Date: |
Sun, 25 Apr 2021 17:16:19 -0700 |
On Sun, Apr 25, 2021 at 09:47:58PM +0000, Luis Felipe wrote:
> 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"
Well, um, the truth is that the conversion of values of type GVariant
to SCM was never implemented. I went ahead and made that fix and
pushed it into guile-gi master branch. With the fix (and after
importing TextBuffer and TextView) clicking on "Say hello!" does set
the main window to "hello" which I believe is what is intended.
Unforunately it may take time to write the unit test and then get a
new guile-gi release over to Guix.
Apologies,
Mike