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