From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ricardo Wurmus Newsgroups: gmane.lisp.guile.bugs Subject: bug#57379: GUI toolkit for Guile 3.0? Date: Sat, 27 Aug 2022 10:30:24 +0200 Message-ID: <871qt2xe0k.fsf@elephly.net> References: <87mtbtrffm.fsf@tsyesika.se> <20220824170318.70af5603@aicha> <20220825232724.6a4191ef@aicha> <87h71yyc7g.fsf@elephly.net> 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="24148"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.8.7; emacs 28.1 Cc: tsyesika@tsyesika.se, 57379@debbugs.gnu.org, david@altosw.be To: Lee Thomas Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Sat Aug 27 10:55:16 2022 Return-path: Envelope-to: guile-bugs@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 1oRraz-00065m-Ot for guile-bugs@m.gmane-mx.org; Sat, 27 Aug 2022 10:55:14 +0200 Original-Received: from localhost ([::1]:39504 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oRray-0002tF-5c for guile-bugs@m.gmane-mx.org; Sat, 27 Aug 2022 04:55:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36000) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oRrao-0002sv-OQ for bug-guile@gnu.org; Sat, 27 Aug 2022 04:55:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37167) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oRrao-00053H-Fk for bug-guile@gnu.org; Sat, 27 Aug 2022 04:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oRrao-0004kG-BY for bug-guile@gnu.org; Sat, 27 Aug 2022 04:55:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ricardo Wurmus Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Sat, 27 Aug 2022 08:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57379 X-GNU-PR-Package: guile X-Debbugs-Original-Cc: Jessica Tallon , bug-guile@gnu.org, 57379@debbugs.gnu.org, David Pirotte Original-Received: via spool by submit@debbugs.gnu.org id=B.166159049418223 (code B ref -1); Sat, 27 Aug 2022 08:55:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Aug 2022 08:54:54 +0000 Original-Received: from localhost ([127.0.0.1]:55149 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oRrag-0004jr-9I for submit@debbugs.gnu.org; Sat, 27 Aug 2022 04:54:54 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:45656) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oRrab-0004jZ-QM for submit@debbugs.gnu.org; Sat, 27 Aug 2022 04:54:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39374) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oRraZ-0002rS-Hy for bug-guile@gnu.org; Sat, 27 Aug 2022 04:54:48 -0400 Original-Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21192) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oRraX-00050B-NC for bug-guile@gnu.org; Sat, 27 Aug 2022 04:54:47 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1661590481; cv=none; d=zohomail.com; s=zohoarc; b=n35l8sfm/MUyNHRGkP3eSZi84pbQdoltf1ncOFLU9qv+jUHwlLXlwGyuWntNmzSjpApvdzOZsCkeWifH1tSuqpuHobtuAkPPKaG37O+PYD+p7VG8zYrlPYEvmq6dot9oTAsorvBvtawTyUMTLBuAxuduPY2bwDD6PDCB0Irw8eQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1661590481; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=niqrnqXvY1L2mmKfzA2dDSkbyENOC7iTqNnvLWIaRMQ=; b=ZBMExkaKibbbEqZRi7ez44gUEPnBBFwek5gqRfIiIZW+WYlUIFE/WEAVw1i3NwJ2asXcPf5fNpm9T7J8Arwb6u4FusnMtj/1Pz2N3x31AxVON6SumQVd+ETwhQEZL7ojbzedNlse1isPKbbEP1nlE2UkYUcelSyn4VhnK9H8koE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1661590481; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:In-reply-to:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=niqrnqXvY1L2mmKfzA2dDSkbyENOC7iTqNnvLWIaRMQ=; b=RwBDb0mLKzdu5KdIzUccJGOmMHcPRtV29ux52EX4EonzJDc7Tc7pZ+pcL6HsGAeB S8kggiQHK0j4vyGNEpxcnQ2BK52qrLegftTYHEgM/cJDRP59Zo9NoC/3dqhX6yB1jz4 a6gnjjSsujvygcx2uFk6b6Nt+zxAHKYv63viLl34= Original-Received: from localhost (i5E862DE8.versanet.de [94.134.45.232]) by mx.zohomail.com with SMTPS id 1661590479291993.7190845767536; Sat, 27 Aug 2022 01:54:39 -0700 (PDT) In-reply-to: X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.51; envelope-from=rekado@elephly.net; helo=sender4-of-o51.zoho.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.io gmane.lisp.guile.bugs:10340 Archived-At: Hi, Lee Thomas writes: > Thank you for responding, Ricardo! I have tried several permutations > of packages, but currently I have this: [=E2=80=A6] This looks all right to me. I can reproduce this. I also tried the latest commit of g-golf: guix shell --pure guile \ guile-g-golf \ gtk@4 \ coreutils \ grep \ --with-commit=3Dguile-g-golf=3Db9956e6e4c60d6be5424290e4366f= 3d3f46b2c31 \ --cores=3D1 No difference. My first guess was that perhaps it gets confused because GTK 3 stuff also exists on my machine, so I used =E2=80=9C--pure=E2=80=9D to overwrite = the environment variables. I also tried =E2=80=9C--container=E2=80=9D to be su= re it doesn=E2=80=99t accidentally pick up incompatible stuff. But I can=E2=80=99t get it to work. It would be helpful if g-golf were to = print more diagnostic information. As it is I cannot think of anything to make it work. I only ever used guile-gi successfully. This is the Guix shell: guix shell --pure guile guile-gi gtk@4 -- guile gi-test.scm And here=E2=80=99s the code in gi-test.scm: --8<---------------cut here---------------start------------->8--- (use-modules (gi) (gi repository)) (require "Gio" "2.0") (require "Gtk" "4.0") (load-by-name "Gio" "Application") ;activate, run (load-by-name "Gtk" "Application") (load-by-name "Gtk" "ApplicationWindow") (load-by-name "Gtk" "Button") (load-by-name "Gtk" "Box") (load-by-name "Gtk" "Window") (load-by-name "Gtk" "Widget") ;present (define (print-hello widget) (display "Hello World\n")) (define (on-activate app) (let* ((window (make #:application app #:default-height 200 #:default-width 200 #:title "Window")) (box (make )) (button (make #:label "Hello world"))) (set-child window box) (append box button) (connect button clicked print-hello) (present window))) (define (main) (let ((app (make #:application-id "org.gtk.example"))) (connect app activate on-activate) (run app (command-line)))) (main) --8<---------------cut here---------------end--------------->8--- Clicking the button prints =E2=80=9CHello World=E2=80=9D to the terminal. --=20 Ricardo