From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: randomlooser Newsgroups: gmane.lisp.guile.user Subject: Re: getting to know the FFI ... Date: Sat, 21 Nov 2020 11:19:21 +0100 Message-ID: <596f1b4be569e76f2bc70bfd9994b2228d019025.camel@riseup.net> References: Reply-To: randomlooser@riseup.net Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3586"; mail-complaints-to="usenet@ciao.gmane.io" To: Tim Meehan , guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Sat Nov 21 11:19:55 2020 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 1kgPzn-0000qJ-Ap for guile-user@m.gmane-mx.org; Sat, 21 Nov 2020 11:19:55 +0100 Original-Received: from localhost ([::1]:55750 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kgPzm-0001Y6-Dp for guile-user@m.gmane-mx.org; Sat, 21 Nov 2020 05:19:54 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51672) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kgPzb-0001Xk-0J for guile-user@gnu.org; Sat, 21 Nov 2020 05:19:43 -0500 Original-Received: from mx1.riseup.net ([198.252.153.129]:59418) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kgPzV-0008HL-V7 for guile-user@gnu.org; Sat, 21 Nov 2020 05:19:42 -0500 Original-Received: from capuchin.riseup.net (capuchin-pn.riseup.net [10.0.1.176]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "Sectigo RSA Domain Validation Secure Server CA" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4CdTtF5WXFzFgZB; Sat, 21 Nov 2020 02:19:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1605953973; bh=7TuG2rr4PYLc9MISutZmhDl/NEBxJE+5mQpHbtRAce0=; h=Subject:From:Reply-To:To:Date:In-Reply-To:References:From; b=PTpi530SmLvI4sJ8d9RaGkCwZN/k+0wQOTAJ6pz/obZgT1EcDbhF8ylOZ74xloVTB sdqJQZ7x8r0KkwCd7PuU0mAxnr1GX+znEztBoNG7q/h+rDqkh7T+39WlxzFCU5Mpjr y1+cjr3aj1pFUhC4tRkWuQAZiPzIek7UhWfEMIMI= X-Riseup-User-ID: 9780CC4373C5EC0B401FAF21815227E6001DDC8B4CD69824C015B3A5167364E6 Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by capuchin.riseup.net (Postfix) with ESMTPSA id 4CdTtD652Cz8slw; Sat, 21 Nov 2020 02:19:32 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=198.252.153.129; envelope-from=randomlooser@riseup.net; helo=mx1.riseup.net 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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:17032 Archived-At: Il giorno gio, 19/11/2020 alle 21.02 -0600, Tim Meehan ha scritto: > I figured that I would try and do something simple-ish to see how > well I > understood the FFI. I found this GTK tutorial, written in Chez > Scheme: > https://github.com/jhidding/lyonesse/blob/master/gtk-tutorial/window.scm > I just tried to replace the Chez FFI calls with Guile FFI calls. > > I'm not sure how to tell GTK about a callback that is written in > Guile. > I'm not sure how to pass a string to GTK ... > > Cheers, > My bug-ridden source follows: I'm not sure I understand Are you asking for a review of your code ? Did you run this code ?