Hi Zelphir,
> ...
You are misinterpreting what I wrote, and we miscommunicate.
GtkBuilder reads XML descriptions of a user interface and instantiates
the described objects. Those XML descriptions are largely identical
when defining a composite widget using a template, with some slight
difference
Hi David!
On 28.05.25 20:36, David Pirotte wrote:
I wonder why that is though. I imagine (I don't know that for sure at
all, so some Dunning-Kruger chance here) that internally Gtk probably
uses the same machinery ...
Not at all. A template is installed at (GObject) class initialization
time, a
Hi Zelphir,
> > I have little experience using gtk builder, upstream developers
> > convinced me to switch to (always) use templates.
> I wonder why that is though. I imagine (I don't know that for sure at
> all, so some Dunning-Kruger chance here) that internally Gtk probably
> uses the same m
Hi Zelphir,
> > - use libadwaita, and only use gtk for those widgets that
> > are not provided by libadwaita;
> To be honest, I still don't really know, what libadwaita does or ads
> and why it is better to use that.
Adw – 1
Building blocks for modern GNOME applications
On 28.05.25 15:39, webmas...@free-comp-shop.com wrote:
Zelphir Kaltstahl writes:
Ah OK! I thought it might be perceived as annoying, if I send 3
separate ones, but it makes sense for the purpose of focused
discussion. I'll branch out from here using separate replies.
Actually, that can be anno
On 28.05.25 00:25, David Pirotte wrote:
Hello Zelphir,
[...]
I am slowly figuring things out with G-Golf and trying to build my
own examples for how to do things with it. (repo:
https://codeberg.org/ZelphirKaltstahl/guilt-gtk-g-golf-examples, or
most recent branch:
https://codeberg.org/ZelphirKa
Hi David,
On 28.05.25 00:25, David Pirotte wrote:
Hello Zelphir,
[...]
;; A UI XML string can be processed by a GtkBuilder.
I have little experience using gtk builder, upstream developers
convinced me to switch to (always) use templates.
I wonder why that is though. I imagine (I don't
Hi David!
On 28.05.25 00:25, David Pirotte wrote:
Hello Zelphir,
As an aside note, this email is far too long and mixes far too
many subjects and questions 'at the same time', please in the
future, make one email per question, keep it short and
precise as possibl
Hello Zelphir,
As an aside note, this email is far too long and mixes far too
many subjects and questions 'at the same time', please in the
future, make one email per question, keep it short and
precise as possible, thanks!
> I am slowly figuring things out with G-
Hello David!
On 06.05.25 05:27, David Pirotte wrote:
Hi Zelphir,
I am trying to use G-Golf to create a tree view (the thing that looks
like a table) and for that purpose to create a GtkListStore instance.
Do not use GtkTreView, deprecated in 4.10 and will be removed from
Gtk-5. Instead, caref
Hi,
> Ah, those errors seem to be intermittent. If I reload sometimes it
> doesn't error.
For info:
https://lists.gnu.org/archive/html/savannah-users/2025-05/msg1.html
David
pgpFRMVPY_jDJ.pgp
Description: OpenPGP digital signature
Hi Zelphir,
> I am trying to use G-Golf to create a tree view (the thing that looks
> like a table) and for that purpose to create a GtkListStore instance.
Do not use GtkTreView, deprecated in 4.10 and will be removed from
Gtk-5. Instead, carefully read this section (till the very end):
On 05.05.25 22:09, Zelphir Kaltstahl wrote:
Hi!
I noticed, that some example code links from
https://www.gnu.org/software/g-golf/learn.html are broken, or rather lead to
"502 Bad Gateway" error pages. For example the
http://git.savannah.gnu.org/cgit/g-golf.git/tree/examples/gtk-4/clipboard
c
Hi Tommi,
> G-Golf version 0.8.0-1 has been released in Debian and Ubuntu. See
Great!
Thanks,
David
pgp6gJklyKMCc.pgp
Description: OpenPGP digital signature
Hi Tommi,
> G-Golf version 0.8.0~rc9-2 has been released in Debian and Ubuntu. See
> * https://www.gnu.org/software/g-golf/
> * https://www.iki.fi/tohoyn/g-golf-debian/
> * https://tracker.debian.org/pkg/g-golf
Great, thanks
David
pgpDNM3BP00wu.pgp
Description: OpenPGP digital signature
Hi Tommi,
> G-Golf version 0.8.0~rc9-1 has been released in Debian and Ubuntu. See
> * https://www.gnu.org/software/g-golf/
> * https://www.iki.fi/tohoyn/g-golf-debian/
> * https://tracker.debian.org/pkg/g-golf
Great, thanks,
David
pgpw7l8UWsFHd.pgp
Description: OpenPGP digital signature
Hi Tommi,
> G-Golf version 0.8.0~rc8-1 has been released in Debian and Ubuntu. See
> * https://www.gnu.org/software/g-golf/
> * https://www.iki.fi/tohoyn/g-golf-debian/
> * https://tracker.debian.org/pkg/g-golf
Great, thanks
David
pgpb1IdnFppNF.pgp
Description: OpenPGP digital signature
Hi Tommi,
> G-Golf version 0.8.0~rc7-1 has been released in Debian. See
> https://www.iki.fi/tohoyn/g-golf-debian/ and
> https://tracker.debian.org/pkg/g-golf.
Great, thanks
David
pgpdj_1sm1vHB.pgp
Description: OpenPGP digital signature
Hello David.
David Pirotte writes:
> If you could kindly grab the latest, run the make/install dance on your
> respective distro and try again ... Here the example now runs for
> hours,
Yes, same on Guix. It runs for more than an hour.
> as it should, consuming +/- 3% cpu and a steady 0.8% of
David Pirotte writes:
> Hello Florian,
> Matija,
>
>> > > all of a sudden it stops and raises an exception - could you also
>> > > try that and let me know, thanks
>
>> > Yes, after 5 minutes animated-paintable.scm crashes. Hmm.
>
>> Ok, thanks for trying - This is going to be quite a lot
> ...
> Here the example now runs for hours, as it should, consuming +/- 3%
> cpu and a steady 0.8% of mem (so afaict, no memory leak either).
Actually the example memory consumption grows, very slowly but it grows.
I think I know why, I'll try to fix this as well, but I need to finish
some other
Hello Florian,
Matija,
> > > all of a sudden it stops and raises an exception - could you also
> > > try that and let me know, thanks
> > Yes, after 5 minutes animated-paintable.scm crashes. Hmm.
> Ok, thanks for trying - This is going to be quite a lot more complex
> to debug and fix, an
Hi Florian,
> Yes, they had not worked previously, and now with your long-name fix,
> they work.
Fwiw, they actually worked fine till day one till 2024-09-04, the day i
pushed this commit a3952000ae205c27573ab0eaf2176131b51e34cf,
that 'broke' them ...
But i am glad you confirm everything is fine
David Pirotte writes:
> Could you both kindly grab the latest devel branch, you need this
> commit 5d72bfcdae85bb4a5b0254dc9f22fb8c676db69d, and try
> both the animated-paintable.scm and peg-solitaire.scm ex. ... let me
> know.
animated-paintable and peg-solitaire I had not tried last time and
th
Matija,
Florian,
> > Except for "peg-solitaire.scm" and "animated-paintable.scm" all
> > examples works fine, thank you.
> I can reproduce the bug here, let me investigate, i'll get back asap
I think i fixed that (recently introduced) bug [1].
Could you both kindly grab the latest devel branc
Hi Matija,
Florian,
This example should 'now' likely fail in guix as well (?)
> Except for "peg-solitaire.scm" and "animated-paintable.scm" all
> examples works fine, thank you.
I can reproduce the bug here, let me investigate, i'll get back asap ...
Thanks for the report,
David
Hi again,
> > P.S. on Guix, I also no longer have to use --no-grafts, possibly
> > because Guix had major updates to core packages.
> Excellent!
> > G-golf really satisfies now.
> At last! Note that the above was not a g-golf problem [1].
Just want to make sure we are (all) on the same wave
> P.S. on Guix, I also no longer have to use --no-grafts, possibly
> because Guix had major updates to core packages.
Excellent!
> G-golf really satisfies now.
At last! Note that the above was not a g-golf problem [1].
Regards,
David
[1]
And for that matter, nor is (a g-golf problem) the pat
Hi Florian,
> Thank you David, thank you Matija,
> it works on Guix!
Excellent!
> Except for small warnings like
> Warning: Missing /etc/X11/rgb.txt, using a fallback.
> that probably should be fixed on the Guix side.
You may as well safely ignore the warning ofc - i am not sure how to
handle t
Hello David,
> Could you both kindly grab the latest devel branch, you need this
> commit bbfee04922bf2a22db397e2f429ae606df940265, and run the
> make/install danse on your respective distro, then check if the
> 'problematic' examples work fine _even when_ run against a modern libffi
> that was co
P.S. on Guix, I also no longer have to use --no-grafts, possibly because
Guix had major updates to core packages. G-golf really satisfies now.
Also thank you to the GJS maintainer for their help.
Regards,
Florian
Thank you David, thank you Matija,
it works on Guix!
Except for small warnings like
Warning: Missing /etc/X11/rgb.txt, using a fallback.
that probably should be fixed on the Guix side.
And some issues that I have to chdir to
~/src/g-golf/examples/gtk-4/
to run
~/src/g-golf/examples/gtk-4/revealer
Hello Matija,
Florian,
> > > I still wonder where is the problem, in Guile, G-Golf or
> > > gobject-introspection (which according to [2] should not be a
> > > problem).
> > Definitely not a g-golf bug.
Further speaking with other GI lang binding authors, the gjs author
finally did point m
Hi again,
> ...
> > I still wonder where is the problem, in Guile, G-Golf or
> > gobject-introspection (which according to [2] should not be a
> > problem).
> Definitely not a g-golf bug.
Unless the code used by g-golf to make the ffi-cif would need to be
adapted, i don't know, but one thing
Hello Matija,
> This flag was recently removed [2] in nixpkgs with a comment:
> > The fix for gobject-introspection is in version 1.72.
Maybe the fix didn't really fixed the problem ...
> Bottom line: If I compile Guile with patched libffi [3] dependency
> (where flag "disable-exec-static-tram
Hello Matija. I confirm that on Guix as well static trampolines are the
issue; using
((package-input-rewriting
`((,libffi . ,libffi-sans-static-trampolines)))
guile-3.0)
as Guile to run g-golf demos makes every g-golf demo work without patches.
Regards,
Florian
Hello David,
> So your patch seems to point to a problem in the upstream definition of
> the (most recent) g-callable-info-create-closure, which is the one
> everybody who's using GI >= 1.71.0 should use ...
I see. The comment in deprecated function made me thinking and I found
notice in LFS [1]:
Hello Matija,
> There is a version check in "g-callable-info-make-closure" function,
> if I disable it (check patch) all examples works just fine.
Great! But ...
> I'm not quite sure what these functions does, can you take another
> look?
g-callable-info-make-closure just select in between the
Wow, Matija, good idea; this work-around fixes all examples on Guix, too
(using gobject-introspection version 1.78.1).
Regards,
Florian
Hello again,
I think I found something.
There is a version check in "g-callable-info-make-closure" function, if
I disable it (check patch) all examples works just fine.
I'm not quite sure what these functions does, can you take another look?
My gi version is 1.80.1.
>From 4bec7836f17dfd453b877
"pelzflorian (Florian Pelz)" writes:
>>> The feedback I can give: guile-zlib in its build system autodetects
>>> ...
>> Not sure i want to do this.
>
> Yeah, normally there is no need, when using the package.
>
> I do not know what Matija did on Nix, because I cannot find any g-golf
> in Nixpkgs.
Hello David.
David Pirotte writes:
> Thanks for the nice words - I hope that some day, with the help of
> Guix/Nix maintainer(s), we can identify and solve the problem.
The other Nix patches for giscanner had been written by Luca Bruno who
did work on gobject-introspection itself, although Guix
Hi Florian,
> Hello David. Thank you for this important groundwork that g-golf is.
Thanks for the nice words - I hope that some day, with the help of
Guix/Nix maintainer(s), we can identify and solve the problem.
> Sorry to say, I have not developed any GUI and had no time as planned.
> It will
Hello David. Thank you for this important groundwork that g-golf is.
Sorry to say, I have not developed any GUI and had no time as planned.
It will not happen with me. But Debian is not the problem; all is fine
there (unlike G-Golf on Guix on Debian).
I also failed to put a libg-golf-tests libr
Hi Florian,
is your debian host g-golf experience ok? i know it is a
temporary solution, till we find a solution for nix/guix, but
i am curious - also, is the app you are working on free s/w,
any public repo we could look at?
> Hello, Yes, the same issue still pla
Hello Matija,
> I'm facing the problem mentioned in [1]. Problematic are all examples
> with virtual methods.
Ok, so you are facing the same problem as Guix and HomeBrew, all other
distro (that tried g-golf) work fine, i use Debian.
> I have tried simpler example (attached) with same result. The
Hello, Yes, the same issue still plagues me. Never tried guile-gi and
I do not know the difference regarding vfuncs. Is it like pygobject
that guile-gi does not use Guile as much and more C?
My only progress:
> I'm using Nix.
Interesting. Guix and Nix have their own settings to load librarie
Hi tommi,
> G-Golf version 0.8.0~rc5-1 has been released in Debian and Ubuntu.
> ...
Excellent, thank you,
David
pgpTFqPczNN07.pgp
Description: OpenPGP digital signature
Hi Tommi,
> G-Golf version 0.8.0~rc4-1 has been released in Debian and Ubuntu.
> ...
Very nice,
Thank you,
David
pgpMmBzTJIOjK.pgp
Description: OpenPGP digital signature
Hello tommi,
> G-Golf version 0.8.0~rc3-1 has been released in Debian and Ubuntu.
> ...
Excellent,
Thanks,
David
pgpA3lFSzQZzG.pgp
Description: OpenPGP digital signature
Hello Tommi,
> G-Golf version 0.8.0~rc2-1 has been released in Debian testing and
> unstable. See https://tracker.debian.org/pkg/g-golf and
> https://www.iki.fi/tohoyn/g-golf-debian/.
Thanks you!
David
pgpGCw7msxnPq.pgp
Description: OpenPGP digital signature
Hello Tommi,
> G-Golf version 0.8.0~rc1-2 has been released in Debian testing and
> unstable and Ubuntu Noble. See https://tracker.debian.org/pkg/g-golf.
This is great!
Thanks,
David
pgpbyTD2WAYdj.pgp
Description: OpenPGP digital signature
Aleix,
> > i decided to answer separately - and change the
> > subject line ...
Let's close this thread, which is getting confusing ... as it talks
about several problems at once, and started by an answer to a release
announce [3].
Please start a new thread, on guile-user 'only', and on
> From: Aleix Conchillo Flaqué
> Subject: Re: G-Golf- [subject changed] cairo based examples
> To: David Pirotte
> Cc: guile-user , guile-devel
On Fri, Dec 22, 2023 at 3:22 PM David Pirotte wrote:
> Hi Aleix,
>
> i decided to answer separately - and ch
Hi again,
> ...
> here is the 'subthread' for the guile-cairo related issue, on
> homebrew [1].
> ...
> If they don't work, please report upstream, if they do work, try to
> get a backtrace as well, for the simple-animation.scm example only,
> let's try to identify the problem for the
Hi Aleix,
i decided to answer separately - and change the subject line -
(a) the guile-cairo related issue, on homebrew, from the
(b) snapshot related issue, on homebrew as well
here is the 'subthread' for the guile-cairo related issue, on
homebrew [1].
Hello Alptekin
> ...
> Under g-golf, however, I can't define a with
> parameters.
Right, currently you can't - GVariant are not (yet) supported, and
it's not a high priority item in my list, so don't hold your breath ...
What you can do, currently, is what you do as in your 'simpler' example,
Hello,
> I try to run the hello-world example with the manifest.scm:
> ...
I don't use guix and recommend that you ask for help in a guix ml or in
#guix, as this a guix problem, not a g-golf problem - all examples work
well upstream, in debian, and afaict, in freebsd.
> Maybe a separate issue -
Erik, following up on your idea about using --with-input, I used the
code equivalent of --with-input and wrote the attached manifest that
installs GTK with the same glib@2.73.3 as guile-g-golf (and also
upgrades g-golf to version 0.8.0-a.4 as recommended by David Pirotte).
guix shell -m guile-g-go
> I tried to use g-golf on Guix recently, and gave up, because while Guix’
> guile-g-golf depends on glib@2.73.3, Guix’ gtk (GTK4) and gtk+ (GTK3,
> GTK2) depend on glib@2.72.3. In other words, I believe that currently,
> g-golf cannot be used with gtk in Guix. Upgrading gtk’s glib in the
> Guix
Hello Erik,
(and Florian),
> I am using Guix on Fedora 38. Via Guix I tried to install G-Golf
> version "a.1"[0] together with GTK@4.8.1. This raised a conflict
> during installation, as GTK (as well as libadwaita) require
> glib@2.72.3, but g-golf requires glib@2.73.3.
> ...
I don't use guix [1]
Hello Erik.
I tried to use g-golf on Guix recently, and gave up, because while Guix’
guile-g-golf depends on glib@2.73.3, Guix’ gtk (GTK4) and gtk+ (GTK3,
GTK2) depend on glib@2.72.3. In other words, I believe that currently,
g-golf cannot be used with gtk in Guix. Upgrading gtk’s glib in the
Gu
[[[ Hiermit widerspreche ich ausdrücklich der Erfassung, Speicherung
und Verarbeitung meiner Daten zu anderen Zwecken, als der Zustellung
meiner Nachricht zum Empfänger ]]]
Hello, G-Golfers,
hello, Guile users,
By the way running G-Golf in a shell environment yields different errors.
So, I exec
Hi Michele,
> ...
> You are right, I'm linking against gtk-4 shipped by the distribution
> I'm using. In this case, I'm on Ubuntu 22.04 which, at the time of
> writing this email, ships gtk-4 version 4.6.6.
> This leads me to a few follow-up questions:
> 1) I did build G-Golf using automake whi
Hi David,
> In this particular situation, the property exists since 4.10, but most
> distributions still have 4.8.xx ... As soon as you have access to gtk
> 4.10 or later, you may revert your code to use the prefered scheme
> idiomatic way
You are right, I'm linking against gtk-4 shipped by the d
Hi Michele,
> Thank you so much, it works perfectly now!
Great.
I have to correct what I said, about how/when(or when not) one can
create a GObject (sub)class instance calling
(make #:prop-name prop-value ...)
[ which internally calls g_object_new_with_properties ...
In this p
Hello David,
Thank you so much, it works perfectly now!
BR,
Michele
Hello Michele,
> I'm trying to learn g-golf. It has been a blast, great technology!
> However, the last few days I've tried to get ListView working and now
> I'm stuck.
Below a working version.
In the C code, you should:
app = gtk_application_new (APPLICATION_ID, G_APPLICATION_DEFAULT_F
Hello Michele,
> I'm trying to learn g-golf. It has been a blast, great technology!
> However, the last few days I've tried to get ListView working and now
> I'm stuck.
Thanks for both the C and scheme code - I will look at it and will get
back to you asap - hopefully tomorrow, within the next fe
Thanks for the fix. Now G-Golf works on Ubuntu 20.04, which has GI
1.64, an old version
On Wed, Jul 27, 2022 at 6:23 PM David Pirotte wrote:
>
> Hello Andy,
>
> > > For example, on GNU Guix, the GI version is for now at 0.64. So
> > > G-Golf, when invoked from a guile program using it, would f
Hello Andy,
> > For example, on GNU Guix, the GI version is for now at 0.64. So
> > G-Golf, when invoked from a guile program using it, would fail
> > with
> > ;;; In procedure dlsym: Error resolving
> > "g_callable_info_create_closure":
> > "/gnu/store/g6gxhcy7lcmnx14jrinmh6vhanx8rh79-profil
Sorry for all the GNOME name mixup. Thanks for looking into the
problem regardless of my incorrect terms!
On Fri, Jul 22, 2022 at 1:08 PM David Pirotte wrote:
>
> Hello Andy,
>
> > G-Golf seems to assume the GObject Inspection (GI) present is the
> > latest (0.72) and will fail to load if the G
Hello Andy,
> G-Golf seems to assume the GObject Inspection (GI) present is the
> latest (0.72) and will fail to load if the GI version is older.
I understand what made you write this, as you found a bug that I will
fix and let you know, thanks, but actually the minimal GObject
Introspection vers
Hello,
> How to call gtk APIs such as
> (gtk+ 3)
> gint
> gtk_tree_view_insert_column_with_attributes
>(GtkTreeView *tree_view,
> gint position,
> const gchar *title,
>
Hello Paul,
> From here:
> https://www.gnu.org/software/g-golf/manual/g-golf.html
There is no G-Golf release yet - it is mentioned on the web-site, both
the home page and in the install page ... but not in the manual indeed,
didn't want to ...
> $ guile -s example-1.scm # takes about 7 seconds
Hi Paul
On Mon, Apr 12, 2021 at 12:35:58PM +0100, Paul Emsley wrote:
> Hi G-Golfers,
>
> >From here:
> https://www.gnu.org/software/g-golf/manual/g-golf.html
>
>
>GNU G-Golf can be obtained from the following archive site
> http://ftp.gnu.org/gnu/g-golf/. The file will
>be named g-golf-
Hi Mike,
> I notice you've been making some commits on g-golf. How's the state of the
> project?
Yes, I am actively working on it, and made good progress, but it is, from a user
point of view, unusable still: although everything that 'is there' is working,
it
still misses some fundamental piece
2018-01-14 14:10 GMT+01:00 David Pirotte :
> Hi Catonano,
>
> > > Thank you for your interest, but please note that G-Golf still is in
> > > planning stage
>
> > I know but I tought I would have taken a look
>
> Ok, you're welcome of course!
>
> > I don't know if I will ever be able to contribute
Hi Catonano,
> > Thank you for your interest, but please note that G-Golf still is in
> > planning stage
> I know but I tought I would have taken a look
Ok, you're welcome of course!
> I don't know if I will ever be able to contribute
> But the fiirst thing is that G-golf should have a guix.sc
No, doesn't change
2018-01-14 13:35 GMT+01:00 Catonano :
> Ah I see these dependencies
>
Ah I see these dependencies
Texinfo>= 6.1
GObject-Introspection-1.0>= 1.48.0
Glib-2.0>= 2.48.0
Gobject-2.0>= 2.48.0
are missing
I'll try and report back
2018-01-14 13:00 GMT+01:00 David Pirotte :
> Hello,
>
> > Trying to build G-golf in GuixSD
>
> Thank you for your interest, but please note that G-Golf still is in
> planning stage
> - as stated on both its Gnu and Savannah web pages:
>
> this means that it is, as it is, unusable: you sho
Hello,
> Trying to build G-golf in GuixSD
Thank you for your interest, but please note that G-Golf still is in planning
stage
- as stated on both its Gnu and Savannah web pages:
this means that it is, as it is, unusable: you should use Guile-Gnome
and
or Guile-Clutter instead,
2018-01-14 11:08 GMT+01:00 Amirouche Boubekki :
> On 2018-01-14 11:03, Catonano wrote:
>
>> Trying to build G-golf in GuixSD
>>
>> This is how I'm creating an environment
>>
>> guix environment --ad-hoc autoconf automake pkg-config guile
>>
>> and this is the result of configure
>>
>> ./configure:
On 2018-01-14 11:03, Catonano wrote:
Trying to build G-golf in GuixSD
This is how I'm creating an environment
guix environment --ad-hoc autoconf automake pkg-config guile
and this is the result of configure
./configure: line 2497: PKG_PROG_PKG_CONFIG: command not found
How is my environme
85 matches
Mail list logo