Hello Florian,

> G-Golf works great.

Excellent! Note that you'll need to update your configuration and
use/grab 0.8.0-rc7 - which fixes a 'missing some distributed files',
necessary to be able to run the newly added

        examples/gtk-4/layout-manager.scm
        [ a g-golf port of the upstream gtk4-demo layout manager
        [ (transition) example

>  Now I can embed GTK programs within the Guix Home
> configurations ...

I am glad that you (finally) can happily use the distro of your dream.
Your config example certainly should help other guixers willing to use
g-golf.

> All that is left is that I do not understand why
> (gdk-display-get-default) returns #f in G-Golf but
> gdk_display_get_default () in C returns 0x1c0e36c0.

You need to have initialized either Gtk or Adw, otherwise it returns #f
(as expected).

        scheme@(guile-user)> ,use (g-golf)
        scheme@(guile-user)> (gi-import-by-name "Gdk" "Display")
        $5 = #<<gobject-class> <gdk-display> 7fee0e488c30>

        scheme@(guile-user)> (gdk-display-get-default)
        $6 = #f

        scheme@(guile-user)> (gi-import-by-name "Gtk" "init")
        $7 = #<<function> 7fee075cb480>
        scheme@(guile-user)> (gtk-init)

        scheme@(guile-user)> (gdk-display-get-default)
        $8 = #<<gdk-wayland-display> 7fee0f054a10>

David

Attachment: pgpb8v0sUyXLp.pgp
Description: OpenPGP digital signature

Reply via email to