From: David Pirotte <david@altosw.be>
To: "pelzflorian (Florian Pelz)" <pelzflorian@pelzflorian.de>
Cc: guile-user <guile-user@gnu.org>
Subject: Re: GNU G-Golf 0.8.0-rc-3 available for testing
Date: Thu, 2 May 2024 21:17:48 -0300 [thread overview]
Message-ID: <20240502211748.07318328@tintin> (raw)
In-Reply-To: <877cgepwm1.fsf@pelzflorian.de>
[-- Attachment #1: Type: text/plain, Size: 3602 bytes --]
Hi Florian,
> ...
> examples/gtk-4/simple-paintable.scm fails at (add-to-load-path
> (dirname (current-filename)). I have not yet spent time to debug
> this one further.
So we can make progress, till you find why (current-filename) fails -
note that it is a syntax, not a procedure, and the doc clearly state
that it returns #f "... when this information is not available." - but
i wonder why "this information" is available in other distro and not
in guix, for the same example code i mean?
Meanwhile, so we can make progress, could you manually patch this
example to set the path and try again:
1- you need a patched version of guile-cairo
"... G-Golf actually requires a patched version of guile-cairo
that contains the following new interface (which is not in
guile-cairo 1.11.2): cairo-pointer->context."
see if you have or update your guile-cairo to
commit 30da459d7a4380174ff243b1560d5512a4bca86e
It should then segfault as well, since it defines two vfunc
methods, let's see ...
> I have not run adw1-demo.scm successfully, because the modules it
> needs are not in the load path. I guess this is the same small issue.
Dito, please manually update the path and try again, thanks - the
adw1-demo extensively use (the) GtkWidget template(s) (mechanism), no
other example does, so far ... we need to check and possibly debug this
in Guix as well ... the sooner the better:
you'll need to update all occurrences of (current-filename),
quite a few, one in the 'main' adw1-demo.scm file, one or two
(depending) in all scm files in the adw1-demo subdir [1]
Ideally, you'd do that automatically ofc, using the guix machinery
to achieve those little but fundamental changes.
While at it :), let me add the ideally as well, Guix should define a
(separate) g-golf.scm module/file and this module should contain the
following pkg defs:
g-golf
[ g-golf-doc - possibly a separate pkg as well
g-golf-gtk4-examples
g-golf-adw1-examples
... - other examples to come
It is very important, in distros, that g-golf be separate from its
examples, because g-golf itself only depends on automake, makeinfo,
glib-2.0, gobject-2.0, gobject-introspection-1.0, a C compiler and guile ofc.
G-Golf can indeed import typelibs that do not depend on gtk4, adwaita
...and allow to perform many other things then 'just' GUI ...
Cheers,
David
[1] sfind current-filename
./adw1-demo.scm: (dirname (current-filename)))
./adw1-demo/welcome.scm: #:template (string-append (dirname (current-filename))
./adw1-demo/style-classes-demo-dialog.scm: #:template (string-append (dirname (current-filename))
./adw1-demo/carousel.scm: #:template (string-append (dirname (current-filename))
./adw1-demo/animations.scm: #:template (string-append (dirname (current-filename))
./adw1-demo/clamp.scm: #:template (string-append (dirname (current-filename))
./adw1-demo/window.scm: #:template (string-append (dirname (current-filename))
./adw1-demo/window.scm: (let* ((cwd (dirname (current-filename)))
./adw1-demo/style-classes.scm: #:template (string-append (dirname (current-filename))
./adw1-demo/dialogs.scm: #:template (string-append (dirname (current-filename))
./adw1-demo/navigation-view.scm: #:template (string-append (dirname (current-filename))
./adw1-demo/preferences.scm: #:template (string-append (dirname (current-filename))
./adw1-demo/navigation-view-demo-dialog.scm: #:template (string-append (dirname (current-filename))
./adw1-demo/lists.scm: #:template (string-append (dirname (current-filename))
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
prev parent reply other threads:[~2024-05-03 0:17 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-17 5:56 GNU G-Golf 0.8.0-rc-3 available for testing David Pirotte
2024-04-17 22:30 ` pelzflorian (Florian Pelz)
2024-04-18 22:21 ` David Pirotte
2024-04-19 17:00 ` pelzflorian (Florian Pelz)
2024-04-20 4:51 ` David Pirotte
2024-04-20 8:35 ` pelzflorian (Florian Pelz)
2024-04-30 17:51 ` pelzflorian (Florian Pelz)
2024-05-01 0:51 ` David Pirotte
2024-05-01 8:17 ` pelzflorian (Florian Pelz)
2024-05-07 1:39 ` David Pirotte
2024-05-07 9:36 ` pelzflorian (Florian Pelz)
2024-05-07 23:53 ` David Pirotte
2024-05-08 10:49 ` pelzflorian (Florian Pelz)
2024-05-08 21:51 ` David Pirotte
2024-05-02 18:50 ` pelzflorian (Florian Pelz)
2024-05-02 21:57 ` David Pirotte
2024-05-03 5:00 ` David Pirotte
2024-05-03 11:35 ` pelzflorian (Florian Pelz)
2024-05-04 5:59 ` David Pirotte
2024-05-04 14:31 ` pelzflorian (Florian Pelz)
2024-05-04 18:08 ` pelzflorian (Florian Pelz)
2024-05-04 22:11 ` David Pirotte
2024-05-04 22:23 ` David Pirotte
2024-05-04 21:39 ` David Pirotte
2024-05-05 1:43 ` pelzflorian (Florian Pelz)
2024-05-05 21:30 ` David Pirotte
2024-05-06 9:45 ` pelzflorian (Florian Pelz)
2024-05-06 9:53 ` Basile Starynkevitch
2024-05-06 13:08 ` pelzflorian (Florian Pelz)
2024-05-03 0:17 ` David Pirotte [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240502211748.07318328@tintin \
--to=david@altosw.be \
--cc=guile-user@gnu.org \
--cc=pelzflorian@pelzflorian.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).