Recent

Author Topic: GTK3 still alpha  (Read 3978 times)

regs

  • Jr. Member
  • **
  • Posts: 68
Re: GTK3 still alpha
« Reply #15 on: March 31, 2025, 01:05:49 pm »
It appears that TMemo.OnChange doesn't fire with GTK3

Thaddy

  • Hero Member
  • *****
  • Posts: 16932
  • Ceterum censeo Trump esse delendam
Re: GTK3 still alpha
« Reply #16 on: March 31, 2025, 02:22:23 pm »
I am quite sure you are not using the trunk version.
The improvements have not been back-ported.
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.

zeljko

  • Hero Member
  • *****
  • Posts: 1751
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: GTK3 still alpha
« Reply #17 on: March 31, 2025, 07:27:52 pm »
He is using trunk :), I've implemented TMemo.OnChange few hours ago :)

Thaddy

  • Hero Member
  • *****
  • Posts: 16932
  • Ceterum censeo Trump esse delendam
Re: GTK3 still alpha
« Reply #18 on: April 01, 2025, 11:42:39 am »
Tnx. As usual  8-)
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.

dbannon

  • Hero Member
  • *****
  • Posts: 3344
    • tomboy-ng, a rewrite of the classic Tomboy
Re: GTK3 still alpha
« Reply #19 on: April 05, 2025, 03:48:44 am »
zeljko, as I have said before, thanks so much for this progress !

I note that the GTK3 ListView.OwnerData mode is not working. Attached is a small demo of how it works in GTK3, GTK2 and Qt5,Qt6. Easily adapted to Win and Cocoa but I am currently traveling, don't have the hardware and am at the end of a length of wet string in a network  sense.

The OwnerData mode is very useful when you have a large and possibly complicated data set to display, in theory saving some time and memory.

The Qt versions also, incidentally, seem to have a problems with mouse over triggering data reads. And the GTK2 version reads the whole data set initially but then is well behaved.

Want a bug report ?  (IMHO gtk2 is near its use by date)

I am also chasing a mysterious GTK3 window startup bug specific to my project, will take some drill down time.... 

Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

zeljko

  • Hero Member
  • *****
  • Posts: 1751
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: GTK3 still alpha
« Reply #20 on: April 05, 2025, 10:21:28 am »
Yes please, open issue and attach example project. I know about gtk3 listview problem, it is on my todo list.

Zoran

  • Hero Member
  • *****
  • Posts: 1948
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: GTK3 still alpha
« Reply #21 on: April 05, 2025, 02:59:50 pm »
I have got two questions about what is planned for gtk3 in the future Lazarus versions. Please tell us:

1. Lazarus 4 (which is already in pre-release status and separated from main branch) - is the stable gtk3 included (backported) there?

2. Lazarus 5 (current main branch) - will gtk3 be the default widgetset on Linux? Will gtk2 be deprecated?
« Last Edit: April 05, 2025, 03:01:54 pm by Zoran »
Swan, ZX Spectrum emulator https://github.com/zoran-vucenovic/swan

zeljko

  • Hero Member
  • *****
  • Posts: 1751
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: GTK3 still alpha
« Reply #22 on: April 05, 2025, 05:38:46 pm »
1. No, recent gtk3 changes are trunk only. It is very complex to merge gtk3 stuff since it contains new features like GetCanvasScaleFactor and SetCanvasScaleFactor and I'm not willing to do that.
2. If gtk3 will be enough stable why not, but while I'm one man band on gtk3 it is hard to say.

Zoran

  • Hero Member
  • *****
  • Posts: 1948
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: GTK3 still alpha
« Reply #23 on: April 05, 2025, 08:00:59 pm »
1. No, recent gtk3 changes are trunk only. It is very complex to merge gtk3 stuff since it contains new features like GetCanvasScaleFactor and SetCanvasScaleFactor and I'm not willing to do that.
2. If gtk3 will be enough stable why not, but while I'm one man band on gtk3 it is hard to say.

I understand, thank you.
Swan, ZX Spectrum emulator https://github.com/zoran-vucenovic/swan

regs

  • Jr. Member
  • **
  • Posts: 68
Re: GTK3 still alpha
« Reply #24 on: April 20, 2025, 01:46:35 am »
There are also issues with scaling. Forms created at PPI over 96 do not look well. Same problem as with Qt6. They rely on internal GTK3 and Qt6 raster scaling, which is bad, and always presume that they were created at 96 PPI. LCL scaling fixes it adjusting and downscaling back, but not everything goes well with this upscale/downscale process. Ideally it's better to rely only on LCL. And with Qt6 to use PassThrough with QT_ENABLE_HIGHDPI_SCALING=0 (they removed a function to make it worse).

Like TLazVirtualStringTree.

Qt6 does some proper scaling with own components. But everything custom drawn is blurry. With GTK3 it's not as bad because of integer scaling, at least not blurry.

GTK4 made it far worse with "fractional scaling", which is entirely blurry disaster.



regs

  • Jr. Member
  • **
  • Posts: 68
Re: GTK3 still alpha
« Reply #25 on: April 29, 2025, 04:46:36 am »
LCLQt5 also has same problem now

zeljko

  • Hero Member
  • *****
  • Posts: 1751
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: GTK3 still alpha
« Reply #26 on: April 29, 2025, 08:51:13 am »
Is it lazarus trunk ?

 

TinyPortal © 2005-2018