Re: Color theme from gnu.org G-Golf index page

2025-05-05 Thread David Pirotte
Hi Zelphir, > I like the color theme of the code on > https://www.gnu.org/software/g-golf/index.html and I am wondering, > whether this theme has any name. Perhaps I can find it for my Emacs > ... (load-theme 'modus-vivendi t) Note that the code on the website is also highlighting the s

Re: G-Golf code example links broken

2025-05-05 Thread David Pirotte
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

Re: First example of g-golf (hello world) not working

2025-05-05 Thread David Pirotte
Hi Zelphir, > I still had some confusion, as I didn't understand, that the example > code is run as a script ... Right, as we (Florian and I) explained in an earlier response to this thread [1]. > The project I am envisioning relies heavily on a GTKTreeView. Is > there any example of that anywhe

Re: G-Golf - How to use or import G-types like G_TYPE_STRING and similar?

2025-05-05 Thread David Pirotte
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):

G-Golf - How to use or import G-types like G_TYPE_STRING and similar?

2025-05-05 Thread Zelphir Kaltstahl
Hello Guile Users! 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. The GTK4 docs at https://docs.gtk.org/gtk4/section-tree-widget.html#creating-a-model tell me, that I need to create the store. A simp

Color theme from gnu.org G-Golf index page

2025-05-05 Thread Zelphir Kaltstahl
Hello Guile users! I like the color theme of the code on https://www.gnu.org/software/g-golf/index.html and I am wondering, whether this theme has any name. Perhaps I can find it for my Emacs ... Does anyone know? I checked the CSS filename, but it is just "base.css" and does not give a name

Re: How to parse a C string like "(+ 2 3)" as a GUILE s-expr

2025-05-05 Thread Basile Starynkevitch
On Mon, 2025-05-05 at 16:23 +0200, Mikael Djurfeldt wrote: > Hi Basile, > > You're right that the string needs to be parsed into an s-expression before > being evaluated. You have: > > SCM guilexp = scm_from_utf8_string(optarg); > SCM resguile = scm_primitive_eval(guilexp); > > The first call co

Re: How to parse a C string like "(+ 2 3)" as a GUILE s-expr

2025-05-05 Thread Mikael Djurfeldt
Hi Basile, You're right that the string needs to be parsed into an s-expression before being evaluated. You have: SCM guilexp = scm_from_utf8_string(optarg); SCM resguile = scm_primitive_eval(guilexp); The first call converts the C string into a Scheme string. But the step which parses the strin

Re: G-Golf code example links broken

2025-05-05 Thread Zelphir Kaltstahl
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

G-Golf code example links broken

2025-05-05 Thread Zelphir Kaltstahl
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 clipboard example. Best regards, Zelphir --

Re: First example of g-golf (hello world) not working

2025-05-05 Thread Zelphir Kaltstahl
On 16.04.25 13:11, Zelphir Kaltstahl wrote: On 14.04.25 22:26, pelzflorian (Florian Pelz) wrote: Hello Zelphir. Zelphir Kaltstahl writes: I have many questions now. (1) So, if I understand correctly G-Golf applications can only be run with the help of Guix tooling like `wrap-program`? Unless