From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Luis Felipe Newsgroups: gmane.lisp.guile.user Subject: Re: Guile-GI: : Setting parameter type to None or NULL Date: Sun, 25 Apr 2021 21:47:58 +0000 Message-ID: References: <20210425204459.GA2644511@spikycactus.com> Reply-To: Luis Felipe Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36236"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "guile-user@gnu.org" To: Mike Gran Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Sun Apr 25 23:48:20 2021 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lambz-0009IB-TE for guile-user@m.gmane-mx.org; Sun, 25 Apr 2021 23:48:19 +0200 Original-Received: from localhost ([::1]:45134 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lamby-0000w5-Tq for guile-user@m.gmane-mx.org; Sun, 25 Apr 2021 17:48:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54498) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lambo-0000vl-Sx for guile-user@gnu.org; Sun, 25 Apr 2021 17:48:08 -0400 Original-Received: from mail4.protonmail.ch ([185.70.40.27]:62717) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lambm-0007Dy-9j for guile-user@gnu.org; Sun, 25 Apr 2021 17:48:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1619387280; bh=l+t4MsZ4UEGWRo+PH3y2ijOVVlnpwKHNoMhLZRvhbDE=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=jsWW8XVGks92bl/xgaTZmDv7hHNOe1DbVNqIweSi6bs+gLNa5pHQcanbmjtKVSMp8 TuY1SzB7TKn6IzR9c6l4L7N4JuEHa0DOkGke7FQesXdOpv14ZOumHiQo9PuO1AEyzC pAGkwVL2i40NKHGCWrmtN4q9Rhb7KmcwQTLzY3Zk= In-Reply-To: <20210425204459.GA2644511@spikycactus.com> Received-SPF: pass client-ip=185.70.40.27; envelope-from=luis.felipe.la@protonmail.com; helo=mail4.protonmail.ch X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:17459 Archived-At: On Sunday, April 25, 2021 8:44 PM, Mike Gran 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 #:name "about") Thanks for checking, Mike. I'm actually doing this (omitting #:parameter-ty= pe), but then, when I run the application and interact with something in th= e GUI that should trigger an action, I get the following error, and the app= ropriate 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 #) In ice-9/boot-9.scm: 718:2 5 (call-with-prompt _ _ #) In ice-9/eval.scm: 619:8 4 (_ #(#(#))) 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 #< 7f367819b5e0> ("ge= =E2=80=A6")) 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-t= ype... 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:star= tup" procedures.