Recent

Author Topic: I have made some progress on the LCL-GTK4 work.  (Read 98 times)

onionmixer

  • New member
  • *
  • Posts: 9
I have made some progress on the LCL-GTK4 work.
« on: Today at 04:17:27 am »
https://github.com/onionmixer/LCLGtk4-prototype

I am always grateful for the efforts of the Lazarus community.

I am not a developer myself; I am just a regular person who loves Linux.

I started using AI (Claude Code) late last year, and I handle most of my major tasks using Claude.

I had been working on LCL-GTK4 using the Opus model, but I hit a wall and put the project on hold for a while. Recently, however, I was able to resolve several problematic points using the Fable model. Since today, July 12, 2026, is the closing date for Fable, I tried to get as much done as possible, and I believe I have resolved most of the issues.

Since I am Korean, I modified a few files outside of lcl/interfaces/gtk4 to handle GTK4 and IME-related issues. However, I am aware that these modifications could potentially cause issues for users in other language regions. Normally, I would want to submit this directly to the Lazarus repository, but because of these potential issues, I think it is better to create a separate repository. That way, the Lazarus developers can reference it and merge it into the official codebase as more complete code. The last thing I want is for my AI-generated work to have a negative impact or discourage the real Lazarus developers.

For now, this allowed me to easily migrate a project of mine that is over 10 years old (which couldn't be helped, as it was originally built in Lazarus 2.x).

The key features are as follows:

* Implemented TTrayIcon separately to fit GTK4.
* Operation under Wayland cannot be guaranteed (as I do not use a Wayland environment myself).

I hope my small contribution will be helpful to the Lazarus developers. Also, I must admit it's a bit bittersweet that LCL-GTK3 came out while I was working on GTK4. If I had known GTK3 would be released this quickly, I probably wouldn't have started the LCL-GTK4 work (though I don't mean that in a bad way—I am also happily using GIMP 3, which is based on GTK3 :D).

Once again, I send my deepest respect to the developers of the Lazarus community. Thanks to all of you, someone like me who loves Pascal and Smalltalk can still build things today.

ps. The following is a project where I created GTK4 bindings for GNU Smalltalk, which has had almost no maintenance. It was, of course, built using AI, and it might serve as a helpful reference for anyone interested. :D

https://github.com/onionmixer/gnu-smalltalk-gtk4

 

TinyPortal © 2005-2018