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: builder:new-from-file: Segmentation fault Date: Sun, 25 Apr 2021 13:18:24 +0000 Message-ID: References: <20210424224726.GA2581775@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="8680"; 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 15:18:55 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 1laef1-00029R-2p for guile-user@m.gmane-mx.org; Sun, 25 Apr 2021 15:18:55 +0200 Original-Received: from localhost ([::1]:51524 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1laef0-0007na-66 for guile-user@m.gmane-mx.org; Sun, 25 Apr 2021 09:18:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46388) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1laeej-0007da-Jl for guile-user@gnu.org; Sun, 25 Apr 2021 09:18:37 -0400 Original-Received: from mail-40130.protonmail.ch ([185.70.40.130]:62236) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1laeeh-00089d-Bi for guile-user@gnu.org; Sun, 25 Apr 2021 09:18:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1619356712; bh=y7NZ/49wkk4a2hs6+AwO16UOoUvC8ZMdPR0XQz1i6yI=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=Pu30jCkXZq343NMAXjJnZpj84vH6QmTLGmFvwsUvLGjwXof3pPHtQreWt93h+i1ws U6Q+GFO5PMbwErtI0Gyb+CMFGv05PF0rIe/Ity0XB19T+hAg0EdK4fC7ahzjexl6mX Z9+ETZRl0Ogr2jl0Mslbh55VYODLE+GqWPapkFcA= In-Reply-To: <20210424224726.GA2581775@spikycactus.com> Received-SPF: pass client-ip=185.70.40.130; envelope-from=luis.felipe.la@protonmail.com; helo=mail-40130.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:17455 Archived-At: On Saturday, April 24, 2021 10:47 PM, Mike Gran wrote: > On Sat, Apr 24, 2021 at 08:46:08PM +0000, Luis Felipe wrote: > > > Hi, > > I'm trying to learn some Guile-GI, but I just hit a segfault. I was > > trying to create a GTK Builder from a file: > > Hello. > GTK needs to be initialized before builder can be used > > (use-modules (gi) (gi repository)) > (require "Gio" "2.0") > (require "Gtk" "3.0") > (load-by-name "Gtk" "Builder") > (load-by-name "Gtk" "init") > (init!) > (builder:new-from-file "app.ui") > > Another way to initialize is to use the trio of > application:new, connect, and run. > > Hope this helps, It does! Thank you Mike.