guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Guile-GI: <GSimpleAction>: Setting parameter type to None or NULL


From: Luis Felipe
Subject: Re: Guile-GI: <GSimpleAction>: Setting parameter type to None or NULL
Date: Sun, 25 Apr 2021 21:47:58 +0000

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]