guile-user
[Top][All Lists]
Advanced

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

Re: Guile-GI: builder:new-from-file: Segmentation fault


From: Luis Felipe
Subject: Re: Guile-GI: builder:new-from-file: Segmentation fault
Date: Sun, 25 Apr 2021 13:18:24 +0000

On Saturday, April 24, 2021 10:47 PM, Mike Gran <spk121@yahoo.com> 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.



reply via email to

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