GTK3 Interface
From Lazarus wiki
Jump to navigationJump to search
This article applies to GTK+ Widgetsets only.
See also: Multiplatform Programming Guide
Started as of Lazarus 1.1 r41811
MINIMUM REQUIREMENTS
- Gtk3 v 3.24, note that you must install gtk3 devel packages. eg on Debian based systems: libgtk-3-dev, libcairo2-dev libpango1.0-dev libgdk-pixbuf-2.0-dev and libglib2.0-dev
- 21.03.2025 - gtk3 is not alpha state anymore :) (https://gitlab.com/freepascal.org/lazarus/lazarus/-/commit/287fbaaa1a56d37458146e624d1dd9b6c4debddd )
IDE can be built and run against gtk3 under x11. Designer works, basic coding works. There are still a lot of TODO's and bugs of course. Current bindings (21.03.2025) are 3.22.
- glib2 2.34
- cairo 1.10
- pango 1.30
- libgtk-3-dev to build and link IDE
CURRENT STATE
- 01.03.2026 - I'm using Lazarus IDE (anchor docking + docked form editor) compiled against gtk3. So, we have pretty nice progress. There's still a lot of todo's and bugs to be fixed, but it works on x11 and wayland w/o significant problems, also crashes are pretty rare now (basically because some kind of dialogs not implemented).Plan is that gtk3 will be default widgetset for Lazarus 5.0.
- 08.06.2026 - It just works on x11 and wayland.
- 02.07.2026 Gtk3 is the default linux widgetset in lazarus trunk !