Recent

Author Topic: State of the GTK3 bindings and widgetset?  (Read 2065 times)

colo

  • New Member
  • *
  • Posts: 46
State of the GTK3 bindings and widgetset?
« on: July 11, 2023, 05:27:33 pm »
Since I have started using Lazarus, I always used the default widgetset the OS/distribution packages Lazarus was compiled and installed with to also build my own executables. Without having spent a moment of thought about it, that happened to be GTK+/GTK2, and my custom applications work well and look fine.

However, the writing for GTK2 is on the wall, and has been for some time - the next releases of big and certainly relevant distros like Red Hat Enterprise Linux will probably ship withoput GTK2 libraries in their repos, which will make starting an application linking those libs tough to do. Gtk2 hasn't been maintained upstream since 2018, and even gtk3 is in "no feature development"-mode, as the toolkit's devs have shifted their focus on gtk4.

Luckily, as far as I understand it, there's a GTK3 port of LCL available, and after having installed it, appears usable. Searching on both the forums and the wiki, I am a bit unsure what its actual status is - the Wiki lists it as being "alpha status", while there are no bounties listed.

What's missing to promote GTK3 to the default non-Qt toolkit (if there is such a thing :)) for GNU/Linux hosts? Are there any bounties that should be created (I'm only a casual user, but I would readily and gladly chip in a few dozen Euros if that could make someone skilled enough more willing to spend their time on this) to help move this forward?

AlexTP

  • Hero Member
  • *****
  • Posts: 2457
    • UVviewsoft
Re: State of the GTK3 bindings and widgetset?
« Reply #1 on: July 12, 2023, 09:34:01 am »
I judge the GTK3 state by my text edior - today, if I activate build-mode 'gtk3' in CudaText project, app still looks bad - ie some icons are painted bad (on toolbar / sidebar of app), toolbar/sidebar are misaligned much.

Jurassic Pork

  • Hero Member
  • *****
  • Posts: 1236
Re: State of the GTK3 bindings and widgetset?
« Reply #2 on: July 12, 2023, 09:56:18 am »
hello,
the more reliable gui toolkit for lazarus in a recent linux distro is qt.
Friendly, J.P
Jurassic computer : Sinclair ZX81 - Zilog Z80A à 3,25 MHz - RAM 1 Ko - ROM 8 Ko

AlexTP

  • Hero Member
  • *****
  • Posts: 2457
    • UVviewsoft
Re: State of the GTK3 bindings and widgetset?
« Reply #3 on: July 12, 2023, 09:56:30 am »
Ops, today's Lazarus trunk (with today's FPC 3.2 fixes) is even worse. Editor in gtk3-mode cannot run!

 
Quote
./cudatext
[FORMS.PP] ExceptionOccurred
  Sender=EAccessViolation
  Exception=Access violation
  Stack trace:
  $00000000004C97A5
  $000000000060035B  DESTROY,  line 3459 of intfgraphics.pas
  $00000000004C2DFB
  $00000000006BADE1  MASKHANDLENEEDED,  line 738 of include/icon.inc
  $00000000006BA5A1  GETMASKHANDLE,  line 571 of include/icon.inc
  $00000000006BEAB9  HANDLENEEDED,  line 202 of include/cursorimage.inc
  $00000000006BE8F0  RELEASEHANDLE,  line 153 of include/cursorimage.inc
  $00000000006A35BF  LOCALLOADCURSOR,  line 2129 of graphics.pp
  $00000000005BA318  LOADCURSOR,  line 1680 of include/intfbasewinapi.inc
  $00000000006C4138  LOADCURSOR,  line 686 of include/winapi.inc
  $0000000000A05E8E  INITCURSORS,  line 5190 of atbinhex.pas
  $0000000000A06219  ATBINHEX_$$_init$,  line 5249 of atbinhex.pas
  $00000000004C766C
Exception at 00000000004C97A5: EAccessViolation:
Access violation.

 

TinyPortal © 2005-2018