[go: nahoru, domu]

Jump to content

GTK: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
No edit summary
m Updated Stable and Preview Release Versions
 
(163 intermediate revisions by 80 users not shown)
Line 1: Line 1:
{{short description|Cross-platform widget toolkit for creating graphical user interfaces}}
{{Short description|Free and open-source cross-platform widget toolkit for creating graphical user interfaces}}
{{Use mdy dates|date=March 2023}}
{{Use American English|date=March 2023}}
{{Other uses}}
{{Other uses}}

{{Infobox software
{{Infobox software
| name = GTK
| name = GTK
| title =
| title =
| logo = GTK logo.svg
| logo = GTK logo.svg
| screenshot = Awf-2020-2.png
| screenshot = Gtk4-widget-factory demos.png
| caption = The [https://developer.gnome.org/gtk3/stable/gtk3-widget-factory.html gtk3-widget-factory] is a collection of examples demonstrating many of the [[GUI widget]]s in GTK version 3
| caption = GTK version 4 ([https://web.archive.org/web/20210710003750/https://developer.gnome.org/gtk4/stable/gtk4-widget-factory.html gtk4-widget-factory], a collection of examples that demonstrate many of the [[GUI widget]]s)
| author = [[Spencer Kimball (computer programmer)|Spencer Kimball]], [[Peter Mattis]]
| author = [[Spencer Kimball (computer programmer)|Spencer Kimball]], [[Peter Mattis]]
| developer = [[The GNOME Project]], [[eXperimental Computing Facility]] (XCF)
| developer = [[The GNOME Project]], [[eXperimental Computing Facility]] (XCF)
| released = {{Start date and age|1998|04|14}}
| released = {{Start date and age|1998|04|14}}
| ver layout =
| ver layout = simple
| latest release version = 4.0.3
| latest release version = 4.14.4
| latest release date = {{Start date and age|2021|02|07}}<ref name="latest stable">{{cite mailing list
| latest release date = {{Start date and age|2024|04|02}}
| latest preview version = 4.15.1
| url = https://mail.gnome.org/archives/ftp-release-list/2021-February/msg00015.html
| latest preview date = {{Start date and age|2024|05|21}}
| title = gtk 4.0.3
| programming language = [[C (programming language)|C]], [[CSS]]<ref>{{cite web | url = https://www.openhub.net/p/gtk/analyses/latest/languages_summary | title = The GTK Open Source Project on Open Hub: Languages Page | website = www.openhub.net |access-date=March 28, 2019 |archive-date=March 28, 2019 | archive-url = https://web.archive.org/web/20190328192113/https://www.openhub.net/p/gtk/analyses/latest/languages_summary | url-status = live}}</ref>
| date = 7 February 2021
| operating system = [[Linux]], [[Unix-like]], [[macOS]], [[Windows]]
| access-date = 7 February 2021
| last = Clasen
| platform =
| genre = [[Widget toolkit]]
| first = Matthias
| license = [[GNU Lesser General Public License|LGPLv2.1+]]
| mailing-list= FTP Releases}}</ref>
| website = {{URL|https://gtk.org}}
| latest preview version =
| latest preview date = {{Start date and age|2020|01|31|}}<ref name="latest preview">{{cite mailing list
| url = https://mail.gnome.org/archives/ftp-release-list/2021-January/msg00100.html
| title = gtk 4.1.0
| date = 31 January 2021
| access-date = 7 February 2021
| last = Clasen
| first = Matthias
| mailing-list= FTP Releases}}</ref>
| programming language = [[C (programming language)|C]], [[CSS]]<ref>{{cite web
| url = https://www.openhub.net/p/gtk/analyses/latest/languages_summary
| title = The GTK Open Source Project on Open Hub: Languages Page
| website = www.openhub.net}}</ref>
| operating system = [[Linux]], [[Unix-like]], [[macOS]], [[Windows]]
| platform =
| genre = [[Widget toolkit]]
| license = [[GNU Lesser General Public License|LGPLv2.1+]]
| website = {{URL|https://gtk.org}}
}}
}}


'''GTK''' (formerly '''GTK+''',<ref name=":0">{{Cite web|url=https://mail.gnome.org/archives/gtk-devel-list/2019-February/msg00000.html|title=Project rename to "GTK"|last=Bassi|first=Emmanuele|date=2019-02-06|website=mail.gnome.org|publisher=[[GNOME]] mailinglist|access-date=2019-02-07}}</ref> '''GIMP ToolKit''') is a [[free and open-source]] [[cross-platform]] [[widget toolkit]] for creating [[graphical user interface]]s (GUIs).<ref>{{cite web |url=https://www.gtk.org/features.php |title=GTK+ Features |author=The GTK+ Team |access-date=8 September 2014}}</ref> It is licensed under the terms of the [[GNU Lesser General Public License]], allowing both [[Free software|free]] and [[proprietary software]] to use it. Along with [[Qt (software)|Qt]], it is one of the most popular toolkits for the [[Wayland (display server protocol)|Wayland]] and [[X Window System core protocol|X11]] [[windowing system]]s.<ref>{{Cite web|url=https://www.x.org/wiki/Documentation/|title=Documentation|website=www.x.org}}</ref>
'''GTK''' (formerly '''GIMP ToolKit'''<ref>{{Cite web|url=https://www.gtk.org/about/|title=A brief description on how GTK was born.|website=www.gtk.org|access-date=July 5, 2023|archive-date=June 9, 2023|archive-url=https://web.archive.org/web/20230609101108/https://www.gtk.org/about/|url-status=live}}</ref> and '''GTK+'''<ref name=":0">{{Cite web|url=https://mail.gnome.org/archives/gtk-devel-list/2019-February/msg00000.html|title=Project rename to "GTK"|last=Bassi|first=Emmanuele|date=2019-02-06|website=mail.gnome.org|publisher=[[GNOME]] mailinglist|access-date=2019-02-07|archive-date=November 7, 2020|archive-url=https://web.archive.org/web/20201107233352/https://mail.gnome.org/archives/gtk-devel-list/2019-February/msg00000.html|url-status=live}}</ref>) is a [[free software]] [[cross-platform]] [[widget toolkit]] for creating [[graphical user interface]]s (GUIs).<ref>{{cite web |url=https://www.gtk.org/features.php |title=GTK+ Features |author=The GTK+ Team |access-date=September 8, 2014 |archive-date=May 25, 2019 |archive-url=https://web.archive.org/web/20190525124304/https://www.gtk.org/features.php |url-status=dead}}</ref> It is licensed under the terms of the [[GNU Lesser General Public License]], allowing both [[Free software|free]] and [[proprietary software]] to use it. It is one of the most popular toolkits for the [[Wayland (protocol)|Wayland]] and [[X Window System core protocol|X11]] [[windowing system]]s.<ref>{{Cite web|url=https://www.x.org/wiki/Documentation/|title=Documentation|website=www.x.org|access-date=November 22, 2019|archive-date=December 21, 2019|archive-url=https://web.archive.org/web/20191221235118/https://www.x.org/wiki/Documentation/|url-status=live}}</ref>

The GTK team releases new versions on a regular basis.<ref name="roadmap" /> GTK&nbsp;4 and GTK&nbsp;3 are maintained, while GTK&nbsp;2 is [[End-of-life product|end-of-life]]<!-- and thus support for some older platforms, e.g. Windows XP, Windows 98/Me -->.<ref>{{Cite web|title=GTK 4.0 – GTK Development Blog|date=December 16, 2020|url=https://blog.gtk.org/2020/12/16/gtk-4-0/|access-date=2021-10-18|language=en-US|archive-date=May 28, 2023|archive-url=https://web.archive.org/web/20230528122452/https://blog.gtk.org/2020/12/16/gtk-4-0/|url-status=live}}</ref> GTK1 is independently maintained by the [[CinePaint]] project.<ref>{{Cite web|url=https://gitlab.com/robinrowe/gtk1|title=Robin Rowe / GTK1 · GitLab|website=GitLab|access-date=February 22, 2023|archive-date=March 9, 2023|archive-url=https://web.archive.org/web/20230309201628/https://gitlab.com/robinrowe/gtk1|url-status=live}}</ref>


==Software architecture==
==Software architecture==
[[File:The GTK toolkit.png|thumb|The GTK toolkit]]
[[File:GTK+ software architecture.svg|thumb|Simplified software architecture of '''GTK'''. [[Pango]], [[GDK]], [[Accessibility Toolkit|ATK]], [[GIO (software)|GIO]], [[Cairo (graphics)|Cairo]] and [[GLib]] ]]
[[File:GTK+ software architecture.svg|thumb|Simplified software architecture of '''GTK'''. [[Pango]], [[GDK]], [[Accessibility Toolkit|ATK]], [[GIO (software)|GIO]], [[Cairo (graphics)|Cairo]] and [[GLib]] ]]
[[File:GDK software architecture.svg|thumb|[[GDK]] contains back-ends to [[X11]], [[Wayland (display server protocol)|Wayland]], Broadway ([[Hypertext Transfer Protocol|HTTP]]), [[Quartz Compositor|Quartz]], and [[Graphics Device Interface|GDI]] and relies on [[Cairo (graphics)|Cairo]] for the rendering. Its new SceneGraph is work-in-progress.]]
[[File:GDK software architecture.svg|thumb|[[GDK]] contains back-ends to [[X11]], [[Wayland (display server protocol)|Wayland]], Broadway ([[Hypertext Transfer Protocol|HTTP]]), [[Quartz Compositor|Quartz]], and [[Graphics Device Interface|GDI]] and relies on [[Cairo (graphics)|Cairo]] for the rendering. Its new SceneGraph is work-in-progress.]]


{{update section|date=May 2024|GTK4's release and features}}
The GTK [[Library (computing)|library]] contains a set of graphical control elements ([[Widget (GUI)|widgets]]); version 3.22.16 contains 186 active and 36 deprecated widgets.<ref>{{cite web |title=GTK+ 3 Reference Manual |url=https://developer.gnome.org/gtk3/stable/ |access-date=2017-07-15}}</ref> GTK is an [[Object-oriented programming|object-oriented]] [[widget toolkit]] written in the programming language [[C (programming language)|C]]; it uses [[GObject]], that is the [[GLib]] object system, for the object orientation. While GTK is mainly for windowing systems based on [[X Window System core protocol|X11]] and [[Wayland (display server protocol)|Wayland]], it works on other platforms, including [[Microsoft Windows]] (interfaced with the [[Windows API]]), and [[macOS]] (interfaced with [[Quartz (graphics layer)|Quartz]]). There is also an [[HTML5]] back-end named ''Broadway''.<ref>{{cite web |url=https://developer.gnome.org/gtk3/stable/gtk-broadway.html |title=Using GTK+ with Broadway |website=GNOME Developer|publisher=GNOME |access-date=6 March 2018}}</ref><ref>{{cite web|title=Broadway - GitHub symbiose/symbiose Wiki|url=https://github.com/symbiose/symbiose/wiki/Broadway|website=GitHub|access-date=6 March 2018}}</ref>

The GTK [[Library (computing)|library]] contains a set of graphical control elements ([[Widget (GUI)|widgets]]); version 3.22.16 contains 186 active and 36 deprecated widgets.<ref>{{cite web |title=GTK+ 3 Reference Manual |url=https://developer.gnome.org/gtk3/stable/ |access-date=2017-07-15 |archive-date=June 23, 2021 |archive-url=https://web.archive.org/web/20210623002412/https://developer.gnome.org/gtk3/stable/ |url-status=live}}</ref> GTK is an [[Object-oriented programming|object-oriented]] [[widget toolkit]] written in the programming language [[C (programming language)|C]]; it uses [[GObject]], that is the [[GLib]] object system, for the object orientation. While GTK is mainly for windowing systems based on [[X Window System core protocol|X11]] and [[Wayland (display server protocol)|Wayland]], it works on other platforms, including [[Microsoft Windows]] (interfaced with the [[Windows API]]), and [[macOS]] (interfaced with [[Quartz (graphics layer)|Quartz]]). There is also an [[HTML5]] back-end named ''Broadway''.<ref>{{cite web |url=https://developer.gnome.org/gtk3/stable/gtk-broadway.html |title=Using GTK+ with Broadway |website=GNOME Developer |publisher=GNOME |access-date=March 6, 2018 |archive-date=June 14, 2021 |archive-url=https://web.archive.org/web/20210614021102/https://developer.gnome.org/gtk3/stable/gtk-broadway.html |url-status=live}}</ref><ref>{{cite web|title=Broadway - GitHub symbiose/symbiose Wiki|url=https://github.com/symbiose/symbiose/wiki/Broadway|website=GitHub|access-date=March 6, 2018|archive-date=June 28, 2023|archive-url=https://web.archive.org/web/20230628094731/https://github.com/symbiose/symbiose/wiki/Broadway|url-status=live}}</ref>


GTK can be configured to change the look of the widgets drawn; this is done using different display engines. Several display engines exist which try to emulate the look of the native widgets on the platform in use.
GTK can be configured to change the look of the widgets drawn; this is done using different display engines. Several display engines exist which try to emulate the look of the native widgets on the platform in use.


Starting with version 2.8, released in 2005, GTK began the transition to using [[Cairo (graphics)|Cairo]] to [[Rendering (computer graphics)|render]] most of its graphical control elements [[Widget (GUI)|widgets]].<ref>{{cite web |url=http://developers.slashdot.org/article.pl?sid=05/02/04/2021236 |title=GTK+ to Use Cairo Vector Engine |access-date=2009-12-27}}</ref> Since GTK version 3.0, all rendering is done using Cairo.{{citation needed|date=March 2015}}
Starting with version 2.8, released in 2005, GTK began the transition to using [[Cairo (graphics)|Cairo]] to [[Rendering (computer graphics)|render]] most of its graphical control elements [[Widget (GUI)|widgets]].<ref>{{cite web |url=http://developers.slashdot.org/article.pl?sid=05/02/04/2021236 |title=GTK+ to Use Cairo Vector Engine |date=February 5, 2005 |access-date=2009-12-27}}</ref> Since GTK version 3.0, all rendering is done using Cairo.<ref>{{Cite web |title=Gtk: Migrating from GTK 2.x to GTK 3 |url=https://docs.gtk.org/gtk3/migrating-2to3.html |access-date=2022-06-16 |website=docs.gtk.org |language=en |quote=All drawing in GTK 3 is done via Cairo. |archive-date=May 26, 2023 |archive-url=https://web.archive.org/web/20230526073106/https://docs.gtk.org/gtk3/migrating-2to3.html |url-status=live}}</ref>


On 2018-Jan-26 at [[DevConf.cz]] Matthias Clasen gave an overview of the current state of GTK 4 development, including a high-level explanation of how rendering and input worked in GTK 3, what changes are being made in GTK 4 (>3.90), and why.<ref>{{cite web |url=https://mclasen.fedorapeople.org/gtk4-devconf2018.pdf |title=Matthias Clasen DevConf.cz 2018 talk about GTK+ 4 |date=2018-01-26}}</ref> In February it was announced that GTK 4 will drop the “+” from the project's name.<ref name=":0" />
On January 26, 2018 at [[DevConf.cz]], Matthias Clasen gave an overview of the current state of GTK 4 development, including a high-level explanation of how rendering and input worked in GTK 3, what changes are being made in GTK 4 (>3.90), and why.<ref>{{cite web |url=https://mclasen.fedorapeople.org/gtk4-devconf2018.pdf |title=Matthias Clasen DevConf.cz 2018 talk about GTK+ 4 |date=2018-01-26 |access-date=March 9, 2018 |archive-date=2024-04-22 |archive-url=https://web.archive.org/web/20240422184711/https://mclasen.fedorapeople.org/gtk4-devconf2018.pdf |url-status=live}}</ref> On February 6, 2019 it was announced that GTK 4 will drop the “+” from the project's name.<ref name=":0" />


==={{Anchor|GDK}} GIMP Drawing Kit (GDK)===
===GTK Drawing Kit (GDK)===
{{Main|GDK}}
{{Main|GDK}}


GDK acts as a wrapper around the low-level functions provided by the underlying windowing and graphics systems.
GDK acts as a wrapper around the [[Low-level programming language|low-level functions]] provided by the underlying windowing and graphics systems.


===GTK Scene Graph Kit (GSK)===
GDK is found in the <code>[https://git.gnome.org/browse/gtk+/tree/gdk /gdk]</code> directory.

==={{Anchor|GSK}} GTK Scene Graph Kit (GSK)===
{{Main|GTK Scene Graph Kit}}
{{Main|GTK Scene Graph Kit}}


GSK is the rendering and scene graph API for GTK. GSK lies between the graphical control elements (widgets) and the rendering. GSK was finally merged into GTK version 3.90 released March 2017.
GSK is the [[Rendering (computer graphics)|rendering]] and [[scene graph]] API for GTK. GSK lies between the graphical control elements (widgets) and the rendering. GSK was finally merged into GTK version 3.90 released March 2017.

GSK is found in the <code>[https://git.gnome.org/browse/gtk+/tree/gsk /gsk]</code> directory.


===GtkInspector===
===GtkInspector===
GtkInspector was introduced with version 3.14.<ref>{{cite web |url=http://blogs.gnome.org/mclasen/2014/05/15/introducing-gtkinspector/ |title=Introducing GtkInspector |date=2014-05-15}}</ref><ref>{{cite web |url=http://blogs.gnome.org/mclasen/2014/07/11/another-gtkinspector-update/ |title=Another GtkInspector update |date=2014-07-11}}</ref>
GtkInspector was introduced with version 3.14.<ref>{{cite web |url=http://blogs.gnome.org/mclasen/2014/05/15/introducing-gtkinspector/ |title=Introducing GtkInspector |date=2014-05-15 |access-date=May 17, 2014 |archive-date=May 17, 2014 |archive-url=https://web.archive.org/web/20140517185349/http://blogs.gnome.org/mclasen/2014/05/15/introducing-gtkinspector/ |url-status=live}}</ref><ref>{{cite web |url=http://blogs.gnome.org/mclasen/2014/07/11/another-gtkinspector-update/ |title=Another GtkInspector update |date=2014-07-11 |access-date=July 13, 2014 |archive-date=July 14, 2014 |archive-url=https://web.archive.org/web/20140714164943/http://blogs.gnome.org/mclasen/2014/07/11/another-gtkinspector-update/ |url-status=live}}</ref>
GtkInspector can only be invoked after installing the development package [https://packages.debian.org/search?arch=amd64&keywords=libgtk-3-dev libgtk-3-dev]/[https://apps.fedoraproject.org/packages/gtk+-devel gtk+-devel].
GtkInspector can only be invoked after installing the development package libgtk-3-dev/gtk+-devel.


===GUI designers===
===GUI designers===
There are several [[Graphical user interface builder|GUI designers]] for GTK. The following projects are active as of July 2011:
There are several [[Graphical user interface builder|GUI designers]] for GTK. The following projects were active as of July 2011:
* [[Glade Interface Designer|Glade]], supports [[#GtkBuilder|GtkBuilder]], which is a GTK built-in GUI description format.
* [[Glade Interface Designer|Glade]], supports [[#GtkBuilder|GtkBuilder]], which is a GTK built-in GUI description format.
* [[Gazpacho (software)|Gazpacho]], GUI builder for the GTK toolkit written in Python<ref>{{Cite web|url=https://packages.debian.org/search?keywords=gazpacho|title=Debian -- Package Search Results -- gazpacho|website=packages.debian.org}}</ref>
* [[Gazpacho (software)|Gazpacho]], GUI builder for the GTK toolkit written in Python<ref>{{Cite web|url=https://packages.debian.org/search?keywords=gazpacho|title=Debian -- Package Search Results -- gazpacho|website=packages.debian.org|access-date=November 22, 2019|archive-date=June 28, 2023|archive-url=https://web.archive.org/web/20230628022158/https://packages.debian.org/search?keywords=gazpacho|url-status=live}}</ref>
* Crow Designer, relies on its own GuiXml format and GuiLoader library.<ref>{{cite web |url=http://nothing-personal.googlecode.com/ |archive-url=https://archive.today/20130124182138/http://nothing-personal.googlecode.com/ |url-status=dead |archive-date=2013-01-24 |title=Nothing-personal - A development site for Crow Designer, GuiLoader and Rally - Google Project Hosting |access-date=2014-02-17 }}</ref>
* Crow Designer, relies on its own GuiXml format and GuiLoader library.<ref>{{cite web |url=http://nothing-personal.googlecode.com/ |archive-url=https://archive.today/20130124182138/http://nothing-personal.googlecode.com/ |url-status=dead |archive-date=2013-01-24 |title=Nothing-personal - A development site for Crow Designer, GuiLoader and Rally - Google Project Hosting |access-date=2014-02-17}}</ref>
* [[Stetic]], part of [[MonoDevelop]], oriented toward [[Gtk Sharp|Gtk#]].
* [[Stetic]], part of [[MonoDevelop]], oriented toward [[Gtk Sharp|Gtk#]].
* [[Gambas]] since version 2.0 atop [[BASIC]]
* [[Xojo]] on [[Linux]]
* [[Lazarus (IDE)|Lazarus]] on Linux defaults to interfacing with GTK 2


====GtkBuilder====
====GtkBuilder====
GtkBuilder allows user interfaces to be designed without writing code. The interface is described in an [[Extensible Markup Language]] (XML) file, which is then loaded at runtime and the objects created automatically. The Glade Interface Designer allows creation of the user interface in a ''what you see is what you get'' ([[WYSIWYG]]) manner. The description of the user interface is independent from the programming language being used.
GtkBuilder allows user interfaces to be designed without writing code. The interface is described in an [[XML|Extensible Markup Language]] (XML) file, which is then loaded at runtime and the objects created automatically. The Glade Interface Designer allows creation of the user interface in a ''what you see is what you get'' ([[WYSIWYG]]) manner. The description of the user interface is independent from the programming language being used.


===Language bindings===
===Language bindings===
{{Main article|List of language bindings for GTK}}
{{Main article|List of language bindings for GTK}}
<!-- {{Main|List of language bindings for GTK+ 2}} -->
<!-- {{Main|List of language bindings for GTK+ 3}} -->


A library written in one programming language may be used in another language if [[language binding|bindings]] are written; GTK has a range of bindings for various languages.<ref>{{cite web |url=https://www.gtk.org/language-bindings.php |title=GTK+ Language Bindings |author=The GTK+ Team |website=www.gtk.org |access-date=3 June 2017}}</ref>
[[Language bindings]] are available for using GTK from languages other than C, including [[C++]], [[Genie (programming language)|Genie]], [[JavaScript]], [[Perl]], [[Python (programming language)|Python]], [[Vala (programming language)|Vala]], and [[List of language bindings for GTK|others]].<ref>{{cite web|url=https://www.gtk.org/language-bindings.php|title=GTK+ Language Bindings|author=The GTK+ Team|website=www.gtk.org|access-date=June 3, 2017|archive-date=May 25, 2019|archive-url=https://web.archive.org/web/20190525124310/https://www.gtk.org/language-bindings.php|url-status=dead}}</ref>

GtkSharp, not to be confused with Gtk#, supports GTK 3.


====Gtk#====
====Gtk#====
{{Infobox software
{{Infobox software
| name = Gtk#
| name = Gtk#
| logo = Gtk Sharp Logo.png
| logo = Gtk Sharp Logo.png
| developer = [[Xamarin]]
| developer = [[Xamarin]]
| released = {{Start date and age|2004|03|12}}
| released = {{Start date and age|2004|03|12}}
| latest release version = 2.12.41<ref name="auto">{{cite web |url=https://github.com/mono/gtk-sharp |title=Gtk# is a Mono/.NET binding to the cross platform Gtk+ GUI toolkit and the foundation of most GUI apps built with Mono: mono/gtk-sharp |date=November 16, 2019 |via=GitHub |access-date=September 1, 2016 |archive-date=March 11, 2016 |archive-url=https://web.archive.org/web/20160311182849/https://github.com/mono/gtk-sharp |url-status=live}}</ref>
| latest release version = 2.12.41<ref name="auto">{{cite web
| latest release date = {{Start date and age|2016|09|22}}
| url = https://github.com/mono/gtk-sharp
| latest preview version = 2.99.3 (for GTK3)<ref name="auto" />
| title = Gtk# is a Mono/.NET binding to the cross platform Gtk+ GUI toolkit and the foundation of most GUI apps built with Mono: mono/gtk-sharp
| latest preview date = {{Start date and age|2014|06|06}}
| date = 16 November 2019
| programming language = [[C Sharp (programming language)|C#]], [[XML]], [[Perl]], [[C (programming language)|C]]
| via = GitHub}}</ref>
| operating system = [[Windows]], [[macOS]], [[Linux]]
| latest release date = {{Start date and age|2016|09|22}}
| genre = [[Widget toolkit]]
| latest preview version = 2.99.3 (for GTK3)<ref name="auto"/>
| license = [[GNU Lesser General Public License]]
| latest preview date = {{Start date and age|2014|06|06}}
| website = {{URL|mono-project.com/GtkSharp}}
| programming language = [[C Sharp (programming language)|C#]], [[XML]], [[Perl]], [[C (programming language)|C]]
| operating system = [[Windows]], [[macOS]], [[Linux]]
| genre = [[Widget toolkit]]
| license = [[GNU Lesser General Public License]]
| website = {{URL|mono-project.com/GtkSharp}}
}}
}}


'''Gtk#''' is a set of [[.NET Framework]] bindings for the GTK [[graphical user interface]] (GUI) [[Widget toolkit|toolkit]] and assorted [[GNOME]] [[Library (computer science)|libraries]]. The library facilitates building graphical GNOME applications using [[Mono (software)|Mono]] or any other compliant [[Common Language Runtime]] (CLR). Gtk# is an event-driven system like any other modern windowing library where every [[Widget (computing)|widget]] allows associating handler methods, which get called when certain events occur.
'''Gtk#''' is a set of [[.NET Framework]] bindings for the GTK [[graphical user interface]] (GUI) [[Widget toolkit|toolkit]] and assorted [[GNOME]] [[Library (computer science)|libraries]]. The library facilitates building graphical GNOME applications using [[Mono (software)|Mono]] or any other compliant [[Common Language Runtime]] (CLR). Gtk# is an event-driven system like any other modern windowing library where every [[Widget (computing)|widget]] allows associating handler methods, which get called when certain events occur.{{Citation needed|date=February 2023}}


Applications built using Gtk# will run on many platforms including [[Linux]], [[Windows]] and [[macOS]]. The Mono packages for Windows include GTK, Gtk# and a native theme to make applications look like native Windows applications. Starting with Mono 1.9, running Gtk# applications on macOS no longer requires running an [[X Window System|X11]] server.<ref name="GtkMac">{{cite web |url=http://download.xamarin.com/GTKforWindows/Windows/gtk-sharp-2.12.22.msi |title=Download Gtk# |publisher=The GTK+ Project}}</ref>
Applications built using Gtk# will run on many platforms including [[Linux]], [[Windows]] and [[macOS]]. The Mono packages for Windows include GTK, Gtk# and a native theme to make applications look like native Windows applications. Starting with Mono 1.9, running Gtk# applications on macOS no longer requires running an [[X Window System|X11]] server.<ref>{{cite web |url=http://download.xamarin.com/GTKforWindows/Windows/gtk-sharp-2.12.22.msi |title=Download Gtk# |publisher=The GTK+ Project |access-date=December 23, 2014 |archive-date=December 14, 2013 |archive-url=https://web.archive.org/web/20131214121832/http://download.xamarin.com/GTKforWindows/Windows/gtk-sharp-2.12.22.msi |url-status=dead}}</ref>


[[Glade Interface Designer]] can be used with the Glade# bindings to easily design GUI applications. A GUI designer named [[Stetic]] is integrated with the [[MonoDevelop]] [[integrated development environment]] (IDE).
[[Glade Interface Designer]] can be used with the Glade# bindings to easily design GUI applications. A GUI designer named [[Stetic]] is integrated with the [[MonoDevelop]] [[integrated development environment]] (IDE).


In addition to support the standard GTK/GNOME stack of development tools, the {{mono|gtk-dotnet.dll}} assembly provides a bridge to consume functionality available on the .NET stack. At this point this includes the functionality to use System.Drawing to draw on a widget.
In addition to support the standard GTK/GNOME stack of development tools, the {{mono|gtk-dotnet.dll}} assembly provides a bridge to consume functionality available on the .NET stack. At this point this includes the functionality to use System.Drawing to draw on a widget.{{Citation needed|date=February 2023}}


{{As of|2020|09}}, Gtk# support for Gtk3 remains in the preview phase and forked projects, such as [https://github.com/GtkSharp/GtkSharp GtkSharp], have been founded to provide full Gtk3 support for C# and other CLI languages. The lack of a released version of Gtk# with support for Gtk3 was cited as a reason to remove the [[Banshee (media player)|Banshee]] media player in Ubuntu 12.04.<ref name=itworld-bansheegeddon>{{cite web|title='Bansheegeddon' may see Banshee, Mono dropped from Ubuntu default|url=http://www.itworld.com/article/2734148/it-management/-bansheegeddon--may-see-banshee--mono-dropped-from-ubuntu-default.html|website=ITWorld|access-date=31 August 2015}}</ref>
{{As of|2020|09}}, Gtk# support for Gtk3 remains in the preview phase and forked projects, such as GtkSharp, have been founded to provide full Gtk3 support for C# and other CLI languages. The lack of a released version of Gtk# with support for Gtk3 was cited as a reason to remove the [[Banshee (media player)|Banshee]] media player in Ubuntu 12.04.<ref>{{cite web|title='Bansheegeddon' may see Banshee, Mono dropped from Ubuntu default|url=http://www.itworld.com/article/2734148/it-management/-bansheegeddon--may-see-banshee--mono-dropped-from-ubuntu-default.html|website=ITWorld|access-date=August 31, 2015|archive-date=July 10, 2015|archive-url=https://web.archive.org/web/20150710205702/http://www.itworld.com/article/2734148/it-management/-bansheegeddon--may-see-banshee--mono-dropped-from-ubuntu-default.html|url-status=dead}}</ref>


==Development==
==Development==
GTK is mainly developed by [[The GNOME Project]], which also develops the GNOME Development Platform and the GNOME Desktop Environment.<ref>{{cite web |url=https://wiki.gnome.org/Engagement/SWOT |title=GNOME Quick SWOT Analysis |website=The GNOME Project |access-date=18 March 2014}}</ref>
GTK is mainly developed by [[The GNOME Project]], which also develops the GNOME Development Platform and the GNOME Desktop Environment.<ref>{{cite web |url=https://wiki.gnome.org/Engagement/SWOT |title=GNOME Quick SWOT Analysis |website=The GNOME Project |access-date=March 18, 2014 |archive-date=March 18, 2014 |archive-url=https://web.archive.org/web/20140318194439/https://wiki.gnome.org/Engagement/SWOT |url-status=live}}</ref>


GTK development is loosely managed. Discussion chiefly occurs on several public mailing lists.<ref>{{cite web |url=http://mail.gnome.org |title=GTK+ and GNOME Mailing Lists |publisher=The GNOME Project |access-date=4 December 2011}}</ref> GNOME developers and users gather at an annual ''GNOME Users And Developers European Conference'' [[GUADEC]] meeting to discuss GNOME's current state and future direction.<ref>{{cite web |url=http://guadec.expectnation.com/public/content/about |title=About |publisher=GNOME Users And Developers European Conference ([[GUADEC]]) |access-date=3 December 2011 |url-status=dead |archive-url=https://web.archive.org/web/20111004061840/http://guadec.expectnation.com/public/content/about |archive-date=4 October 2011 }}</ref> GNOME incorporates standards and programs from [[freedesktop.org]] to better [[Interoperability|interoperate]] with other desktops.
GTK development is loosely managed. Discussion chiefly occurs on several public mailing lists.<ref>{{cite web |url=http://mail.gnome.org/ |title=GTK+ and GNOME Mailing Lists |publisher=The GNOME Project |access-date=December 4, 2011 |archive-date=December 26, 2018 |archive-url=https://web.archive.org/web/20181226071642/https://mail.gnome.org/ |url-status=live}}</ref> GNOME developers and users gather at an annual ''GNOME Users And Developers European Conference'' [[GUADEC]] meeting to discuss GNOME's current state and future direction.<ref>{{cite web |url=http://guadec.expectnation.com/public/content/about |title=About |publisher=GNOME Users And Developers European Conference ([[GUADEC]]) |access-date=December 3, 2011 |url-status=dead |archive-url=https://web.archive.org/web/20111004061840/http://guadec.expectnation.com/public/content/about |archive-date=October 4, 2011}}</ref> GNOME incorporates standards and programs from [[freedesktop.org]] to better [[Interoperability|interoperate]] with other desktops.{{Citation needed|date=February 2023}}


GTK is mainly written in [[C (programming language)|C]].<ref name= "gnomelanguages">{{cite web |url=http://www.ohloh.net/p/gnome/analyses/latest/languages_summary |title=GNOME Languages |website=[[Ohloh]] |publisher=Black Duck Software |access-date=22 May 2014}}</ref> Many [[language binding]]s [[List of language bindings for GTK|are available]].
GTK is mainly written in [[C (programming language)|C]].<ref>{{cite web |url=http://www.ohloh.net/p/gnome/analyses/latest/languages_summary |title=GNOME Languages |website=[[Ohloh]] |publisher=Black Duck Software |access-date=May 22, 2014 |archive-date=May 22, 2014 |archive-url=https://web.archive.org/web/20140522160337/http://www.ohloh.net/p/gnome/analyses/latest/languages_summary |url-status=dead}}</ref> Many [[language binding]]s [[List of language bindings for GTK|are available]].


On 1 September 2016 a post on the GTK development blog denoted, among other things, the future numbering scheme of GTK.<ref name="devblog160901">{{cite web |url=https://blog.gtk.org/2016/09/01/versioning-and-long-term-stability-promise-in-gtk/ |title=Versioning and long term stability promise in GTK |date=2016-09-01 |publisher=GTK development blog}}</ref> GTK version 3.22 from autumn 2016 shall be the last 3.x release.{{Clarify|reason=3.24 has been released|date=December 2020}} After that all resources will move to the GTK 4 development series with the version names 3.90, 3.92, etc. Even as the 4.x series enters development, notable applications still use GTK 2.x and have not been ported to 3.22. Regarding the future of legacy [[:Category:Software that uses GTK|software using GTK]], there is no collective project to port GTK 2.x software to 3.22.
On September 1, 2016, a post on the GTK development blog denoted, among other things, the future numbering scheme of GTK.<ref name="devblog160901">{{cite web |url=https://blog.gtk.org/2016/09/01/versioning-and-long-term-stability-promise-in-gtk/ |title=Versioning and long term stability promise in GTK |date=2016-09-01 |publisher=GTK development blog |access-date=September 2, 2016 |archive-date=September 21, 2016 |archive-url=https://web.archive.org/web/20160921023548/https://blog.gtk.org/2016/09/01/versioning-and-long-term-stability-promise-in-gtk/ |url-status=live}}</ref> GTK version 3.22, released in Autumn 2016, was planned to be the last 3.x release, although version 3.24 followed in Fall 2018 with the delay of GTK 4.<ref>{{Cite web|url=https://www.phoronix.com/scan.php?page=news_item&px=GTK-3.24-Coming-This-Fall|title=GTK+ 3.24 To Deliver Some New Features While Waiting For GTK4|website=www.phoronix.com|access-date=April 2, 2021|archive-date=April 22, 2024|archive-url=https://web.archive.org/web/20240422182931/https://www.phoronix.com/news/GTK-3.24-Coming-This-Fall|url-status=live}}</ref>
The development of GTK 4 used version names 3.90, 3.92, etc. until the first GTK 4.0 stable release was launched in December 2020.<ref>{{cite web |url=https://blog.gtk.org/2020/12/16/gtk-4-0/ |title=GTK 4.0 |publisher=GTK development blog |date=2020-12-16 |access-date=October 18, 2021 |archive-date=May 28, 2023 |archive-url=https://web.archive.org/web/20230528122452/https://blog.gtk.org/2020/12/16/gtk-4-0/ |url-status=live}}</ref> Despite the first stable GTK 4 release, some [[:Category:Software that uses GTK|applications using GTK]] still rely on GTK 2. For example, as of January 2022, [[GIMP]] is still being ported to GTK 3.<ref>{{cite news |url=https://www.gimp.org/news/2020/11/06/gimp-2-99-2-released/ |title=Development release GIMP 2.99.2 is out |date=2020-11-06 |publisher=Gimp news |access-date=January 6, 2022 |archive-date=April 10, 2021 |archive-url=https://web.archive.org/web/20210410211809/https://www.gimp.org/news/2020/11/06/gimp-2-99-2-released/ |url-status=live}}</ref>


===Build automation===
===Build automation===
In former times GTK (and GNOME, GLib, etc.) utilized the [[GNU Build System]] (named Autotools) as the [[build automation]] system of choice.
GTK (and GNOME, GLib, etc.) formerly utilized the [[GNU Build System]] (named Autotools) as the [[build automation]] system of choice.


Since 14 Aug 2017, the master branch of GTK builds with [[Meson (software)|Meson]], and the Autotools build system files have been dropped.<ref>{{cite web |url=https://mail.gnome.org/archives/gtk-devel-list/2017-August/msg00028.html |title=Build system change GTK's master branch |website=mail.gnome.org}}</ref>
Since August 14, 2017, the master branch of GTK has been built with [[Meson (software)|Meson]], and the Autotools build system files have been dropped.<ref>{{cite web |url=https://mail.gnome.org/archives/gtk-devel-list/2017-August/msg00028.html |title=Build system change GTK's master branch |website=mail.gnome.org |access-date=October 29, 2018 |archive-date=August 15, 2017 |archive-url=https://web.archive.org/web/20170815142255/https://mail.gnome.org/archives/gtk-devel-list/2017-August/msg00028.html |url-status=live}}</ref>


==Criticism==
==Criticism==
The most common criticism of GTK is the lack of backward-compatibility in major updates, most notably in the [[application programming interface]] (API)<ref>{{cite web |url=http://blogs.gnome.org/mortenw/2014/06/23/how-does-one-create-a-gtk-application/ |title=How Does One Create A Gtk+ Application? – Morten Welinder |website=blogs.gnome.org |date=June 23, 2014 |access-date=June 3, 2017 |archive-date=July 1, 2014 |archive-url=https://web.archive.org/web/20140701054734/http://blogs.gnome.org/mortenw/2014/06/23/how-does-one-create-a-gtk-application/ |url-status=live}}</ref> and theming.<ref>{{cite web |url=https://blogs.gnome.org/mclasen/2015/11/20/a-gtk-update/ |title=A GTK+ update |author=mclasen |date=November 20, 2015 |website=Goings on |access-date=June 3, 2016 |archive-date=May 2, 2016 |archive-url=https://web.archive.org/web/20160502021009/https://blogs.gnome.org/mclasen/2015/11/20/a-gtk-update/ |url-status=live}}</ref>
{{See also|Category:Software that was ported from GTK to Qt}}

The most common criticism of GTK is the lack of backward-compatibility in major updates, most notably in the [[application programming interface]] (API)<ref>{{cite web |url=http://blogs.gnome.org/mortenw/2014/06/23/how-does-one-create-a-gtk-application/ |title=How Does One Create A Gtk+ Application? – Morten Welinder |website=blogs.gnome.org |access-date=3 June 2017}}</ref> and theming.<ref>{{cite web |url=https://blogs.gnome.org/mclasen/2015/11/20/a-gtk-update/ |title=A GTK+ update |author=mclasen |date=20 November 2015 |website=Goings on}}</ref>


The compatibility breaks between minor releases during the GTK 3.x development cycle was explained by Benjamin Otte as due to strong pressures to innovate, such as providing the features modern users expect and supporting the increasingly influential [[Wayland (display server protocol)|Wayland display server protocol]]. With the release of GTK 4, the pressure from the need to innovate will have been released and the balance between stability and innovation will tip toward stability.<ref name="ottegtk4" /> Similarly, recent changes to theming are specifically intended to improve and stabilise that part of the API, meaning some investment now should be rewarded later.
The compatibility breaks between minor releases during the GTK 3.x development cycle was explained by Benjamin Otte as due to strong pressures to innovate, such as providing the features modern users expect and supporting the increasingly influential [[Wayland (display server protocol)|Wayland display server protocol]]. With the release of GTK 4, the pressure from the need to innovate will have been released and the balance between stability and innovation will tip toward stability.<ref name="ottegtk4" /> Similarly, recent changes to theming are specifically intended to improve and stabilise that part of the API, meaning some investment now should be rewarded later.


* Dirk Hohndel, codeveloper of [[Subsurface (software)|Subsurface]] and member of [[Intel]]'s Open-Source Technology Center, criticized the GTK developers for being abrasive and ignoring most community requests.<ref>{{cite web |url=https://www.phoronix.com/scan.php?page=news_item&px=MTU2ODM |title=The Biggest Problem With GTK & What Qt Does Good |last=Larabel |first=Michael |publisher=[[Phoronix]] |date=2014-01-12 |access-date=2014-09-10}}</ref>
* Dirk Hohndel, codeveloper of [[Subsurface (software)|Subsurface]] and member of [[Intel]]'s Open-Source Technology Center, criticized the GTK developers for being abrasive and ignoring most community requests.<ref>{{cite web |url=https://www.phoronix.com/scan.php?page=news_item&px=MTU2ODM |title=The Biggest Problem With GTK & What Qt Does Good |last=Larabel |first=Michael |publisher=[[Phoronix]] |date=2014-01-12 |access-date=2014-09-10 |archive-date=July 1, 2016 |archive-url=https://web.archive.org/web/20160701024533/http://www.phoronix.com/scan.php?page=news_item&px=MTU2ODM |url-status=live}}</ref>
* Hong Jen Yee, developer of [[LXDE]] (the GTK version of which was dropped and all efforts focused on the [[LXQt|Qt port]]), expressed disdain for version 3 of the GTK toolkit's radical API changes and increased memory usage, and ported [[PCMan File Manager]] (PCManFM) to [[Qt (software)|Qt]]. PCManFM is being developed with a GTK and with a Qt backend at the same time.<ref>{{cite web |url=http://blog.lxde.org/?p=990 |title=PCManFM Qt 0.1.0 released |author=Hong Jen Yee |date=2013-03-26 |access-date=2014-09-10}}</ref>
* Hong Jen Yee, developer of [[LXDE]] (the GTK version of which was dropped and all efforts focused on the [[LXQt|Qt port]]), expressed disdain for version 3 of the GTK toolkit's radical API changes and increased memory usage, and ported [[PCMan File Manager]] (PCManFM) to [[Qt (software)|Qt]]. PCManFM is being developed with a GTK and with a Qt backend at the same time.<ref>{{cite web |url=http://blog.lxde.org/?p=990 |title=PCManFM Qt 0.1.0 released |author=Hong Jen Yee |date=2013-03-26 |access-date=2014-09-10 |archive-date=June 7, 2013 |archive-url=https://web.archive.org/web/20130607022757/http://blog.lxde.org/?p=990 |url-status=live}}</ref>
* The [[Audacious (software)|Audacious]] music player moved to Qt in version 3.6.<ref>{{Cite web|url=https://audacious-media-player.org/news/32-audacious-3-6-released|title=Audacious - An Advanced Audio Player|website=audacious-media-player.org}}</ref> The reasons stated by the developers for this include a transition to client-side window decorations, which they claim cause the application to look "[[GNOME]]-y and out of place."<ref>{{cite web |url=http://redmine.audacious-media-player.org/boards/1/topics/1135 |title=Ugly window decorations and how to fix them (GTK 3.12) |last=Lindgren |first=John |date=2014-05-06 |access-date=2014-10-21}}</ref>
* The [[Audacious (software)|Audacious]] music player moved to Qt in version 3.6.<ref>{{Cite web|url=https://audacious-media-player.org/news/32-audacious-3-6-released|title=Audacious - An Advanced Audio Player|website=audacious-media-player.org|access-date=November 22, 2019|archive-date=July 28, 2019|archive-url=https://web.archive.org/web/20190728162703/https://audacious-media-player.org/news/32-audacious-3-6-released|url-status=live}}</ref> The reasons stated by the developers for this include a transition to client-side window decorations, which they claim cause the application to look "[[GNOME]]-y and out of place."<ref>{{cite web |url=http://redmine.audacious-media-player.org/boards/1/topics/1135 |title=Ugly window decorations and how to fix them (GTK 3.12) |last=Lindgren |first=John |date=2014-05-06 |access-date=2014-10-21 |archive-date=October 13, 2014 |archive-url=https://web.archive.org/web/20141013110025/http://redmine.audacious-media-player.org/boards/1/topics/1135 |url-status=live}}</ref>
* [[Wireshark]] has switched to Qt due to not having a good experience with GTK's cross-platform support.<ref>{{cite web |url=https://blog.wireshark.org/2013/10/switching-to-qt/ |title=We're switching to Qt |author=Gerald Combs |date=2013-10-15 |access-date=2015-08-19}}</ref>
* [[Wireshark]] has switched to Qt due to not having a good experience with GTK's cross-platform support.<ref>{{cite web |url=https://blog.wireshark.org/2013/10/switching-to-qt/ |title=We're switching to Qt |author=Gerald Combs |date=2013-10-15 |access-date=2015-08-19 |archive-date=October 19, 2013 |archive-url=https://web.archive.org/web/20131019164809/https://blog.wireshark.org/2013/10/switching-to-qt/ |url-status=live}}</ref>


==Use==
==Use==
Line 152: Line 135:


===Applications===
===Applications===
{{Main article|List of GTK applications|:Category:Software that uses GTK}}
{{Main page|List of GTK applications|:Category:Software that uses GTK}}


Some notable applications that use or once used GTK as a widget toolkit include:
Some notable applications that use GTK as a widget toolkit include:
* [[GNOME Core Applications]] – as part of [[GNOME]] desktop environment, developed in concert with GTK itself.


{{Div col|colwidth=30em}}
{{Div col|colwidth=30em}}
* [[Ardour (software)|Ardour]], a [[digital audio workstation]] (DAW)
* [[AbiWord]] – [[Word processor]]
* [[Deluge (software)|Deluge]], a [[BitTorrent]] client
* [[Anjuta]] – [[Integrated development environment]] (IDE)
* [[Ardour (software)|Ardour]] [[Digital audio workstation]]
* [[Foliate (software)|Foliate]], an [[ebook]] reader
* [[GIMP]], a [[raster graphics editor]]
* [[Chromium (web browser)|Chromium]] – [[Web browser]] (Until version 34, replaced by Aura in version 35+) {{citation needed|date=December 2015}}
* [[GNOME Builder]], an [[integrated development environment]] (IDE)
* [[Ekiga]] (formerly GnomeMeeting) – [[VoIP]] and [[Videoconferencing|video conferencing]] application
* [[GNOME Core Applications]], a collection of applications as a standard bundle of the [[GNOME]] desktop environment
* [[GNU Emacs]] can use GTK when running on X.
* [[Evolution (software)|Evolution]] [[Personal information manager]]
* [[GNOME Evolution]], a [[personal information manager]]
* [[HandBrake]], digital video [[transcoder]]
* [[gconfig]] – [[Linux kernel]] source configuration utility.
* [[Inkscape]], a [[vector graphics editor]]
* [[Geany]] – a lightweight cross-platform IDE and GTK text editor based on [[Scintilla (editing component)|Scintilla]].
* [[GIMP]] [[Raster graphics editor]]
* [[LibreOffice]], an [[office suite]]
* [[Lutris]], a game manager
* [[Gnumeric]] – [[Spreadsheet]] application
* [[Gramps]] [[Genealogy software]]
* [[Mozilla Firefox]], a [[web browser]]
* [[Mozilla Thunderbird]], a personal information manager
* [[Inkscape]] – [[Vector graphics editor]] for [[Scalable Vector Graphics|SVG]]
* [[LiVES]] [[Video editing software|Video editor]]
* [[Pitivi]], a [[video editing software|video editor]]
* [[PCSX-Reloaded]], a [[video game console emulator]]
* [[Midori (browser)|Midori]] – [[Minimalism (computing)|Minimalistic]] [[web browser]] using GTKWebKit as rendering engine and GTK as widget toolkit
* [[REAPER]], a digital audio workstation (DAW)
* [[Pidgin (software)|Pidgin]] – [[Instant messaging|Instant messenger]] application
* [[Remmina]], a [[remote desktop software|remote desktop]] client
* [[Transmission (BitTorrent client)|Transmission]], a Bit Torrent client
{{div col end}}
{{div col end}}


===Desktop environments===
===Desktop environments===
{{Main article|:Category:Desktop environments based on GTK|l1=Desktop environments based on GTK}}
{{Main page|:Category:Desktop environments based on GTK|l1=Desktop environments based on GTK}}


Several [[desktop environment]]s utilize GTK as the widget toolkit.
Several [[desktop environment]]s utilize GTK as the widget toolkit.


====Current====
====Current====
[[File:Phosh interface.jpg|thumb|[[Phosh]]]]

* [[GNOME]], based on GTK, meaning that programs native to GNOME use GTK
* [[GNOME]], based on GTK, meaning that programs native to GNOME use GTK
* [[Budgie (desktop environment)|Budgie]], built from scratch for the SolusOS successor, [[Solus Operating System]]
* [[Budgie (desktop environment)|Budgie]], built from scratch for the SolusOS successor, [[Solus Operating System]]
* [[Cinnamon (software)|Cinnamon]], a fork of GNOME 3 and uses GTK version 3
* [[Cinnamon (software)|Cinnamon]], a fork of GNOME 3 which uses GTK version 3
* [[MATE (software)|MATE]], a fork of GNOME 2 and uses GTK 3 since version 1.18
* [[MATE (software)|MATE]], a fork of GNOME 2 which uses GTK 3 since version 1.18
* [[Xfce]], based on GTK 3 since version 4.14
* [[Xfce]], based on GTK 3 since version 4.14
* [[Elementary OS#Pantheon|Pantheon]] uses GTK 3 exclusively, being developed by [[elementary OS]]
* [[Elementary OS#Pantheon desktop environment|Pantheon]] uses GTK 3 exclusively, being developed by [[elementary OS]]
* [[Sugar (desktop environment)|Sugar]], a desktop environment for youth [[primary education]], which uses GTK, especially [[PyGTK]]
* [[Sugar (desktop environment)|Sugar]], a desktop environment for youth [[primary education]], which uses GTK, especially [[PyGTK]]
* [[KDE]], though based on [[Qt (software)|Qt]], has integration with GTK written programs and themes since version 4.2
* [[Phosh]], a mobile UI designed for [[PureOS]]
* [[Phosh]], a mobile UI designed for [[PureOS]]
* [[LXDE]] (Lightweight X11 Desktop Environment) is based on GTK 2
* [[Unity (user interface)|Unity]], the former default desktop environment of [[Ubuntu]]


====Inactive====
====Inactive====
* [[Unity (desktop shell)|Unity]], the former default desktop environment of [[Ubuntu (software)|Ubuntu]]
* [[LXDE]] (Lightweight X11 Desktop Environment) is based on GTK 2
* [[Access Linux Platform]] (successor of the [[Palm OS]] [[Personal digital assistant|PDA]] platform)
* [[Access Linux Platform]] (successor of the [[Palm OS]] [[Personal digital assistant|PDA]] platform)
* Consort, the GNOME 3.4 Fallback Mode – [[fork (software development)|fork]] from [[SolusOS]]
* Consort, the GNOME 3.4 Fallback Mode – [[fork (software development)|fork]] from [[Solus (operating_system)|Solus]]
* [[GPE Palmtop Environment|GPE]], the GPE Palmtop Environment
* [[GPE Palmtop Environment|GPE]], the GPE Palmtop Environment
* [[ROX Desktop]], a lightweight desktop, with features from the [[GUI]] of [[RISC OS]]
* [[ROX Desktop]], a lightweight desktop, with features from the [[GUI]] of [[RISC OS]]


====Miscellaneous====
====Miscellaneous====
GTK programs can be run on desktop environments based on X11 and Wayland, or window managers even those ''not'' made with GTK, provided the needed libraries are installed; this includes [[macOS]] if [[X11.app]] is installed. GTK can be also run on [[Microsoft Windows]], where it is used by some popular cross-platform applications like [[Pidgin (software)|Pidgin]] and GIMP. [[wxWidgets]], a cross-platform GUI tool-kit, uses GTK on Linux.<ref>{{cite web |url=http://www.wxwidgets.org/wiki/index.php/WxWidgets_Compared_To_Other_Toolkits#GTK.2B |work=WxWidgets Compared To Other Toolkits |title=GTK+}}</ref> Other ports include [[DirectFB]] (used by the [[Debian-Installer|Debian installer]], for example) and [[ncurses]].<ref>{{cite web|url=http://slashdot.org/article.pl?sid=03/08/26/2042206 |title=GTK+ TTY Port |publisher=Slashdot |access-date=2010-08-31}}</ref>
GTK programs can be run on desktop environments based on X11 and Wayland, or window managers even those ''not'' made with GTK, provided the needed libraries are installed; this includes [[macOS]] if [[X11.app]] is installed. GTK can be also run on [[Microsoft Windows]], where it is used by some popular cross-platform applications like [[Pidgin (software)|Pidgin]] and [[GIMP]]. [[wxWidgets]], a cross-platform GUI tool-kit, uses GTK on Linux by default.<ref>{{cite web |url=http://www.wxwidgets.org/wiki/index.php/WxWidgets_Compared_To_Other_Toolkits#GTK.2B |work=WxWidgets Compared To Other Toolkits |title=GTK+ |access-date=August 28, 2007 |archive-date=October 5, 2007 |archive-url=https://web.archive.org/web/20071005160312/http://www.wxwidgets.org/wiki/index.php/WxWidgets_Compared_To_Other_Toolkits#GTK.2B |url-status=live}}</ref> Other ports include [[DirectFB]] (used by the [[Debian-Installer|Debian installer]], for example) and [[ncurses]].<ref>{{cite web |url=http://slashdot.org/article.pl?sid=03/08/26/2042206 |title=GTK+ TTY Port |date=August 26, 2003 |publisher=Slashdot |access-date=2010-08-31 |archive-date=April 22, 2024 |archive-url=https://web.archive.org/web/20240422182809/http://slashdot.org/article.pl?sid=03/08/26/2042206 |url-status=live}}</ref>


===Window managers===
===Window managers===
The following window managers use GTK:
The following window managers use GTK:

{{Div col|colwidth=30em}}
{{Div col|colwidth=30em}}
* Aewm
* Aewm
Line 225: Line 207:
{{Main|GtkSourceView}}
{{Main|GtkSourceView}}


For [[syntax highlighting]] there is [[GtkSourceView]], "source code editing widget". GtkSourceView is maintained by GNOME separately from GTK as a library: [https://git.gnome.org/browse/gtksourceview/tree/ gtksourceview]. There are plans to rename to gsv.
For [[syntax highlighting]] there is [[GtkSourceView]], "source code editing widget". GtkSourceView is maintained by GNOME separately from GTK as a library: gtksourceview. There are plans to rename to gsv.{{Citation needed|date=December 2023}}


===GtkSpell===
===GtkSpell===
GtkSpell is a library separate from GTK. GtkSpell depends on GTK and [[Enchant (software)|Enchant]]. Enchant is a wrapper for ispell, [[hunspell]], etc, the actual [[spell checker]] engine/software. GtkSpell uses GTK's GtkTextView widget, to highlight misspelled words and offer replacement.
GtkSpell is a library separate from GTK. GtkSpell depends on GTK and [[Enchant (software)|Enchant]]. Enchant is a wrapper for ispell, [[hunspell]], etc., the actual [[spell checker]] engine/software. GtkSpell uses GTK's GtkTextView widget, to highlight misspelled words and offer replacement.
* {{URL|http://gtkspell.sourceforge.net/}}<!--

Mozilla/Firefox seem to rely on spellbound http://spellbound.sourceforge.net/

-->

==Example==
Documentation is available here:
* {{URL|https://developer.gnome.org/gtk4/stable/}}

The following code presents a graphical GTK [[Hello world program|hello-world]] program in the [[C (programming language)|C programming language]]. This program has a window with the title "Hello, world!" and a label with similar text.
<syntaxhighlight lang="c">
// helloworld.c
#include <gtk/gtk.h>

/* Callback that will be called when the application is activated */
static void
activate_callback(GApplication *app, gpointer user_data)
{
GtkWidget *window;
GtkWidget *label;

/* Create the main, top level window */
window = gtk_window_new();

/* Give it the title */
gtk_window_set_title(GTK_WINDOW(window), "Hello, world!");

/* Set the window's default size */
gtk_window_set_default_size(GTK_WINDOW(window), 200, 100);

/* Assign the variable "label" to a new GTK label,
* with the text "Hello, world!" */
label = gtk_label_new("Hello, world!");

/* Plot the label onto the main window */
gtk_window_set_child(GTK_WINDOW(window), label);

/* Make the application aware of the window.
* The application process will continue to run until all
* windows are closed */
gtk_application_add_window(GTK_APPLICATION(app), GTK_WINDOW(window));

/* Make sure that everything, window and label, are visible */
gtk_widget_show(window);
}

int main (int argc, char *argv[])
{
/* Create our test application */
GtkApplication *application = gtk_application_new("org.wikipedia.gtktest", 0);

/* Connect our handler to the "activate" callback, which will be called
* when the application is activated by the user, e.g. on first start */
g_signal_connect(application, "activate", G_CALLBACK(activate_callback), NULL);

/* Run the application and return its status */
return g_application_run(G_APPLICATION(application), argc, argv);
}
</syntaxhighlight>

Needs installing the libraries first in [[Debian]] or derivatives:
<code>
$ sudo apt-get install libgtk-4-dev
</code>

Using [[pkg-config]] in a [[Unix shell]], this code can be compiled with the following command:
<code>
$ cc -Wall $(pkg-config --cflags --libs gtk4) helloworld.c -o helloworld
</code>

Invoke the program:
<code>
$ ./helloworld
</code>

==History==
==History==
===Linux/Unix===
===Linux===
GTK was originally designed and used in the [[GIMP|GNU Image Manipulation Program (GIMP)]] as a replacement of the [[Motif (software)|Motif]] toolkit; at some point [[Peter Mattis]] became disenchanted with Motif and began to write his own GUI toolkit named the GIMP toolkit and had successfully replaced Motif by the 0.60 release of GIMP.<ref>{{cite web |url=http://www.linuxworld.com/linuxworld/lw-1999-01/lw-01-gimp.html |title=LinuxWorld - Where did Spencer Kimball and Peter Mattis go? |access-date=2013-08-19 |url-status=bot: unknown |archive-url=https://web.archive.org/web/19990417052141/http://www.linuxworld.com/linuxworld/lw-1999-01/lw-01-gimp.html |archive-date=17 April 1999 }}</ref> Finally GTK was re-written to be [[Object-oriented programming|object-oriented]] and was renamed GTK+.<ref>{{cite web |url=http://developer.gnome.org/gtk-faq/stable/x90.html |archive-url= https://web.archive.org/web/20120326131857/http://developer.gnome.org/gtk-faq/stable/x90.html |title=What is the + in GTK+? |year=2011 |access-date=2014-03-18 |archive-date=2012-03-26}}</ref> This was first used in the 0.99 release of GIMP. GTK was subsequently adopted for maintenance by the [[GNOME Foundation]], which uses it in the GNOME desktop environment.
GTK was originally designed and used in the [[GIMP|GNU Image Manipulation Program]] (GIMP) as a replacement of the [[Motif (software)|Motif]] toolkit; at some point [[Peter Mattis]] became disenchanted with Motif and began to write his own GUI toolkit named the GIMP toolkit and had successfully replaced Motif by the 0.60 release of GIMP.<ref>{{cite web |url=http://www.linuxworld.com/linuxworld/lw-1999-01/lw-01-gimp.html |title=LinuxWorld - Where did Spencer Kimball and Peter Mattis go? |access-date=2013-08-19 |url-status=dead |archive-url=https://web.archive.org/web/19990417052141/http://www.linuxworld.com/linuxworld/lw-1999-01/lw-01-gimp.html |archive-date=April 17, 1999}}</ref> Finally GTK was re-written to be [[Object-oriented programming|object-oriented]] and was renamed GTK+.<ref>{{cite web |url=http://developer.gnome.org/gtk-faq/stable/x90.html |archive-url= https://web.archive.org/web/20120326131857/http://developer.gnome.org/gtk-faq/stable/x90.html |title=What is the + in GTK+? |year=2011 |access-date=2014-03-18 |archive-date=2012-03-26}}</ref> This was first used in the 0.99 release of GIMP. GTK was subsequently adopted for maintenance by the [[GNOME Foundation]], which uses it in the GNOME desktop environment.


The GTK 2.0.0 release series introduced new features which include improved text rendering using [[Pango]], a new [[Theme (computing)|theme]] engine, improved accessibility using the [[Accessibility Toolkit]], transition to [[Unicode]] using [[UTF-8]] strings, and a more flexible API. Starting with version 2.8, GTK 2 depends on the [[Cairo (graphics)|Cairo]] graphics library for rendering vector graphics.
The GTK 2.0.0 release series introduced new features which include improved text rendering using [[Pango]], a new [[Theme (computing)|theme]] engine, improved accessibility using the [[Accessibility Toolkit]], transition to [[Unicode]] using [[UTF-8]] strings, and a more flexible API. Starting with version 2.8, GTK 2 depends on the [[Cairo (graphics)|Cairo]] graphics library for rendering vector graphics.


GTK version 3.0.0 included revised input device handling, support for themes written with [[Cascading Style Sheets|CSS]]-like syntax, and the ability to receive information about other opened GTK applications.
GTK version 3.0.0 included revised input device handling, support for themes written with [[CSS]]-like syntax, and the ability to receive information about other opened GTK applications.


The '+' was dropped returning to simply 'GTK' in February 2019 during a [[Hackathon]].<ref>{{Cite web|url=https://gitlab.gnome.org/GNOME/gtk/commit/d080be3e5091c98d5171063a95d55c01170881f3|title=Rename some references to GTK+ (d080be3e) · Commits · GNOME / gtk|website=GitLab}}</ref>
The '+' was dropped returning to simply 'GTK' in February 2019 during a [[Hackathon]].<ref>{{Cite web|url=https://gitlab.gnome.org/GNOME/gtk/commit/d080be3e5091c98d5171063a95d55c01170881f3|title=Rename some references to GTK+ (d080be3e) · Commits · GNOME / gtk|website=gitlab.gnome.org|date=February 4, 2019|access-date=February 5, 2019|archive-date=February 25, 2021|archive-url=https://web.archive.org/web/20210225124433/https://gitlab.gnome.org/GNOME/gtk/commit/d080be3e5091c98d5171063a95d55c01170881f3|url-status=live}}</ref>


===macOS===
===macOS===
With [[Quartz (graphics layer)|Quartz]]-Backend<ref>{{Cite web|url=https://wiki.gnome.org/action/show/Projects/GTK/OSX?action=show&redirect=Projects%2FGTK%2B%2FOSX|title=Projects/GTK/OSX - GNOME Wiki!|website=wiki.gnome.org}}</ref> GTK is available in [[macOS]].<ref>{{Cite web|url=https://www.gtk.org/docs/installations/macos/|title=GTK Download: Mac OS X|website=www.gtk.org}}</ref>
With [[Quartz (graphics layer)|Quartz]]-backend<ref>{{Cite web|url=https://wiki.gnome.org/action/show/Projects/GTK/OSX?action=show&redirect=Projects%2FGTK%2B%2FOSX|title=Projects/GTK/OSX - GNOME Wiki!|website=wiki.gnome.org|access-date=November 22, 2019|archive-date=November 27, 2019|archive-url=https://web.archive.org/web/20191127001226/https://wiki.gnome.org/action/show/Projects/GTK/OSX?action=show&redirect=Projects%2FGTK%2B%2FOSX|url-status=live}}</ref> GTK is available in [[macOS]].<ref>{{Cite news|url=https://www.gtk.org/docs/installations/macos/|title=GTK Download: Mac OS X|newspaper=The GTK Team|access-date=April 11, 2020|archive-date=April 11, 2020|archive-url=https://web.archive.org/web/20200411215421/https://www.gtk.org/docs/installations/macos/|url-status=live}}</ref>


===Windows===
===Windows===
* After GTK 2.24.10 and 3.6.4 Development of Windows with Installer was closed by Gnome. Installation of MSYS2 on Windows is a good way to use actual GTK.<ref>{{Cite web|url=https://www.gtk.org/docs/installations/windows/|title=GTK Download: Windows|website=www.gtk.org}}</ref>
* After GTK 2.24.10 and 3.6.4 Development of Windows with Installer was closed by Gnome. Installation of MSYS2 on Windows is a good way to use actual GTK.<ref>{{Cite news|url=https://www.gtk.org/docs/installations/windows/|title=GTK Download: Windows|newspaper=The GTK Team|access-date=April 11, 2020|archive-date=April 14, 2020|archive-url=https://web.archive.org/web/20200414125859/https://www.gtk.org/docs/installations/windows/|url-status=live}}</ref>
* GTK 2.24.10 and 3.6.4 is available in Internet, but very buggy and limited against actual versions.<ref>{{Cite web|url=https://sourceforge.net/projects/gtk-win/|title=GTK+ for Windows Runtime Environment|website=SourceForge}}</ref><ref>{{Cite web|url=http://www.tarnyko.net/dl/gtk.htm|title=GTK+|website=www.tarnyko.net}}</ref>
* GTK 2.24.10 and 3.6.4 is available in Internet, but very buggy and limited against actual versions.<ref>{{Cite web|url=https://sourceforge.net/projects/gtk-win/|title=GTK+ for Windows Runtime Environment|website=SourceForge|date=September 15, 2017|access-date=April 5, 2018|archive-date=April 6, 2018|archive-url=https://web.archive.org/web/20180406040912/https://sourceforge.net/projects/gtk-win/|url-status=live}}</ref><ref>{{Cite web|url=http://www.tarnyko.net/dl/gtk.htm|title=GTK+|website=www.tarnyko.net|access-date=April 5, 2018|archive-date=April 8, 2018|archive-url=https://web.archive.org/web/20180408175141/http://www.tarnyko.net/dl/gtk.htm|url-status=dead}}</ref>
* A Version for Windows 64-bit is prepared by Tom Schoonjans with 2.24.32 (actual like Linux) and 3.22.30 (actual like Linux) available.<ref>{{Cite web|url=https://github.com/tschoonj/GTK-for-Windows-Runtime-Environment-Installer|title=GTK+ for Windows Runtime Environment Installer (fork from http://gtk-win.sourceforge.net): tschoonj/GTK-for-Windows-Runtime-Environment-Installer|date=19 November 2019|via=GitHub}}</ref>
* A version for Windows 64-bit is prepared by Tom Schoonjans with 2.24.33 (actual like Linux) and 3.24.24 (actual like Linux) from January 2021 available.<ref>{{Cite web|url=https://github.com/tschoonj/GTK-for-Windows-Runtime-Environment-Installer|title=GTK+ for Windows Runtime Environment Installer (fork from http://gtk-win.sourceforge.net): tschoonj/GTK-for-Windows-Runtime-Environment-Installer|date=November 19, 2020|via=GitHub|access-date=April 5, 2018|archive-date=June 11, 2018|archive-url=https://web.archive.org/web/20180611024700/https://github.com/tschoonj/GTK-for-Windows-Runtime-Environment-Installer|url-status=live}}</ref>
* Windows 10's Fall Creators Update includes [[Windows Subsystem for Linux]] (WSL). With Linux distributions like Ubuntu or Debian available from the Windows Store and an X server like Xming or VcXsvr, thousands of programs like GTK 2 or 3 can run with X or terminal support.
* Windows 10's Fall Creators Update includes [[Windows Subsystem for Linux]] (WSL). With Linux distributions like Ubuntu or Debian available from the [[Microsoft Store]] and an X server like Xming or VcXsvr, thousands of programs like GTK 2 or 3 can run with X or terminal support.


===OpenVMS===
===OpenVMS===
[[Hewlett Packard Enterprise|HP]] stated that their goal was to merge the needed [[OpenVMS]] changes into the GTK Version 1.3 development stream,<ref>http://h41379.www4.hpe.com/openvms/products/ips/gtk.html</ref> however this never materialised. The latest version of GTK for OpenVMS is version 1.2.10.<ref>http://h41379.www4.hpe.com/openvms/products/ips/gtk_down.html</ref>
[[Hewlett Packard Enterprise|HP]] stated that their goal was to merge the needed [[OpenVMS]] changes into the GTK Version 1.3 development stream, however this never materialised.<ref>{{cite web |url=http://h41379.www4.hpe.com/openvms/products/ips/gtk.html |title=HP OpenVMS systems - GTK+ |access-date=July 12, 2018 |archive-date=July 13, 2018 | archive-url=https://web.archive.org/web/20180713012300/http://h41379.www4.hpe.com/openvms/products/ips/gtk.html |url-status=live}}</ref> The latest version of GTK for OpenVMS is version 1.2.10.<ref>{{cite web |url=http://h41379.www4.hpe.com/openvms/products/ips/gtk_down.html |title=HP OpenVMS systems - GTK+ |access-date=July 12, 2018 |archive-date=July 13, 2018 |archive-url=https://web.archive.org/web/20180713015324/http://h41379.www4.hpe.com/openvms/products/ips/gtk_down.html |url-status=live}}</ref>


==={{Anchor|GTK4|GTK 4}} GTK 4===
===4.x===
One of the cardinal novelties implemented during the GTK 4 development cycle (i.e. GTK 3.92, etc.) has been the delegation of functionality to ancillary objects instead of encoding it into the base classes provided by GTK.
One of the cardinal novelties implemented during the GTK 4 development cycle (i.e. GTK 3.92, etc.) has been the removal of customization options for the user side (like individual keyboard shortcuts that could be set in GTK+ 2), and the delegation of functionality to ancillary objects instead of encoding it into the base classes provided by GTK.
* the event handling from signal handlers described by GtkWidget is delegated to event controllers
* the event handling from signal handlers described by GtkWidget is delegated to event controllers
* the rendering is delegated to GtkSnapshot objects
* the rendering is delegated to GtkSnapshot objects
* the layout mechanism from GtkWidget is delegated to GtkLayoutManager
* the layout mechanism from GtkWidget is delegated to GtkLayoutManager


In 2018-Jan-26 at [[DevConf.cz]] Matthias Clasen gave an overview of the then current state of GTK 4 development, including a high-level explanation of how rendering and input worked in GTK 3, what changes were being made to GTK 4, and the reasons for those changes. Examples of things that have become possible with GTK 4 were given as well.<ref>https://mclasen.fedorapeople.org/gtk4-devconf2018.pdf</ref>
In January 2018 at [[DevConf.cz]] Matthias Clasen gave an overview of the then current state of GTK 4 development, including a high-level explanation of how rendering and input worked in GTK 3, what changes were being made to GTK 4, and the reasons for those changes. Examples of things that have become possible with GTK 4 were given as well.<ref>{{cite web |last1=Clasen |first1=Matthias |title=GTK+ 4 Status Update |url=https://mclasen.fedorapeople.org/gtk4-devconf2018.pdf |website=Fedora People |access-date=April 22, 2024|archive-date=April 22, 2024 |archive-url=https://web.archive.org/web/20240422184711/https://mclasen.fedorapeople.org/gtk4-devconf2018.pdf |url-status=live}}</ref>


===Releases===
===Releases===
{|class="wikitable collapsible collapsed" style="width:100%;"
{|class="wikitable mw-collapsible mw-collapsed" style="width:100%;"
|-
|-
! colspan=8 | Release history
| colspan="4" | {{Version|l|show=111111}}
|-
|-
! Release series
! Release series
! Initial release
! Initial release
! colspan=5 | Major enhancements
! Major enhancements
! Latest minor version
! Latest minor version
|-
! colspan="8" style="background:light-gray" | GTK+ 1
|-
|-
! {{Version|o|1.0}}
! {{Version|o|1.0}}
| style="white-space: nowrap;" | 1998-04-13<ref>{{cite mailing list |url=https://mail.gnome.org/archives/gtk-list/1998-April/msg00303.html |title=ANNOUNCE: GTK+ 1.0.0 Released! |date=April 13, 1998 |access-date=May 20, 2019 |last=Amundson |first=Shawn T. |mailing-list=GNOME Mail Services |archive-date=March 12, 2019 |archive-url=https://web.archive.org/web/20190312022545/https://mail.gnome.org/archives/gtk-list/1998-April/msg00303.html |url-status=live}}</ref>
| style="white-space: nowrap;" | {{date|13 April 1998|iso}}<ref>{{cite mailing list
| First stable version
| url = https://mail.gnome.org/archives/gtk-list/1998-April/msg00303.html
| 1.0.
| title = ANNOUNCE: GTK+ 1.0.0 Released!
| date = 13 April 1998
| access-date = 20 May 2019
| last = Amundson
| first = Shawn T.
| mailing-list = GNOME Mail Services}}</ref>
| colspan=5 | First stable version
| [https://mail.gnome.org/archives/gtk-devel-list/1998-September/msg00055.html 1.0.6]
|-
|-
! {{Version|o|1.2}}
! {{Version|o|1.2}}
| style="white-space: nowrap;" | 1999-02-25<ref>{{cite mailing list | url = https://mail.gnome.org/archives/gtk-list/1999-February/msg00756.html |title=ANNOUNCE: GTK+ and GLib 1.2.0 Released |date=February 25, 1999 |access-date=May 20, 2019 |last=Amundson |first=Shawn T. |mailing-list=GNOME Mail Services |archive-date=August 10, 2020 |archive-url=https://web.archive.org/web/20200810170943/https://mail.gnome.org/archives/gtk-list/1999-February/msg00756.html |url-status=live}}</ref>
| style="white-space: nowrap;" | {{date|25 February 1999|iso}}<ref>{{cite mailing list
| New [[GUI widget|widgets]]:
| url = https://mail.gnome.org/archives/gtk-list/1999-February/msg00756.html
| title = ANNOUNCE: GTK+ and GLib 1.2.0 Released
| date = 25 February 1999
| access-date = 20 May 2019
| last = Amundson
| first = Shawn T.
| mailing-list = GNOME Mail Services}}</ref>
| colspan=5 | New [[GUI widget|widgets]]:


* GtkFontSelector
* GtkFontSelector
Line 379: Line 269:
* GtkPlug
* GtkPlug
* GtkSocket
* GtkSocket
| 1.2.10
| [https://mail.gnome.org/archives/gtk-devel-list/2001-April/msg00049.html 1.2.10]
|-
| colspan=8 | {{Version|l|show=110000}}
|-
! colspan="8" style="background:light-gray" | GTK+ 2
|-
|-
! {{Version|o|2.0}}
! {{Version|o|2.0}}
| style="white-space: nowrap;" | 2002-03-11<ref>{{cite mailing list |url=https://mail.gnome.org/archives/gtk-list/2002-March/msg00136.html |title=GTK+-2.0.0 released |date=March 11, 2002 |access-date=May 20, 2019 |last=Taylor |first=Owen |mailing-list=GNOME Mail Services |archive-date=August 10, 2020 |archive-url=https://web.archive.org/web/20200810165729/https://mail.gnome.org/archives/gtk-list/2002-March/msg00136.html |url-status=live}}</ref>
| style="white-space: nowrap;" | {{date|11 March 2002|iso}}<ref>{{cite mailing list
| [[GObject]]
| url = https://mail.gnome.org/archives/gtk-list/2002-March/msg00136.html
| title = GTK+-2.0.0 released
| date = 11 March 2002
| access-date = 20 May 2019
| last = Taylor
| first = Owen
| mailing-list = GNOME Mail Services}}</ref>
| colspan=5 | [[GObject]]
Overall support for [[UTF-8]]
Overall support for [[UTF-8]]
| 2.0.9
| [https://mail.gnome.org/archives/gtk-devel-list/2002-November/msg00154.html 2.0.9]
|-
|-
! {{Version|o|2.2}}
! {{Version|o|2.2}}
| style="white-space: nowrap;" | 2002-12-22<ref>{{cite mailing list |url=https://mail.gnome.org/archives/gtk-list/2002-December/msg00206.html |title=GTK+-2.2.0 released |date=December 22, 2002 |access-date=May 20, 2019 |last=Taylor |first=Owen |mailing-list=GNOME Mail Services |archive-date=August 10, 2020 |archive-url=https://web.archive.org/web/20200810171903/https://mail.gnome.org/archives/gtk-list/2002-December/msg00206.html |url-status=live}}</ref>
| style="white-space: nowrap;" | {{date|22 December 2002|iso}}<ref>{{cite mailing list
| Multihead support
| url = https://mail.gnome.org/archives/gtk-list/2002-December/msg00206.html
| 2.2.4
| title = GTK+-2.2.0 released
| date = 22 December 2002
| access-date = 20 May 2019
| last = Taylor
| first = Owen
| mailing-list = GNOME Mail Services}}</ref>
| colspan=5 | Multihead support
| [https://mail.gnome.org/archives/gtk-devel-list/2003-September/msg00070.html 2.2.4]
|-
|-
! {{Version|o|2.4}}
! {{Version|o|2.4}}
| style="white-space: nowrap;" | 2004-03-16<ref>{{cite mailing list | url = https://mail.gnome.org/archives/gtk-list/2004-March/msg00111.html | title = GTK+-2.4.0 released |date=March 16, 2004 |access-date=May 20, 2019 | last = Taylor | first = Owen | mailing-list = GNOME Mail Services |archive-date=August 10, 2020 | archive-url = https://web.archive.org/web/20200810165134/https://mail.gnome.org/archives/gtk-list/2004-March/msg00111.html |url-status=live}}</ref>
| style="white-space: nowrap;" | {{date|16 March 2004|iso}}<ref>{{cite mailing list
| New widgets:
| url = https://mail.gnome.org/archives/gtk-list/2004-March/msg00111.html
| title = GTK+-2.4.0 released
| date = 16 March 2004
| access-date = 20 May 2019
| last = Taylor
| first = Owen
| mailing-list = GNOME Mail Services}}</ref>
| colspan=5 | New widgets:


* GtkFileChooser
* GtkFileChooser
Line 427: Line 292:
* GtkFontButton
* GtkFontButton
* GtkColorButton
* GtkColorButton
| 2.4.14
| [https://mail.gnome.org/archives/gtk-devel-list/2004-December/msg00018.html 2.4.14]
|-
|-
! {{Version|o|2.6}}
! {{Version|o|2.6}}
| style="white-space: nowrap;" | 2004-12-16<ref>{{cite mailing list |url=https://mail.gnome.org/archives/gtk-list/2004-December/msg00155.html |title=GTK+-2.6.0 released |date=December 16, 2004 |access-date=May 20, 2019 |last=Clasen |first=Matthias |mailing-list=GNOME Mail Services |archive-date=August 10, 2020 |archive-url=https://web.archive.org/web/20200810164349/https://mail.gnome.org/archives/gtk-list/2004-December/msg00155.html |url-status=live}}</ref>
| style="white-space: nowrap;" | {{date|16 December 2004|iso}}<ref>{{cite mailing list
| New widgets:
| url = https://mail.gnome.org/archives/gtk-list/2004-December/msg00155.html
| title = GTK+-2.6.0 released
| date = 16 December 2004
| access-date = 20 May 2019
| last = Clasen
| first = Matthias
| mailing-list = GNOME Mail Services}}</ref>
| colspan=5 | New widgets:


* GtkIconView
* GtkIconView
Line 445: Line 303:


The last to support [[Windows 98]]/[[Windows Me|Me]]
The last to support [[Windows 98]]/[[Windows Me|Me]]
| 2.6.10
| [https://mail.gnome.org/archives/gtk-devel-list/2005-August/msg00097.html 2.6.10]
|-
|-
! {{Version|o|2.8}}
! {{Version|o|2.8}}
| style="white-space: nowrap;" | 2005-08-13<ref>{{cite mailing list | url = https://mail.gnome.org/archives/gtk-list/2005-August/msg00124.html | title = GTK+ 2.8.0 released | date=August 13, 2005 | access-date=May 20, 2019 | last = Clasen | first = Matthias | mailing-list = GNOME Mail Services | archive-date=August 10, 2020 | archive-url = https://web.archive.org/web/20200810170418/https://mail.gnome.org/archives/gtk-list/2005-August/msg00124.html | url-status = live}}</ref>
| style="white-space: nowrap;" | {{date|13 August 2005|iso}}<ref>{{cite mailing list
| Most widgets are rendered by [[Cairo (graphics)|Cairo]]
| url = https://mail.gnome.org/archives/gtk-list/2005-August/msg00124.html
| 2.8.20
| title = GTK+ 2.8.0 released
| date = 13 August 2005
| access-date = 20 May 2019
| last = Clasen
| first = Matthias
| mailing-list = GNOME Mail Services}}</ref>
| colspan=5 | Most widgets are rendered by [[Cairo (graphics)|Cairo]]
| [https://mail.gnome.org/archives/gtk-devel-list/2006-July/msg00002.html 2.8.20]
|-
|-
! {{Version|o|2.10}}
! {{Version|o|2.10}}
| style="white-space: nowrap;" | 2006-07-03<ref>{{cite mailing list | url = https://mail.gnome.org/archives/gtk-devel-list/2006-July/msg00004.html | title = GTK+ 2.10 released | date=July 3, 2006 | access-date=May 20, 2019 | last = Clasen | first = Matthias | mailing-list = GNOME Mail Services | archive-date=January 22, 2021 | archive-url = https://web.archive.org/web/20210122165417/https://mail.gnome.org/archives/gtk-devel-list/2006-July/msg00004.html | url-status = live}}</ref>
| style="white-space: nowrap;" | {{date|3 July 2006|iso}}<ref>{{cite mailing list
| New widgets:
| url = https://mail.gnome.org/archives/gtk-devel-list/2006-July/msg00004.html
| title = GTK+ 2.10 released
| date = 3 July 2006
| access-date = 20 May 2019
| last = Clasen
| first = Matthias
| mailing-list = GNOME Mail Services}}</ref>
| colspan=5 | New widgets:


* GtkStatusIcon
* GtkStatusIcon
Line 476: Line 320:


Print support: GtkPrintOperation
Print support: GtkPrintOperation
| 2.10.14
| [https://mail.gnome.org/archives/gtk-devel-list/2007-July/msg00058.html 2.10.14]
|-
|-
! {{Version|o|2.12}}
! {{Version|o|2.12}}
| style="white-space: nowrap;" | 2007-09-14<ref>{{cite mailing list |url=https://mail.gnome.org/archives/gtk-devel-list/2007-September/msg00052.html |title=GTK+ 2.12 released |date=September 14, 2007 |access-date=May 20, 2019 |last=Clasen |first=Matthias |mailing-list=GNOME Mail Services |archive-date=May 25, 2019 |archive-url=https://web.archive.org/web/20190525193406/https://mail.gnome.org/archives/gtk-devel-list/2007-September/msg00052.html |url-status=live}}</ref>
| style="white-space: nowrap;" | {{date|14 September 2007|iso}}<ref>{{cite mailing list
| GtkBuilder
| url = https://mail.gnome.org/archives/gtk-devel-list/2007-September/msg00052.html
| style="white-space: nowrap;" | 2.12.12
| title = GTK+ 2.12 released
| date = 14 September 2007
| access-date = 20 May 2019
| last = Clasen
| first = Matthias
| mailing-list = GNOME Mail Services}}</ref>
| colspan=5 | GtkBuilder
| style="white-space: nowrap;" | [https://mail.gnome.org/archives/gtk-devel-list/2008-September/msg00069.html 2.12.12]
|-
|-
! {{Version|o|2.14}}
! {{Version|o|2.14}}
| style="white-space: nowrap;" | 2008-09-04<ref>{{cite mailing list |url=https://mail.gnome.org/archives/gtk-devel-list/2008-September/msg00024.html |title=GTK+ 2.14.0 released |date=September 4, 2008 |access-date=May 20, 2019 |last=Clasen |first=Matthias |mailing-list=GNOME Mail Services |archive-date=August 10, 2020 |archive-url=https://web.archive.org/web/20200810171006/https://mail.gnome.org/archives/gtk-devel-list/2008-September/msg00024.html |url-status=live}}</ref>
| style="white-space: nowrap;" | {{date|4 September 2008|iso}}<ref>{{cite mailing list
| [[JPEG 2000]] load support
| url = https://mail.gnome.org/archives/gtk-devel-list/2008-September/msg00024.html
| style="white-space: nowrap;" | 2.14.7
| title = GTK+ 2.14.0 released
| date = 4 September 2008
| access-date = 20 May 2019
| last = Clasen
| first = Matthias
| mailing-list = GNOME Mail Services}}</ref>
| colspan=5 | [[JPEG 2000]] load support
| style="white-space: nowrap;" | [https://mail.gnome.org/archives/gtk-devel-list/2009-January/msg00031.html 2.14.7]
|-
|-
! {{Version|o|2.16}}
! {{Version|o|2.16}}
| style="white-space: nowrap;" | 2009-03-13<ref>{{cite mailing list |url=https://mail.gnome.org/archives/gtk-devel-list/2009-March/msg00101.html |title=GTK+ 2.16.0 released |date=March 13, 2009 |access-date=May 20, 2019 |last=Clasen |first=Matthias |mailing-list=GNOME Mail Services |archive-date=June 3, 2019 |archive-url=https://web.archive.org/web/20190603111921/https://mail.gnome.org/archives/gtk-devel-list/2009-March/msg00101.html |url-status=live}}</ref>
| style="white-space: nowrap;" | {{date|13 March 2009|iso}}<ref>{{cite mailing list
| New widget: GtkOrientable
| url = https://mail.gnome.org/archives/gtk-devel-list/2009-March/msg00101.html
| title = GTK+ 2.16.0 released
| date = 13 March 2009
| access-date = 20 May 2019
| last = Clasen
| first = Matthias
| mailing-list = GNOME Mail Services}}</ref>
| colspan=5 | New widget: GtkOrientable
Caps Lock warning in password entry
Caps Lock warning in password entry


Improvements on GtkScale, GtkStatusIcon, GtkFileChooser
Improvements on GtkScale, GtkStatusIcon, GtkFileChooser
| style="white-space: nowrap;" | [https://mail.gnome.org/archives/gtk-devel-list/2009-August/msg00176.html 2.16.6]
| style="white-space: nowrap;" | 2.16.6
|-
|-
! {{Version|o|2.18}}
! {{Version|o|2.18}}
| style="white-space: nowrap;" | 2009-09-23<ref>{{cite mailing list |url=https://mail.gnome.org/archives/gtk-devel-list/2009-September/msg00054.html |title=GTK+ 2.18.0 released |date=September 23, 2009 |access-date=May 20, 2019 |last=Clasen |first=Matthias |mailing-list=GNOME Mail Services |archive-date=June 3, 2019 |archive-url=https://web.archive.org/web/20190603112318/https://mail.gnome.org/archives/gtk-devel-list/2009-September/msg00054.html |url-status=live}}</ref>
| style="white-space: nowrap;" | {{date|23 September 2009|iso}}<ref>{{cite mailing list
| New widget: GtkInfoBar
| url = https://mail.gnome.org/archives/gtk-devel-list/2009-September/msg00054.html
| title = GTK+ 2.18.0 released
| date = 23 September 2009
| access-date = 20 May 2019
| last = Clasen
| first = Matthias
| mailing-list = GNOME Mail Services}}</ref>
| colspan=5 | New widget: GtkInfoBar
Improvement on file chooser, printing
Improvement on file chooser, printing


To remove much of the necessary IPC between the X11 application and the X11 server, [[GDK]] is rewritten (mainly by Alexander Larsson) to use "client-side windows", i.e., the GdkWindow, which every widget must have, belongs now to the client
To remove much of the necessary IPC between the X11 application and the X11 server, [[GDK]] is rewritten (mainly by Alexander Larsson) to use "client-side windows", i.e., the GdkWindow, which every widget must have, belongs now to the client
| style="white-space: nowrap;" | [https://mail.gnome.org/archives/gtk-devel-list/2010-March/msg00115.html 2.18.9]
| style="white-space: nowrap;" | 2.18.9
|-
|-
! {{Version|o|2.20}}
! {{Version|o|2.20}}
| style="white-space: nowrap;" | 2010-03-23<ref>{{cite mailing list | url = https://mail.gnome.org/archives/gtk-devel-list/2010-March/msg00132.html | title = GTK+ 2.20.0 released |date=March 23, 2010 |access-date=May 20, 2019 |last=Clasen |first=Matthias |mailing-list = GNOME Mail Services |archive-date=May 25, 2019 |archive-url=https://web.archive.org/web/20190525193410/https://mail.gnome.org/archives/gtk-devel-list/2010-March/msg00132.html | url-status = live}}</ref>
| style="white-space: nowrap;" | {{date|23 March 2010|iso}}<ref>{{cite mailing list
| New widgets:
| url = https://mail.gnome.org/archives/gtk-devel-list/2010-March/msg00132.html
| title = GTK+ 2.20.0 released
| date = 23 March 2010
| access-date = 20 May 2019
| last = Clasen
| first = Matthias
| mailing-list = GNOME Mail Services}}</ref>
| colspan=5 | New widgets:


* GtkSpinner
* GtkSpinner
Line 550: Line 359:


Introspection data is now included in GTK
Introspection data is now included in GTK
| style="white-space: nowrap;" | [https://mail.gnome.org/archives/gtk-devel-list/2010-May/msg00004.html 2.20.1]
| style="white-space: nowrap;" | 2.20.1
|-
|-
! {{Version|o|2.22}}
! {{Version|o|2.22}}
| style="white-space: nowrap;" | 2010-09-23<ref>{{cite mailing list | url = https://mail.gnome.org/archives/gtk-devel-list/2010-September/msg00263.html | title = GTK+ 2.22.0 released | date=September 23, 2010 | access-date=May 20, 2019 | last = Clasen | first = Matthias | mailing-list = GNOME Mail Services | archive-date=May 25, 2019 | archive-url = https://web.archive.org/web/20190525193414/https://mail.gnome.org/archives/gtk-devel-list/2010-September/msg00263.html | url-status = live}}</ref>
| style="white-space: nowrap;" | {{date|23 September 2010|iso}}<ref>{{cite mailing list
| [[GdkPixbuf]] moved to separate module
| url = https://mail.gnome.org/archives/gtk-devel-list/2010-September/msg00263.html
| title = GTK+ 2.22.0 released
| date = 23 September 2010
| access-date = 20 May 2019
| last = Clasen
| first = Matthias
| mailing-list = GNOME Mail Services}}</ref>
| colspan=5 | [[GdkPixbuf]] moved to separate module
Most GDK drawing are based on Cairo
Most GDK drawing are based on Cairo


Many internal data are now private and can be ''sealed'' in preparation to GTK 3
Many internal data are now private and can be ''sealed'' in preparation to GTK 3
| style="white-space: nowrap;" | [https://mail.gnome.org/archives/ftp-release-list/2010-November/msg00145.html 2.22.1]
| style="white-space: nowrap;" | 2.22.1
|-
|-
! {{Version|o|2.24}}
! {{Version|o|2.24}}
| style="white-space: nowrap;" | 2011-01-30<ref>{{cite mailing list | url = https://mail.gnome.org/archives/gtk-devel-list/2011-January/msg00042.html | title = GTK+ 2.24.0 | date=January 20, 2011 | access-date=May 20, 2019 | last = Clasen | first = Matthias | mailing-list = GNOME Mail Services | archive-date=May 8, 2019 | archive-url = https://web.archive.org/web/20190508195340/https://mail.gnome.org/archives/gtk-devel-list/2011-January/msg00042.html | url-status = live}}</ref>
| style="white-space: nowrap;" | {{date|30 January 2011|iso}}<ref>{{cite mailing list
| New widget: GtkComboBoxText which had previously been a custom widget shipped with Gtkmm
| url = https://mail.gnome.org/archives/gtk-devel-list/2011-January/msg00042.html
| title = GTK+ 2.24.0
| date = 20 January 2011
| access-date = 20 May 2019
| last = Clasen
| first = Matthias
| mailing-list = GNOME Mail Services}}</ref>
| colspan=5 | New widget: GtkComboBoxText
The CUPS print backend can send print jobs as PDF
The CUPS print backend can send print jobs as PDF


GtkBuilder has gained support for text tags and menu toolbuttons and many introspection annotation fixes were added
GtkBuilder has gained support for text tags and menu toolbuttons and many introspection annotation fixes were added


[https://developer.gnome.org/gtk3/unstable/gtk-migrating-2-to-3.html Migrating from GTK+ 2.x to GTK+ 3]
Migrating from GTK+ 2.x to GTK+ 3
| style="white-space: nowrap;" | 2.24.33<br />(2020-12-21)<ref>{{Cite web |date=2020-12-21 |title=Tags · GNOME / gtk · GitLab |url=https://gitlab.gnome.org/GNOME/gtk/-/tags?sort=updated_desc&search=2.24 |access-date=2023-10-18 |website=GitLab |language=en |archive-date=December 4, 2023 |archive-url=https://web.archive.org/web/20231204065829/https://gitlab.gnome.org/GNOME/gtk/-/tags?sort=updated_desc&search=2.24 |url-status=live}}</ref>
| style="white-space: nowrap;" | [https://mail.gnome.org/archives/ftp-release-list/2018-January/msg00030.html 2.24.32]<br />(2018-01-08)
|-
| colspan=8 | {{Version|l|show=111000}}
|-
! colspan="8" | GTK 3
|-
|-
! {{Version|o|3.0}}
! {{Version|o|3.0}}
| style="white-space: nowrap;" | 2011-02-10<ref>{{cite mailing list |url=https://mail.gnome.org/archives/gtk-devel-list/2011-February/msg00020.html |title=GTK+ 3.0.0 released |date=February 10, 2011 |access-date=May 20, 2019 |last=Clasen |first=Matthias |mailing-list=GNOME Mail Services |archive-date=March 12, 2019 |archive-url=https://web.archive.org/web/20190312022544/https://mail.gnome.org/archives/gtk-devel-list/2011-February/msg00020.html |url-status=live}}</ref>
| style="white-space: nowrap;" | {{date|10 February 2011|iso}}<ref>{{cite mailing list
| Development and design of the GTK 3 release of the toolkit started in February 2009 during the GTK Theming Hackfest held in Dublin<ref>{{cite web|url=http://aruiz.typepad.com/siliconisland/2009/02/gtk-30-theming.html|title=Gtk+ 3.0 Theming API Hackfest|website=Silicon Island|access-date=June 3, 2017|archive-date=July 17, 2011|archive-url=https://web.archive.org/web/20110717121424/http://aruiz.typepad.com/siliconisland/2009/02/gtk-30-theming.html|url-status=live}}</ref>
| url = https://mail.gnome.org/archives/gtk-devel-list/2011-February/msg00020.html
| title = GTK+ 3.0.0 released
| date = 10 February 2011
| access-date = 20 May 2019
| last = Clasen
| first = Matthias
| mailing-list = GNOME Mail Services}}</ref>
| colspan=5 | Development and design of the GTK 3 release of the toolkit started in February 2009 during the GTK Theming Hackfest held in Dublin<ref>{{cite web|url=http://aruiz.typepad.com/siliconisland/2009/02/gtk-30-theming.html|title=Gtk+ 3.0 Theming API Hackfest|website=Silicon Island|access-date=3 June 2017}}</ref>


* The first draft of the development roadmap was released on 9 April 2009<ref>{{cite web|url=http://testbit.eu/~timj/blogstuff/GtkRoadmap3Draft2.html|title=Gtk+ 3 roadmap draft|access-date=3 June 2017}}</ref>
* The first draft of the development roadmap was released on April 9, 2009<ref>{{cite web|url=http://testbit.eu/~timj/blogstuff/GtkRoadmap3Draft2.html|title=Gtk+ 3 roadmap draft|access-date=June 3, 2017|archive-date=April 12, 2009|archive-url=https://web.archive.org/web/20090412092855/http://testbit.eu/~timj/blogstuff/GtkRoadmap3Draft2.html|url-status=live}}</ref>


Completed mostly ''Project Ridley''
Completed mostly ''Project Ridley''


* the attempt to consolidate several libraries that were external to GTK+
* the attempt to consolidate several libraries that were external to GTK+
* including <code>libgnome</code>, <code>libgnomeui</code>, <code>libgnomeprint22</code>, <code>libgnomeprintui22</code>, <code>libglade</code>, <code>libgnomecanvas</code>, <code>libegg</code>, <code>libeel</code>, <code>gtkglext</code>, and <code>libsexy</code><ref>{{Cite web|url=https://wiki.gnome.org/Attic/ProjectRidley|title=Attic/ProjectRidley - GNOME Wiki!|website=wiki.gnome.org}}</ref>
* including <code>libgnome</code>, <code>libgnomeui</code>, <code>libgnomeprint22</code>, <code>libgnomeprintui22</code>, <code>libglade</code>, <code>libgnomecanvas</code>, <code>libegg</code>, <code>libeel</code>, <code>gtkglext</code>, and <code>libsexy</code><ref>{{Cite web|url=https://wiki.gnome.org/Attic/ProjectRidley|title=Attic/ProjectRidley - GNOME Wiki!|website=wiki.gnome.org|access-date=March 29, 2014|archive-date=March 4, 2016|archive-url=https://web.archive.org/web/20160304091150/https://wiki.gnome.org/Attic/ProjectRidley|url-status=live}}</ref>


All the rendering is done using Cairo
All the rendering is done using Cairo
Line 611: Line 395:


XInput2, theme API is based on [[Cascading Style Sheets]] (CSS), worsening the achievable performance for 60&nbsp;Hz [[frame rate]]s
XInput2, theme API is based on [[Cascading Style Sheets]] (CSS), worsening the achievable performance for 60&nbsp;Hz [[frame rate]]s
| style="white-space: nowrap;" | [https://mail.gnome.org/archives/gnome-announce-list/2011-July/msg00060.html 3.0.12]
| style="white-space: nowrap;" | 3.0.12
|-
|-
! {{Version|o|3.2}}
! {{Version|o|3.2}}
| style="white-space: nowrap;" | 2011-09-25<ref>{{cite mailing list |url=https://mail.gnome.org/archives/gtk-devel-list/2011-September/msg00175.html |title=GTK+ 3.2.0 |date=September 25, 2011 |access-date=May 20, 2019 |last=Clasen |first=Matthias |mailing-list=GNOME Mail Services |archive-date=May 25, 2019 |archive-url=https://web.archive.org/web/20190525193409/https://mail.gnome.org/archives/gtk-devel-list/2011-September/msg00175.html |url-status=live}}</ref>
| style="white-space: nowrap;" | {{date|25 September 2011|iso}}<ref>{{cite mailing list
| New widgets:
| url = https://mail.gnome.org/archives/gtk-devel-list/2011-September/msg00175.html
| title = GTK+ 3.2.0
| date = 25 September 2011
| access-date = 20 May 2019
| last = Clasen
| first = Matthias
| mailing-list = GNOME Mail Services}}</ref>
| colspan=5 | New widgets:


* GtkLockButton
* GtkLockButton
Line 633: Line 410:
* [[Wayland (display server protocol)|Wayland]]
* [[Wayland (display server protocol)|Wayland]]
* [[HTML5]] (named "Broadway")
* [[HTML5]] (named "Broadway")
| style="white-space: nowrap;" | [https://mail.gnome.org/archives/ftp-release-list/2012-March/msg00095.html 3.2.4]
| style="white-space: nowrap;" | 3.2.4
|-
|-
! {{Version|o|3.4}}
! {{Version|o|3.4}}
| style="white-space: nowrap;" | 2012-03-26<ref>{{cite mailing list | url = https://mail.gnome.org/archives/gtk-devel-list/2012-March/msg00082.html | title = GTK+ 3.4.0 released |date=March 26, 2012 |access-date=May 20, 2019 | last = Clasen | first = Matthias | mailing-list = GNOME Mail Services |archive-date=May 25, 2019 | archive-url = https://web.archive.org/web/20190525193407/https://mail.gnome.org/archives/gtk-devel-list/2012-March/msg00082.html | url-status = live}}</ref>
| style="white-space: nowrap;" | {{date|26 March 2012|iso}}<ref>{{cite mailing list
| Menu support in GtkApplication
| url = https://mail.gnome.org/archives/gtk-devel-list/2012-March/msg00082.html
| title = GTK+ 3.4.0 released
| date = 26 March 2012
| access-date = 20 May 2019
| last = Clasen
| first = Matthias
| mailing-list = GNOME Mail Services}}</ref>
| colspan=5 | Menu support in GtkApplication
A new color chooser
A new color chooser


Line 664: Line 434:


More complete CSS theming support
More complete CSS theming support
| style="white-space: nowrap;" | [https://mail.gnome.org/archives/ftp-release-list/2012-July/msg00019.html 3.4.4]
| style="white-space: nowrap;" | 3.4.4
|-
|-
! {{Version|o|3.6}}
! {{Version|o|3.6}}
| style="white-space: nowrap;" | 2012-09-24<ref>{{cite mailing list |url=https://mail.gnome.org/archives/gtk-devel-list/2012-September/msg00045.html |title=GTK+ 3.6.0 released |date=September 24, 2012 |access-date=May 20, 2019 |last=Clasen |first=Matthias |mailing-list=GNOME Mail Services |archive-date=May 25, 2019 |archive-url=https://web.archive.org/web/20190525193412/https://mail.gnome.org/archives/gtk-devel-list/2012-September/msg00045.html |url-status=live}}</ref>
| style="white-space: nowrap;" | {{date|24 September 2012|iso}}<ref>{{cite mailing list
| New widgets:
| url = https://mail.gnome.org/archives/gtk-devel-list/2012-September/msg00045.html
| title = GTK+ 3.6.0 released
| date = 24 September 2012
| access-date = 20 May 2019
| last = Clasen
| first = Matthias
| mailing-list = GNOME Mail Services}}</ref>
| colspan=5 | New widgets:


* GtkSearchEntry
* GtkSearchEntry
Line 686: Line 449:


Support for cross-fading and transitions in themes
Support for cross-fading and transitions in themes
| style="white-space: nowrap;" | [https://mail.gnome.org/archives/ftp-release-list/2014-January/msg00091.html 3.6.5]
| style="white-space: nowrap;" | 3.6.5
|-
|-
! {{Version|o|3.8}}
! {{Version|o|3.8}}
| style="white-space: nowrap;" | 2013-03-25<ref>{{cite mailing list | url = https://mail.gnome.org/archives/gtk-devel-list/2013-March/msg00108.html | title = GTK+ 3.8.0 released |date=March 25, 2013 | access-date=May 20, 2019 | last = Clasen | first = Matthias | mailing-list = GNOME Mail Services | archive-date=March 3, 2016 | archive-url = https://web.archive.org/web/20160303210908/https://mail.gnome.org/archives/gtk-devel-list/2013-March/msg00108.html | url-status = live}}</ref>
| style="white-space: nowrap;" | {{date|25 March 2013|iso}}<ref>{{cite mailing list
| Wayland 1.0 stable support
| url = https://mail.gnome.org/archives/gtk-devel-list/2013-March/msg00108.html
| title = GTK+ 3.8.0 released
| date = 25 March 2013
| access-date = 20 May 2019
| last = Clasen
| first = Matthias
| mailing-list = GNOME Mail Services}}</ref>
| colspan=5 | Wayland 1.0 stable support
Support for the broadwayd server
Support for the broadwayd server


Line 708: Line 464:
Support with the [[window manager]] for the frame synchronization protocol
Support with the [[window manager]] for the frame synchronization protocol


[[GdkFrameClock]] added<ref>{{Cite web|url=https://developer.gnome.org/gdk3/stable/GdkFrameClock.html|title=Frame clock: GDK 3 Reference Manual|website=developer.gnome.org}}</ref>
[[GdkFrameClock]] added<ref>{{Cite web|url=https://developer.gnome.org/gdk3/stable/GdkFrameClock.html|title=Frame clock: GDK 3 Reference Manual|website=developer.gnome.org|access-date=April 13, 2017|archive-date=April 14, 2017|archive-url=https://web.archive.org/web/20170414162353/https://developer.gnome.org/gdk3/stable/GdkFrameClock.html|url-status=live}}</ref>
| style="white-space: nowrap;" | [https://mail.gnome.org/archives/ftp-release-list/2014-January/msg00092.html 3.8.9]
| style="white-space: nowrap;" | 3.8.9
|-
|-
! {{Version|o|3.10}}
! {{Version|o|3.10}}
| style="white-space: nowrap;" | 2013-09-23<ref>{{cite mailing list | url = https://mail.gnome.org/archives/gtk-devel-list/2013-September/msg00057.html | title = GTK+ 3.10.0 released |date=September 23, 2013 |access-date=May 20, 2019 | last = Clasen | first = Matthias | mailing-list = GNOME Mail Services |archive-date=May 25, 2019 | archive-url = https://web.archive.org/web/20190525193411/https://mail.gnome.org/archives/gtk-devel-list/2013-September/msg00057.html | url-status = live}}</ref>
| style="white-space: nowrap;" | {{date|23 September 2013|iso}}<ref>{{cite mailing list
| New widgets:
| url = https://mail.gnome.org/archives/gtk-devel-list/2013-September/msg00057.html
| title = GTK+ 3.10.0 released
| date = 23 September 2013
| access-date = 20 May 2019
| last = Clasen
| first = Matthias
| mailing-list = GNOME Mail Services}}</ref>
| colspan=5 | New widgets:


* GtkHeaderBar
* GtkHeaderBar
Line 754: Line 503:
Tear-off menu-items, plus many GTK settings
Tear-off menu-items, plus many GTK settings


[http://blogs.gnome.org/alexl/2013/11/04/the-modern-gtk-drawing-model/ The modern GTK drawing model]
The modern GTK drawing model
| style="white-space: nowrap;" | [http://ftp.gnome.org/pub/gnome/sources/gtk+/3.10/gtk+-3.10.9.news 3.10.9]
| style="white-space: nowrap;" | 3.10.9
|-
|-
! {{Version|o|3.12}}
! {{Version|o|3.12}}
| style="white-space: nowrap;" | 2014-03-25<ref>{{cite mailing list | url = https://mail.gnome.org/archives/gtk-devel-list/2014-March/msg00060.html | title = GTK+ 3.12 released |date=March 25, 2014 |access-date=May 20, 2019 | last = Clasen | first = Matthias | mailing-list = GNOME Mail Services |archive-date=May 25, 2019 | archive-url = https://web.archive.org/web/20190525193407/https://mail.gnome.org/archives/gtk-devel-list/2014-March/msg00060.html | url-status = live}}</ref>
| style="white-space: nowrap;" | {{date|2014-03-25|iso}}<ref>{{cite mailing list
| Client-side decorations<ref>{{Cite web|url=https://blogs.gnome.org/mclasen/2013/12/05/client-side-decorations-in-themes/|title=Client-side decorations in themes &#124; Goings on|date=December 5, 2013|access-date=December 31, 2015|archive-date=September 19, 2015|archive-url=https://web.archive.org/web/20150919102531/https://blogs.gnome.org/mclasen/2013/12/05/client-side-decorations-in-themes/|url-status=live}}</ref>
| url = https://mail.gnome.org/archives/gtk-devel-list/2014-March/msg00060.html
| title = GTK+ 3.12 released
| date = 25 March 2014
| access-date = 20 May 2019
| last = Clasen
| first = Matthias
| mailing-list = GNOME Mail Services}}</ref>
| colspan=5 | Client-side decorations<ref>{{Cite web|url=https://blogs.gnome.org/mclasen/2013/12/05/client-side-decorations-in-themes/|title=Client-side decorations in themes &#124; Goings on}}</ref>


Support for Wayland 1.5
Support for Wayland 1.5


New widget: [[Popover (GUI)|GtkPopover]] (an alternative to menus and dialogs)
New widget: [[Popover (GUI)|GtkPopover]] (an alternative to menus and dialogs)
| style="white-space: nowrap;" | [http://ftp.gnome.org/pub/gnome/sources/gtk+/3.12/gtk+-3.12.2.news 3.12.2]
| style="white-space: nowrap;" | 3.12.2
|-
|-
! {{Version|o|3.14}}
! {{Version|o|3.14}}
| style="white-space: nowrap;" | 2014-09-22<ref>{{cite mailing list | url = https://mail.gnome.org/archives/gtk-devel-list/2014-September/msg00007.html | title = GTK+ 3.14.0 released |date=September 22, 2014 |access-date=May 20, 2019 | last = Clasen | first = Matthias | mailing-list = GNOME Mail Services |archive-date=May 25, 2019 | archive-url = https://web.archive.org/web/20190525193409/https://mail.gnome.org/archives/gtk-devel-list/2014-September/msg00007.html | url-status = live}}</ref>
| style="white-space: nowrap;" | {{date|2014-09-22|iso}}<ref>{{cite mailing list
| [[GtkInspector]] (a copy of gtkparasite) introduced<ref>{{cite web |url=http://blogs.gnome.org/mclasen/2014/05/15/introducing-gtkinspector/ |title=GtkInspector Author's blog entry |author=Matthias Clasen |date=2014-05-15 |access-date=2014-05-17 |archive-date=May 17, 2014 |archive-url=https://web.archive.org/web/20140517185349/http://blogs.gnome.org/mclasen/2014/05/15/introducing-gtkinspector/ |url-status=live}}</ref><ref>{{cite web |url=https://wiki.gnome.org/Projects/GTK%2B/Inspector |title=GtkInspector in GNOME wiki |date=2014-05-15 |access-date=2014-05-17 |archive-date=May 24, 2014 |archive-url=https://web.archive.org/web/20140524030546/https://wiki.gnome.org/Projects/GTK%2B/Inspector |url-status=live}}</ref>
| url = https://mail.gnome.org/archives/gtk-devel-list/2014-September/msg00007.html
| title = GTK+ 3.14.0 released
| date = 22 September 2014
| access-date = 20 May 2019
| last = Clasen
| first = Matthias
| mailing-list = GNOME Mail Services}}</ref>
| colspan=5 | [[GtkInspector]] (a copy of gtkparasite) introduced<ref>{{cite web |url=http://blogs.gnome.org/mclasen/2014/05/15/introducing-gtkinspector/ |title=GtkInspector Author's blog entry |author=Matthias Clasen |date=2014-05-15 |access-date=2014-05-17}}</ref><ref>{{cite web |url=https://wiki.gnome.org/Projects/GTK%2B/Inspector |title=GtkInspector in GNOME wiki |date=2014-05-15 |access-date=2014-05-17}}</ref>


Improved support for [[gestures]]/[[multi-touch]] merged<ref>{{cite web |url=https://www.phoronix.com/scan.php?page=news_item&px=MTY5ODc |title=Merging gestures into 3.14 |date=2014-05-23 |access-date=2014-05-23}}</ref><ref>{{cite web |url=https://mail.gnome.org/archives/gtk-devel-list/2014-March/msg00018.html |title=RFC: gestures |date=2014-03-04 |access-date=2014-05-23}}</ref>
Improved support for [[gestures]]/[[multi-touch]] merged<ref>{{cite web |url=https://www.phoronix.com/scan.php?page=news_item&px=MTY5ODc |title=Merging gestures into 3.14 |date=2014-05-23 |access-date=2014-05-23 |archive-date=September 14, 2016 |archive-url=https://web.archive.org/web/20160914120128/http://www.phoronix.com/scan.php?page=news_item&px=MTY5ODc |url-status=live}}</ref><ref>{{cite web |url=https://mail.gnome.org/archives/gtk-devel-list/2014-March/msg00018.html |title=RFC: gestures |date=2014-03-04 |access-date=2014-05-23 |archive-date=May 24, 2014 |archive-url=https://web.archive.org/web/20140524023059/https://mail.gnome.org/archives/gtk-devel-list/2014-March/msg00018.html |url-status=live}}</ref>


Deprecated:<ref>{{cite web|url=https://mail.gnome.org/archives/ftp-release-list/2014-May/msg00119.html|title=gtk+ 3.13.2|date=2014-05-27}}</ref>
Deprecated:<ref>{{cite web|url=https://mail.gnome.org/archives/ftp-release-list/2014-May/msg00119.html|title=gtk+ 3.13.2|date=2014-05-27|access-date=May 28, 2014|archive-date=May 29, 2014|archive-url=https://web.archive.org/web/20140529051203/https://mail.gnome.org/archives/ftp-release-list/2014-May/msg00119.html|url-status=live}}</ref>


* GtkMisc
* GtkMisc
Line 799: Line 534:
Most widgets converted to use gestures internally
Most widgets converted to use gestures internally


Wayland supports GNOME Shell classic mode<ref>{{cite web |url=https://mail.gnome.org/archives/ftp-release-list/2014-June/msg00075.html |title=gtk+ 3.13.3 |date=2014-06-24}}</ref>
Wayland supports GNOME Shell classic mode<ref>{{cite web |url=https://mail.gnome.org/archives/ftp-release-list/2014-June/msg00075.html |title=gtk+ 3.13.3 |date=2014-06-24 |access-date=June 25, 2014 |archive-date=December 15, 2014 |archive-url=https://web.archive.org/web/20141215042625/https://mail.gnome.org/archives/ftp-release-list/2014-June/msg00075.html |url-status=live}}</ref>
| style="white-space: nowrap;" | [http://ftp.gnome.org/pub/gnome/sources/gtk+/3.14/gtk+-3.14.15.news 3.14.15]
| style="white-space: nowrap;" | 3.14.15
|-
|-
! {{Version|o|3.16}}
! {{Version|o|3.16}}
| style="white-space: nowrap;" | 2015-03-22<ref>{{cite mailing list |url=https://mail.gnome.org/archives/gtk-devel-list/2015-March/msg00062.html |title=GTK+ 3.16.0 released |date=March 22, 2015 |access-date=May 20, 2019 |last=Clasen |first=Matthias |mailing-list=GNOME Mail Services |archive-date=May 25, 2019 |archive-url=https://web.archive.org/web/20190525193410/https://mail.gnome.org/archives/gtk-devel-list/2015-March/msg00062.html |url-status=live}}</ref>
| style="white-space: nowrap;" | {{date|2015-03-22|iso}}<ref>{{cite mailing list
| GDK supports rendering windows using OpenGL for X11 and Wayland using [[libepoxy]]
| url = https://mail.gnome.org/archives/gtk-devel-list/2015-March/msg00062.html
| title = GTK+ 3.16.0 released
| date = 22 March 2015
| access-date = 20 May 2019
| last = Clasen
| first = Matthias
| mailing-list = GNOME Mail Services}}</ref>
| colspan=5 | GDK supports rendering windows using OpenGL for X11 and Wayland using [[libepoxy]]
New widgets:
New widgets:


Line 819: Line 547:
* GtkPopoverMenu
* GtkPopoverMenu


Scrolling overhauled ([[scrollbar]] hidden by default<ref>{{cite web|url=http://www.heise.de/open/meldung/Linux-Desktop-Neues-Gnome-zeigt-Nachrichten-oben-2584020.html|title=Linux-Desktop: Neues Gnome zeigt Nachrichten oben|first=heise|last=online|website=heise online|access-date=3 June 2017}}</ref>)
Scrolling overhauled ([[scrollbar]] hidden by default<ref>{{cite web|url=http://www.heise.de/open/meldung/Linux-Desktop-Neues-Gnome-zeigt-Nachrichten-oben-2584020.html|title=Linux-Desktop: Neues Gnome zeigt Nachrichten oben|first=heise|last=online|website=heise online|date=March 25, 2015|access-date=June 3, 2017|archive-date=June 25, 2016|archive-url=https://web.archive.org/web/20160625193825/http://www.heise.de/open/meldung/Linux-Desktop-Neues-Gnome-zeigt-Nachrichten-oben-2584020.html|url-status=live}}</ref>)


Experimental [[Mir (software)|Mir]] backend<ref>{{cite web|url=https://mail.gnome.org/archives/gnome-announce-list/2015-March/msg00029.html|title=GTK+ 3.16.0 released|website=mail.gnome.org|access-date=3 June 2017}}</ref>
Experimental [[Mir (software)|Mir]] backend<ref>{{cite web|url=https://mail.gnome.org/archives/gnome-announce-list/2015-March/msg00029.html|title=GTK+ 3.16.0 released|website=mail.gnome.org|access-date=June 3, 2017|archive-date=April 7, 2016|archive-url=https://web.archive.org/web/20160407050958/https://mail.gnome.org/archives/gnome-announce-list/2015-March/msg00029.html|url-status=live}}</ref>
| style="white-space: nowrap;" | [http://ftp.gnome.org/pub/gnome/sources/gtk+/3.16/gtk+-3.16.7.news 3.16.7]
| style="white-space: nowrap;" | 3.16.7
|-
|-
! {{Version|o|3.18}}
! {{Version|o|3.18}}
| style="white-space: nowrap;" | {{date|2015-09-23|iso}}<ref>{{Cite web|url=https://news.softpedia.com/news/gtk-plus-3-18-0-officially-released-as-part-of-the-gnome-3-18-desktop-environment-492591.shtml|title=GTK+ 3.18.0 Officially Released as Part of the GNOME 3.18 Desktop Environment|last=Nestor|first=Marius|date=Sep 24, 2015|website=Softpedia|access-date=25 May 2019}}</ref>
| style="white-space: nowrap;" | 2015-09-23<ref>{{Cite web|url=https://news.softpedia.com/news/gtk-plus-3-18-0-officially-released-as-part-of-the-gnome-3-18-desktop-environment-492591.shtml|title=GTK+ 3.18.0 Officially Released as Part of the GNOME 3.18 Desktop Environment|last=Nestor|first=Marius|date=Sep 24, 2015|website=Softpedia|access-date=May 25, 2019|archive-date=May 25, 2019|archive-url=https://web.archive.org/web/20190525193407/https://news.softpedia.com/news/gtk-plus-3-18-0-officially-released-as-part-of-the-gnome-3-18-desktop-environment-492591.shtml|url-status=live}}</ref>
| colspan=5 | Add CSS node infrastructure
| Add CSS node infrastructure
More filechooser design refresh and better filechooser search
More filechooser design refresh and better filechooser search


Line 840: Line 568:


Output-only windows
Output-only windows
| style="white-space: nowrap;" | [http://ftp.gnome.org/pub/gnome/sources/gtk+/3.18/gtk+-3.18.9.news 3.18.9]
| style="white-space: nowrap;" | 3.18.9
|-
|-
! {{Version|o|3.20}}
! {{Version|o|3.20}}
| style="white-space: nowrap;" | 2016-03-21<ref>{{cite mailing list | url = https://mail.gnome.org/archives/gtk-list/2016-March/msg00026.html | title = GTK+ 3.20 |date=March 21, 2016 |access-date=May 20, 2019 | last = Clasen | first = Matthias | mailing-list = GNOME Mail Services |archive-date=March 12, 2019 | archive-url = https://web.archive.org/web/20190312022556/https://mail.gnome.org/archives/gtk-list/2016-March/msg00026.html | url-status = live}}</ref>
| style="white-space: nowrap;" | {{date|2016-03-21|iso}}<ref>{{cite mailing list
| Further Integration of CSS nodes<ref>{{cite web |url=https://wiki.gnome.org/Projects/GTK%2B/StyleClasses |title=GTK+ 3.20 – Style Classes and Element Names |date=2015-11-20 |access-date=December 18, 2015 |archive-date=March 5, 2016 |archive-url=https://web.archive.org/web/20160305074823/https://wiki.gnome.org/Projects/GTK+/StyleClasses |url-status=live}}</ref>
| url = https://mail.gnome.org/archives/gtk-list/2016-March/msg00026.html
| title = GTK+ 3.20
| date = 21 March 2016
| access-date = 20 May 2019
| last = Clasen
| first = Matthias
| mailing-list = GNOME Mail Services}}</ref>
| colspan=5 | Further Integration of CSS nodes<ref>{{cite web |url=https://wiki.gnome.org/Projects/GTK%2B/StyleClasses |title=GTK+ 3.20 – Style Classes and Element Names |date=2015-11-20}}</ref>


Move [[drag and drop]] down to [[GIMP Drawing Kit|GDK]]
Move [[drag and drop]] down to [[GIMP Drawing Kit|GDK]]


New widget: [https://developer.gnome.org/gtk3/unstable/GtkShortcutsWindow.html GtkShortcutsWindow] (shows keyboard shortcuts and gestures of an application)
New widget: GtkShortcutsWindow (shows keyboard shortcuts and gestures of an application)
| style="white-space: nowrap;" | [ftp://ftp.gnome.org/pub/GNOME/sources/gtk+/3.20/gtk+-3.20.10.news 3.20.10]
| style="white-space: nowrap;" | 3.20.10
|-
|-
! {{Version|o|{{Anchor|3.22}}3.22}}
! {{Version|o|{{Anchor|3.22}}3.22}}
| style="white-space: nowrap;" | 2016-09-21<ref>{{cite mailing list | url = https://mail.gnome.org/archives/gtk-list/2016-September/msg00006.html | title = GTK+ 3.22 released |date=September 21, 2016 |access-date=May 20, 2019 | last = Clasen | first = Matthias | mailing-list = GNOME Mail Services |archive-date=May 25, 2019 | archive-url = https://web.archive.org/web/20190525193423/https://mail.gnome.org/archives/gtk-list/2016-September/msg00006.html | url-status = live}}</ref>
| style="white-space: nowrap;" | {{date|2016-09-21|iso}}<ref>{{cite mailing list
| Last 3.x release<ref name="devblog160901" />
| url = https://mail.gnome.org/archives/gtk-list/2016-September/msg00006.html
| title = GTK+ 3.22 released
| date = 21 September 2016
| access-date = 20 May 2019
| last = Clasen
| first = Matthias
| mailing-list = GNOME Mail Services}}</ref>
| colspan=5 | Last 3.x release<ref name="devblog160901" />


Wayland tablet support is merged,<ref>{{Cite web|url=https://blogs.gnome.org/carlosg/2016/04/06/gtk-wayland-tablet-support-is-merged/|title=GTK+ Wayland tablet support is merged – Carlos Garnacho}}</ref> support for [[graphics tablet]]s is considered feature complete<ref>{{Cite web|url=https://www.x.org/wiki/Events/XDC2016/Program/hutterer_input/|title=hutterer input|website=www.x.org}}</ref>
Wayland tablet support is merged,<ref>{{Cite web|url=https://blogs.gnome.org/carlosg/2016/04/06/gtk-wayland-tablet-support-is-merged/|title=GTK+ Wayland tablet support is merged – Carlos Garnacho|date=April 6, 2016 |access-date=April 8, 2016|archive-date=April 16, 2016|archive-url=https://web.archive.org/web/20160416185814/https://blogs.gnome.org/carlosg/2016/04/06/gtk-wayland-tablet-support-is-merged/|url-status=live}}</ref> support for [[graphics tablet]]s is considered feature complete<ref>{{Cite web|url=https://www.x.org/wiki/Events/XDC2016/Program/hutterer_input/|title=hutterer input|website=www.x.org|access-date=September 23, 2016|archive-date=September 23, 2016|archive-url=https://web.archive.org/web/20160923183522/https://www.x.org/wiki/Events/XDC2016/Program/hutterer_input/|url-status=live}}</ref>


GTK 3.22 shall be as rock-stable (and hence "boring") as GTK 2<ref name="ottegtk4">{{cite web |url=http://videos.guadec.org/2013/GTK%20to%20infinity%20and%20beyond/ |title=GUADEC2013: Benjamin Otte talks about GTK+ |publisher=[[GNOME Users And Developers European Conference|GUADEC]]}}</ref><ref name="lortie4">{{cite web |url=https://blogs.gnome.org/desrt/2016/06/13/gtk-4-0-is-not-gtk-4/ |title=Gtk 4.0 will not be stable until Gtk 4.6 |date=2016-06-13}}</ref><ref name="lortie5">{{cite web |url=https://blogs.gnome.org/desrt/2016/06/14/gtk-5-0-is-not-gtk-5/ |title=Gtk 5.0 will not be stable until Gtk 5.6 |date=2016-06-14}}</ref>
GTK 3.22 shall be as rock-stable (and hence "boring") as GTK 2<ref name="ottegtk4">{{cite web |url=http://videos.guadec.org/2013/GTK%20to%20infinity%20and%20beyond/ |title=GUADEC2013: Benjamin Otte talks about GTK+ |publisher=[[GNOME Users And Developers European Conference|GUADEC]] |access-date=March 5, 2014 |archive-date=March 6, 2014 |archive-url=https://web.archive.org/web/20140306004816/http://videos.guadec.org/2013/GTK%20to%20infinity%20and%20beyond/ |url-status=live}}</ref><ref name="lortie4">{{cite web |url=https://blogs.gnome.org/desrt/2016/06/13/gtk-4-0-is-not-gtk-4/ |title=Gtk 4.0 will not be stable until Gtk 4.6 |date=2016-06-13 |access-date=June 15, 2016 |archive-date=June 23, 2016 |archive-url=https://web.archive.org/web/20160623201838/https://blogs.gnome.org/desrt/2016/06/13/gtk-4-0-is-not-gtk-4/ |url-status=dead}}</ref><ref name="lortie5">{{cite web |url=https://blogs.gnome.org/desrt/2016/06/14/gtk-5-0-is-not-gtk-5/ |title=Gtk 5.0 will not be stable until Gtk 5.6 |date=2016-06-14 |access-date=June 15, 2016 |archive-date=June 23, 2016 |archive-url=https://web.archive.org/web/20160623202157/https://blogs.gnome.org/desrt/2016/06/14/gtk-5-0-is-not-gtk-5/ |url-status=live}}</ref>
| style="white-space: nowrap;" | for 3+ years<br />[http://ftp.gnome.org/pub/gnome/sources/gtk+/3.22/gtk+-3.22.29.news 3.22.29]
| style="white-space: nowrap;" | for 3+ years<br />3.22.29
|-
|-
! {{Version|co|{{Anchor|3.24}} 3.24}}
! {{Version|co|{{Anchor|3.24}} 3.24}}
| style="white-space: nowrap;" | 2018-09-03<ref>{{cite mailing list | url = https://mail.gnome.org/archives/ftp-release-list/2018-September/msg00045.html | title = gtk+ 3.24.0 |date=September 3, 2018 |access-date=May 20, 2019 | last = Clasen | first = Matthias | mailing-list = GNOME Mail Services |archive-date=May 25, 2019 | archive-url = https://web.archive.org/web/20190525194009/https://mail.gnome.org/archives/ftp-release-list/2018-September/msg00045.html | url-status = live}}</ref>
| style="white-space: nowrap;" | {{date|2018-09-03|iso}}<ref>{{cite mailing list
| 3.22 was supposed to be the last version of GTK 3 series
| url = https://mail.gnome.org/archives/ftp-release-list/2018-September/msg00045.html
| title = gtk+ 3.24.0
| date = 3 September 2018
| access-date = 20 May 2019
| last = Clasen
| first = Matthias
| mailing-list = GNOME Mail Services}}</ref>
| colspan=5 | 3.22 was supposed to be the last version of GTK 3 series


* 3.24 was mainly released to '''ease [https://developer.gnome.org/gtk4/unstable/gtk-migrating-3-to-4.html migrating from GTK+ 3.x to GTK+ 4]'''
* 3.24 was mainly released to '''ease migrating from GTK+ 3.x to GTK+ 4'''


Dependency bumps – require:
Dependency bumps – require:
Line 917: Line 624:
* focus chains in GtkContainer
* focus chains in GtkContainer
* stepper sensitivity in GtkRange
* stepper sensitivity in GtkRange
| style="white-space: nowrap;" | 3.23.0<br />3.23.1<br />3.23.2<br />3.23.3<br />3.24.0<br />...3.24.5<br />3.24.14<br />...
| style="white-space: nowrap;" | [http://ftp.acc.umu.se/pub/gnome/sources/gtk+/3.23/gtk+-3.23.0.news 3.23.0]<br />[http://ftp.acc.umu.se/pub/gnome/sources/gtk+/3.23/gtk+-3.23.1.news 3.23.1]<br />[http://ftp.acc.umu.se/pub/gnome/sources/gtk+/3.23/gtk+-3.23.2.news 3.23.2]<br />[http://ftp.acc.umu.se/pub/gnome/sources/gtk+/3.23/gtk+-3.23.3.news 3.23.3]<br />[http://ftp.acc.umu.se/pub/gnome/sources/gtk+/3.24/gtk+-3.24.0.news 3.24.0]<br />...[http://ftp.acc.umu.se/pub/gnome/sources/gtk+/3.24/gtk+-3.24.5.news 3.24.5]<br />[https://mail.gnome.org/archives/ftp-release-list/2020-February/msg00100.html 3.24.14]
3.24.29
|-
| colspan=8 | {{Version|l|show=111100}}
|-
! colspan="8" | {{Anchor|GTK4}} GTK 4
|-
|-
! {{Version|o|3.90}}
! {{Version|o|3.90}}
| style="white-space: nowrap;" | 2017-03-31<ref>{{cite mailing list |url=https://mail.gnome.org/archives/ftp-release-list/2017-March/msg00243.html |title=gtk+ 3.90.0 |date=March 31, 2017 |access-date=May 20, 2019 |last=Clasen |first=Matthias |mailing-list=GNOME Mail Services |archive-date=December 29, 2017 |archive-url=https://web.archive.org/web/20171229231516/https://mail.gnome.org/archives/ftp-release-list/2017-March/msg00243.html |url-status=live}}</ref>
| style="white-space: nowrap;" | 2017-03-31<ref>{{cite mailing list
| [[GTK Scene Graph Kit]] (GSK) merged<ref name="roadmap">{{Cite web|url=https://wiki.gnome.org/action/show/Projects/GTK/Roadmap?action=show&redirect=Projects%2FGTK%2B%2FRoadmap|title=Projects/GTK/Roadmap - GNOME Wiki!|website=wiki.gnome.org|access-date=November 22, 2019|archive-date=May 22, 2019|archive-url=https://web.archive.org/web/20190522064325/https://wiki.gnome.org/action/show/Projects/GTK/Roadmap?action=show&redirect=Projects%2FGTK%2B%2FRoadmap|url-status=live}}</ref>
| url = https://mail.gnome.org/archives/ftp-release-list/2017-March/msg00243.html
| title = gtk+ 3.90.0
| date = 31 March 2017
| access-date = 20 May 2019
| last = Clasen
| first = Matthias
| mailing-list = GNOME Mail Services}}</ref>
| colspan=5 | [[GTK Scene Graph Kit]] (GSK) merged<ref name="roadmap">{{Cite web|url=https://wiki.gnome.org/action/show/Projects/GTK/Roadmap?action=show&redirect=Projects%2FGTK%2B%2FRoadmap|title=Projects/GTK/Roadmap - GNOME Wiki!|website=wiki.gnome.org}}</ref>


Remove any API marked as deprecated
Remove any API marked as deprecated

* [https://git.gnome.org/browse/gtk+/tree/gtk/deprecated?id=a3f1596069ae966ffa785e85327a868e041560c4 before (2016-09-22)] vs. [https://git.gnome.org/browse/gtk+/tree/gtk/deprecated after]


Heavy development
Heavy development
Line 942: Line 637:
* break API & ABI<ref name="lortie4" /><ref name="lortie5" />
* break API & ABI<ref name="lortie4" /><ref name="lortie5" />


A new [[Vulkan (API)|Vulkan]]-renderer augments the old [[Cairo (graphics)|Cairo]]-renderer<ref>{{Cite web|url=https://gitlab.gnome.org/GNOME/gtk/commits/master|title=Commits · master · GNOME / gtk|website=GitLab}}</ref>
A new [[Vulkan (API)|Vulkan]]-renderer augments the old [[Cairo (graphics)|Cairo]]-renderer<ref>{{Cite web|url=https://gitlab.gnome.org/GNOME/gtk/commits/master|title=Commits · master · GNOME / gtk|website=GitLab|access-date=November 22, 2019|archive-date=June 22, 2020|archive-url=https://web.archive.org/web/20200622233109/https://gitlab.gnome.org/GNOME/gtk/commits/master|url-status=dead}}</ref>
| style="white-space: nowrap;" | [https://mail.gnome.org/archives/ftp-release-list/2016-November/msg00093.html 3.89.1]<br />
| style="white-space: nowrap;" | 3.89.1<br />
3.89.2<br />
[https://mail.gnome.org/archives/ftp-release-list/2016-December/msg00070.html 3.89.2]<br />
3.89.4<br />
[https://mail.gnome.org/archives/ftp-release-list/2017-February/msg00055.html 3.89.4]<br />
3.89.5<br />
[https://mail.gnome.org/archives/ftp-release-list/2017-March/msg00093.html 3.89.5]<br />
3.90
[https://mail.gnome.org/archives/ftp-release-list/2017-March/msg00243.html 3.90]
|-
|-
! {{Version|o|3.92}}
! {{Version|o|3.92}}
| style="white-space: nowrap;" | 2017-10-18<ref>{{cite mailing list |url=https://mail.gnome.org/archives/ftp-release-list/2017-October/msg00117.html |title=gtk+ 3.92.1 |date=October 18, 2017 |access-date=May 20, 2019 |last=Clasen |first=Matthias |mailing-list=GNOME Mail Services |archive-date=December 29, 2017 |archive-url=https://web.archive.org/web/20171229231726/https://mail.gnome.org/archives/ftp-release-list/2017-October/msg00117.html |url-status=live}}</ref><ref>{{Cite web|url=https://blog.gtk.org/2017/10/23/gtk-3-92/|title=GTK+ 3.92|last=Clasen|first=Matthias|date=October 23, 2017|website=GTK Development Blog|access-date=May 25, 2019|archive-date=May 25, 2019|archive-url=https://web.archive.org/web/20190525193411/https://blog.gtk.org/2017/10/23/gtk-3-92/|url-status=live}}</ref>
| style="white-space: nowrap;" | 2017-10-18<ref>{{cite mailing list
| As GNOME 3.26 was released already on September 13, 2017,<ref>{{cite web |url=https://www.gnome.org/news/2017/09/gnome-3-26-released/ |title=GNOME 3.26 Released |date=2017-09-13 |access-date=October 19, 2017 |archive-date=March 16, 2021 |archive-url=https://web.archive.org/web/20210316003713/https://www.gnome.org/news/2017/09/gnome-3-26-released/ |url-status=live}}</ref> it was not based on GTK 3.92.
| url = https://mail.gnome.org/archives/ftp-release-list/2017-October/msg00117.html
| title = gtk+ 3.92.1
| date = 18 October 2017
| access-date = 20 May 2019
| last = Clasen
| first = Matthias
| mailing-list = GNOME Mail Services}}</ref><ref>{{Cite web|url=https://blog.gtk.org/2017/10/23/gtk-3-92/|title=GTK+ 3.92|last=Clasen|first=Matthias|date=23 October 2017|website=GTK Development Blog|access-date=25 May 2019}}</ref>
| colspan=5 | As GNOME 3.26 was released already on September 13, 2017,<ref>{{cite web |url=https://www.gnome.org/news/2017/09/gnome-3-26-released/ |title=GNOME 3.26 Released |date=2017-09-13}}</ref> it was not based on GTK 3.92.
[[GNU autotools]] was replaced with [[Meson (software)|Meson]].
[[GNU autotools]] was replaced with [[Meson (software)|Meson]].
| style="white-space: nowrap;" | [https://mail.gnome.org/archives/ftp-release-list/2017-May/msg00093.html 3.91.0]<br />
| style="white-space: nowrap;" | 3.91.0<br />
3.91.1<br />
[https://mail.gnome.org/archives/ftp-release-list/2017-July/msg00071.html 3.91.1]<br />
3.91.2<br />
[https://mail.gnome.org/archives/ftp-release-list/2017-August/msg00051.html 3.91.2]<br />
3.92.1
[https://mail.gnome.org/archives/ftp-release-list/2017-October/msg00117.html 3.92.1]
|-
|-
! {{Version|o|3.94}}
! {{Version|o|3.94}}
| style="white-space: nowrap;" | 2018-06-26<ref>{{cite mailing list |url=https://mail.gnome.org/archives/ftp-release-list/2018-June/msg00073.html |title=gtk+ 3.94.0 |date=June 26, 2018 |access-date=May 20, 2019 |last=Clasen |first=Matthias |mailing-list=GNOME Mail Services |archive-date=July 5, 2018 |archive-url=https://web.archive.org/web/20180705150857/https://mail.gnome.org/archives/ftp-release-list/2018-June/msg00073.html |url-status=live}}</ref>
| style="white-space: nowrap;" | 2018-06-26<ref>{{cite mailing list
| 3.93
| url = https://mail.gnome.org/archives/ftp-release-list/2018-June/msg00073.html
| title = gtk+ 3.94.0
| date = 26 Jun 2018
| access-date = 20 May 2019
| last = Clasen
| first = Matthias
| mailing-list = GNOME Mail Services}}</ref>
| colspan=5 | 3.93


* GdkScreen, GdkVisual removed
* GdkScreen, GdkVisual removed
Line 996: Line 677:
* GtkMediaStream
* GtkMediaStream
* GtkMediaControls
* GtkMediaControls
| style="white-space: nowrap;" | [https://mail.gnome.org/archives/ftp-release-list/2017-December/msg00071.html 3.93]<br />[https://mail.gnome.org/archives/ftp-release-list/2018-June/msg00073.html 3.94.0]
| style="white-space: nowrap;" | 3.93<br />3.94.0
|-
|-
! {{Version|o|3.96}}
! {{Version|o|3.96}}
| style="white-space: nowrap;" | 2019-05-07<ref name="Clasen">{{cite mailing list | url = https://mail.gnome.org/archives/ftp-release-list/2019-May/msg00032.html | title = gtk 3.96 |date=May 7, 2019 |access-date=May 28, 2019 | last = Clasen | first = Matthias | mailing-list = GNOME Mail Services |archive-date=May 28, 2019 | archive-url = https://web.archive.org/web/20190528110226/https://mail.gnome.org/archives/ftp-release-list/2019-May/msg00032.html | url-status = live}}</ref>
| style="white-space: nowrap;" | 2019-05-07<ref name="Clasen">{{cite mailing list
| The {{mono|'''gtk4-builder-tool'''}} {{kbd|simplify}} command has gained a {{kbd|--3to4}} option to convert GTK3 ui files to GTK4; though with AMTK menus, toolbars or other objects like GtkShortcutsWindow are created programmatically (not with a *.ui file), but with convenient APIs.<ref>{{Cite web|url=https://developer.gnome.org/amtk/unstable/amtk-intro.html|title=Introducing amtk|access-date=May 4, 2020|archive-date=June 22, 2020|archive-url=https://web.archive.org/web/20200622105055/https://developer.gnome.org/amtk/unstable/amtk-intro.html|url-status=dead}}</ref>
| url = https://mail.gnome.org/archives/ftp-release-list/2019-May/msg00032.html
| title = gtk 3.96
| date = 7 May 2019
| access-date = 28 May 2019
| last = Clasen
| first = Matthias
| mailing-list = GNOME Mail Services}}</ref>
| colspan=5 | The {{mono|'''gtk4-builder-tool'''}} {{kbd|simplify}} command has gained a {{kbd|--3to4}} option to convert GTK3 ui files to GTK4; though with AMTK menus, toolbars or other objects like GtkShortcutsWindow are created programmatically (not with a *.ui file), but with convenient APIs.<ref>{{cite web |url=https://developer.gnome.org/amtk/unstable/amtk-intro.html |title=Introducing amtk}}</ref>
GtkWidget can now use a GtkLayoutManager for size allocation
GtkWidget can now use a GtkLayoutManager for size allocation


Line 1,023: Line 697:
* key events no longer contain a string
* key events no longer contain a string
* events on unmapped widgets are ignored
* events on unmapped widgets are ignored
| 3.96.0
| [https://download.gnome.org/sources/gtk/3.96/ 3.96.0]
|-
|-
! {{version|o|3.98}}
! {{version|o|3.98}}
| style="white-space: nowrap;" | 2020-02-10<ref name="Clasen"/>
| style="white-space: nowrap;" | 2020-02-10<ref name="Clasen" />
|
| colspan=5 |
* Performance improvements
* Performance improvements
* [[Drag and drop]] refactoring
* [[Drag and drop]] refactoring
Line 1,036: Line 710:
** Emoji chooser
** Emoji chooser
** Text widgets now have undo stacks
** Text widgets now have undo stacks
** A new layout manager<ref>{{Cite web|url=https://blog.gtk.org/2020/02/13/gtk-3-98/|title=GTK 3.98|language=en-US|access-date=2020-02-18|date=2020-02-13|last=Clasen |first=Matthias|website=GTK+ Development Blog}}</ref>
** A new layout manager<ref>{{Cite web|url=https://blog.gtk.org/2020/02/13/gtk-3-98/|title=GTK 3.98|language=en-US|access-date=2020-02-18|date=2020-02-13|last=Clasen|first=Matthias|website=GTK+ Development Blog|archive-date=February 18, 2020|archive-url=https://web.archive.org/web/20200218010611/https://blog.gtk.org/2020/02/13/gtk-3-98/|url-status=live}}</ref>
|3.98.5
|[https://mail.gnome.org/archives/ftp-release-list/2020-June/msg00024.html 3.98.5]
|-
|-
! {{version|o|3.99.0}}
! {{version|o|3.99.0}}
| style="white-space: nowrap;" | 2020-07-31<ref name="latest preview">{{cite mailing list | url = https://mail.gnome.org/archives/ftp-release-list/2021-June/msg00033.html | title = gtk 4.3.1 |date=June 9, 2021 |access-date=July 10, 2021 | last = Clasen | first = Matthias | mailing-list = FTP Releases |archive-date=July 10, 2021 | archive-url = https://web.archive.org/web/20210710003750/https://mail.gnome.org/archives/ftp-release-list/2021-June/msg00033.html | url-status = live}}</ref>
| style="white-space: nowrap;" | 2020-07-31<ref name="latest preview" />
|
| colspan=5 |
* Introduced successor to [[Accessibility Toolkit|Accessibility Toolkit (ATK)]].<ref>{{cite web |url=https://gitlab.gnome.org/ebassi/guadec-2020|title=GUADEC 2020 slide decks}}</ref> The new approach will implement WAI-ARIA (World Wide Web Consortium (W3C) Accessibility Initiative – Accessible Rich Internet Applications).
* Introduced successor to [[Accessibility Toolkit|Accessibility Toolkit (ATK)]].<ref>{{Cite web|url=https://gitlab.gnome.org/ebassi/guadec-2020|title=Emmanuele Bassi / guadec-2020|website=GitLab|access-date=September 12, 2020|archive-date=August 15, 2020|archive-url=https://web.archive.org/web/20200815201732/https://gitlab.gnome.org/ebassi/guadec-2020|url-status=live}}</ref> The new approach will implement WAI-ARIA (World Wide Web Consortium (W3C) Accessibility Initiative – Accessible Rich Internet Applications).
* Updated headers to use standard [[C (programming language)|C]] types instead of [[GLib]] types
* Updated headers to use standard [[C (programming language)|C]] types instead of [[GLib]] types
* New widgets
* New widgets
* Fixes and improvements<ref name="latest preview" />
* Fixes and improvements<ref name="latest preview" />
|3.99.4
|[https://mail.gnome.org/archives/ftp-release-list/2020-November/msg00006.html 3.99.4]
|-
|-
! {{Version|c|{{Anchor|4.0}} 4.0}}
! {{Version|o|{{Anchor|4.0}} 4.0}}
| style="white-space: nowrap;" | 2020-12-16<ref>{{cite mailing list |url=https://mail.gnome.org/archives/ftp-release-list/2020-December/msg00029.html |title=gtk 4.0.0 |date=December 16, 2020 |access-date=December 16, 2020 |last=Clasen |first=Matthias |mailing-list=GNOME Mail Services |archive-date=October 28, 2021 |archive-url=https://web.archive.org/web/20211028205630/https://mail.gnome.org/archives/ftp-release-list/2020-December/msg00029.html |url-status=live}}</ref>
| style="white-space: nowrap;" | {{date|2020-12-16|iso}}<ref>{{cite mailing list
| url = https://mail.gnome.org/archives/ftp-release-list/2020-December/msg00029.html
| title = gtk 4.0.0
| date = 16 December 2020
| access-date = 16 December 2020
| last = Clasen
| first = Matthias
| mailing-list = GNOME Mail Services}}</ref>
| colspan=5 | Remove any API marked as deprecated, i.e. at least everything in the [https://git.gnome.org/browse/gtk+/tree/gtk/deprecated deprecated] directory
|
|
| 4.0.2
|-
|-
| colspan=8 | {{Version|l|show=111111}}
! {{Version|o|{{Anchor|4.2}} 4.2}}
| style="white-space: nowrap;" | 2021-03-30<ref>{{cite mailing list |url=https://mail.gnome.org/archives/ftp-release-list/2021-March/msg00201.html |title=gtk 4.2.0 |date=2021-03-30 |access-date=2021-03-30 |last=Clasen |first=Matthias |mailing-list=GNOME Mail Services |archive-date=October 27, 2021 |archive-url=https://web.archive.org/web/20211027063457/https://mail.gnome.org/archives/ftp-release-list/2021-March/msg00201.html |url-status=live}}</ref>
|
|
|-
! {{Version|o|{{Anchor|4.4}} 4.4}}
| style="white-space: nowrap;" | 2021-08-23<ref>{{cite mailing list |url=https://mail.gnome.org/archives/ftp-release-list/2021-August/msg00083.html |title=gtk 4.4.0 |date=2021-08-23 |access-date=2022-01-23 |last=Clasen |first=Matthias |mailing-list=GNOME Mail Services |archive-date=August 24, 2021 |archive-url=https://web.archive.org/web/20210824073720/https://mail.gnome.org/archives/ftp-release-list/2021-August/msg00083.html |url-status=live}}</ref>
|
|
|-
! {{Version|o|{{Anchor|4.6}} 4.6}}
| style="white-space: nowrap;" | 2021-12-30<ref>{{cite mailing list | url = https://mail.gnome.org/archives/ftp-release-list/2021-December/msg00071.html | title = gtk 4.6.0 | date=December 30, 2021 | access-date=January 23, 2022 | last = Clasen | first = Matthias | mailing-list = FTP Releases | archive-date=January 23, 2022 | archive-url = https://web.archive.org/web/20220123100039/https://mail.gnome.org/archives/ftp-release-list/2021-December/msg00071.html | url-status = live}}</ref>
|
|
|-
! {{Version|o|{{Anchor|4.8}} 4.8}}
|2022-09-06<ref>{{cite web |url=https://gitlab.gnome.org/GNOME/gtk/-/blob/gtk-4-8/NEWS |title=gtk 4.8.0 |date=2022-09-06 |access-date=January 11, 2023 |last=Clasen |first=Matthias |archive-date=January 11, 2023 |archive-url=https://web.archive.org/web/20230111134008/https://gitlab.gnome.org/GNOME/gtk/-/blob/gtk-4-8/NEWS |url-status=live}}</ref>
|
|
|-
!{{Version|c|{{Anchor|4.10}} 4.10}}
|2023-03-04<ref>{{Cite web |title=NEWS · 4.10.1 · GNOME / gtk · GitLab |url=https://gitlab.gnome.org/GNOME/gtk/-/blob/4.10.1/NEWS?ref_type=tags |access-date=2023-04-19 |website=GitLab |date=March 13, 2023 |language=en |archive-date=April 19, 2023 |archive-url=https://web.archive.org/web/20230419133553/https://gitlab.gnome.org/GNOME/gtk/-/blob/4.10.1/NEWS?ref_type=tags |url-status=live}}</ref>
| GtkFileChooser deprecated (use GtkFileDialog)<ref>{{Cite web |url=https://blog.gtk.org/2022/10/30/on-deprecations/ |title=On deprecations – GTK Development Blog |date=October 30, 2022 |access-date=April 21, 2024 |archive-date=February 28, 2024 |archive-url=https://web.archive.org/web/20240228135914/https://blog.gtk.org/2022/10/30/on-deprecations/ |url-status=live}}</ref>
|
|}
|}

The GNOME team releases new versions on a regular basis.<ref name="roadmap" />


==See also==
==See also==
Line 1,069: Line 757:
* [[Client-Side Decoration]]
* [[Client-Side Decoration]]
* [[List of widget toolkits]]
* [[List of widget toolkits]]
* [[GDK]] – the GIMP Drawing Kit lies between the [[xlib]] and the GTK library, handling basic rendering such as drawing primitives, raster graphics (bitmaps), cursors, fonts, as well as window events and drag-and-drop functionality
* [[gtkmm]] – C++ bindings for GTK
* [[gtkmm]] – C++ bindings for GTK
* [[Qt (software)|Qt]] – cross platform framework and toolkit
* [[Xojo]] – cross-platform development tool and framework
* [[Enlightenment Foundation Libraries]] (EFL) – widget toolkit written for the Enlightenment window manager
* [[Enlightenment Foundation Libraries]] (EFL) – widget toolkit written for the Enlightenment window manager
* [[FLTK]] – a light, cross-platform, non-native widget toolkit
* [[FLTK]] – a light, cross-platform, non-native widget toolkit
* [[FOX toolkit]] – a fast, open source, cross-platform widget toolkit
* [[Fox toolkit]] – a fast, open source, cross-platform widget toolkit
* [[IUP (software)|IUP]] – a multi-platform toolkit for building native graphical user interfaces
* [[IUP (software)|IUP]] – a multi-platform toolkit for building native graphical user interfaces
* [[Ultimate++]]
* [[Ultimate++]]
Line 1,081: Line 766:


==References==
==References==
{{Reflist|30em}}
{{reflist|1=30em}}


==Bibliography==
==Bibliography==
{{Refbegin}}
{{Refbegin}}
* {{citation
* {{citation
| last = Krause
|last = Krause
| first = Andrew
|first = Andrew
| title = Foundations of GTK+ Development
|title = Foundations of GTK+ Development
| date = 23 April 2007
|date = April 23, 2007
| url = https://archive.org/details/foundationsofgtk00krau
|url = https://archive.org/details/foundationsofgtk00krau
| edition = 1st
|edition = 1st
| publisher = [[Apress]]
|publisher = [[Apress]]
| isbn = 978-1-59059-793-4}}
|isbn = 978-1-59059-793-4
}}
* {{citation
* {{citation
| last = Wright
|last = Wright
| first = Peter
|first = Peter
| title = Beginning GTK+ and GNOME
|title = Beginning GTK+ and GNOME
| date = 15 May 2000
|date = May 15, 2000
| edition = 1st
|edition = 1st
| publisher = [[Wrox Press|Peer Information]]
|publisher = [[Wrox Press|Peer Information]]
| isbn = 978-1-86100-381-2
|isbn = 978-1-86100-381-2
| url = https://archive.org/details/beginninggtkgnom00wrig}}
|url = https://archive.org/details/beginninggtkgnom00wrig
}}
* {{citation
* {{citation
| title = Gtk+ Programming in C
|title = Gtk+ Programming in C
| date = 6 September 2001
|date = September 6, 2001
| url = http://www.informit.com/store/product.aspx?isbn=0130142646
|url = http://www.informit.com/store/product.aspx?isbn=0130142646
| last1 = Logan
|last1 = Logan
| first1 = Syd
|first1 = Syd
| edition = 1st
|edition = 1st
| publisher = [[Prentice Hall]]
|publisher = [[Prentice Hall]]
| isbn = 978-0-13-014264-1}}
|isbn = 978-0-13-014264-1
|access-date = August 15, 2009
|archive-date = September 30, 2012
|archive-url = https://web.archive.org/web/20120930103543/http://www.informit.com/store/product.aspx?isbn=0130142646
|url-status = live
}}
{{Refend}}
{{Refend}}


Line 1,122: Line 814:
{{GNU}}
{{GNU}}
{{Widget toolkits}}
{{Widget toolkits}}
{{GUI builders}}


{{Authority control}}
{{Authority control}}
{{Use dmy dates|date=September 2020}}


{{DEFAULTSORT:Gtk+}}
{{DEFAULTSORT:Gtk+}}
Line 1,135: Line 827:
[[Category:Free software programmed in C]]
[[Category:Free software programmed in C]]
[[Category:GNOME]]
[[Category:GNOME]]
[[Category:Software that uses Cairo]]
[[Category:Software that uses Cairo (graphics)]]
[[Category:Software that uses Meson]]
[[Category:Software that uses Meson]]
[[Category:Software using the LGPL license]]
[[Category:Software using the LGPL license]]

Latest revision as of 18:45, 22 June 2024

Original author(s)Spencer Kimball, Peter Mattis
Developer(s)The GNOME Project, eXperimental Computing Facility (XCF)
Initial releaseApril 14, 1998; 26 years ago (1998-04-14)
Stable release
4.14.4 / April 2, 2024; 3 months ago (2024-04-02)
Preview release
4.15.1 / May 21, 2024; 44 days ago (2024-05-21)
Repository
Written inC, CSS[1]
Operating systemLinux, Unix-like, macOS, Windows
TypeWidget toolkit
LicenseLGPLv2.1+
Websitegtk.org

GTK (formerly GIMP ToolKit[2] and GTK+[3]) is a free software cross-platform widget toolkit for creating graphical user interfaces (GUIs).[4] It is licensed under the terms of the GNU Lesser General Public License, allowing both free and proprietary software to use it. It is one of the most popular toolkits for the Wayland and X11 windowing systems.[5]

The GTK team releases new versions on a regular basis.[6] GTK 4 and GTK 3 are maintained, while GTK 2 is end-of-life.[7] GTK1 is independently maintained by the CinePaint project.[8]

Software architecture[edit]

The GTK toolkit
Simplified software architecture of GTK. Pango, GDK, ATK, GIO, Cairo and GLib
GDK contains back-ends to X11, Wayland, Broadway (HTTP), Quartz, and GDI and relies on Cairo for the rendering. Its new SceneGraph is work-in-progress.

The GTK library contains a set of graphical control elements (widgets); version 3.22.16 contains 186 active and 36 deprecated widgets.[9] GTK is an object-oriented widget toolkit written in the programming language C; it uses GObject, that is the GLib object system, for the object orientation. While GTK is mainly for windowing systems based on X11 and Wayland, it works on other platforms, including Microsoft Windows (interfaced with the Windows API), and macOS (interfaced with Quartz). There is also an HTML5 back-end named Broadway.[10][11]

GTK can be configured to change the look of the widgets drawn; this is done using different display engines. Several display engines exist which try to emulate the look of the native widgets on the platform in use.

Starting with version 2.8, released in 2005, GTK began the transition to using Cairo to render most of its graphical control elements widgets.[12] Since GTK version 3.0, all rendering is done using Cairo.[13]

On January 26, 2018 at DevConf.cz, Matthias Clasen gave an overview of the current state of GTK 4 development, including a high-level explanation of how rendering and input worked in GTK 3, what changes are being made in GTK 4 (>3.90), and why.[14] On February 6, 2019 it was announced that GTK 4 will drop the “+” from the project's name.[3]

GTK Drawing Kit (GDK)[edit]

GDK acts as a wrapper around the low-level functions provided by the underlying windowing and graphics systems.

GTK Scene Graph Kit (GSK)[edit]

GSK is the rendering and scene graph API for GTK. GSK lies between the graphical control elements (widgets) and the rendering. GSK was finally merged into GTK version 3.90 released March 2017.

GtkInspector[edit]

GtkInspector was introduced with version 3.14.[15][16] GtkInspector can only be invoked after installing the development package libgtk-3-dev/gtk+-devel.

GUI designers[edit]

There are several GUI designers for GTK. The following projects were active as of July 2011:

GtkBuilder[edit]

GtkBuilder allows user interfaces to be designed without writing code. The interface is described in an Extensible Markup Language (XML) file, which is then loaded at runtime and the objects created automatically. The Glade Interface Designer allows creation of the user interface in a what you see is what you get (WYSIWYG) manner. The description of the user interface is independent from the programming language being used.

Language bindings[edit]

Language bindings are available for using GTK from languages other than C, including C++, Genie, JavaScript, Perl, Python, Vala, and others.[19]

GtkSharp, not to be confused with Gtk#, supports GTK 3.

Gtk#[edit]

Gtk#
Developer(s)Xamarin
Initial releaseMarch 12, 2004; 20 years ago (2004-03-12)
Stable release
2.12.41[20] / September 22, 2016; 7 years ago (2016-09-22)
Preview release
2.99.3 (for GTK3)[20] / June 6, 2014; 10 years ago (2014-06-06)
Repository
Written inC#, XML, Perl, C
Operating systemWindows, macOS, Linux
TypeWidget toolkit
LicenseGNU Lesser General Public License
Websitemono-project.com/GtkSharp

Gtk# is a set of .NET Framework bindings for the GTK graphical user interface (GUI) toolkit and assorted GNOME libraries. The library facilitates building graphical GNOME applications using Mono or any other compliant Common Language Runtime (CLR). Gtk# is an event-driven system like any other modern windowing library where every widget allows associating handler methods, which get called when certain events occur.[citation needed]

Applications built using Gtk# will run on many platforms including Linux, Windows and macOS. The Mono packages for Windows include GTK, Gtk# and a native theme to make applications look like native Windows applications. Starting with Mono 1.9, running Gtk# applications on macOS no longer requires running an X11 server.[21]

Glade Interface Designer can be used with the Glade# bindings to easily design GUI applications. A GUI designer named Stetic is integrated with the MonoDevelop integrated development environment (IDE).

In addition to support the standard GTK/GNOME stack of development tools, the gtk-dotnet.dll assembly provides a bridge to consume functionality available on the .NET stack. At this point this includes the functionality to use System.Drawing to draw on a widget.[citation needed]

As of September 2020, Gtk# support for Gtk3 remains in the preview phase and forked projects, such as GtkSharp, have been founded to provide full Gtk3 support for C# and other CLI languages. The lack of a released version of Gtk# with support for Gtk3 was cited as a reason to remove the Banshee media player in Ubuntu 12.04.[22]

Development[edit]

GTK is mainly developed by The GNOME Project, which also develops the GNOME Development Platform and the GNOME Desktop Environment.[23]

GTK development is loosely managed. Discussion chiefly occurs on several public mailing lists.[24] GNOME developers and users gather at an annual GNOME Users And Developers European Conference GUADEC meeting to discuss GNOME's current state and future direction.[25] GNOME incorporates standards and programs from freedesktop.org to better interoperate with other desktops.[citation needed]

GTK is mainly written in C.[26] Many language bindings are available.

On September 1, 2016, a post on the GTK development blog denoted, among other things, the future numbering scheme of GTK.[27] GTK version 3.22, released in Autumn 2016, was planned to be the last 3.x release, although version 3.24 followed in Fall 2018 with the delay of GTK 4.[28] The development of GTK 4 used version names 3.90, 3.92, etc. until the first GTK 4.0 stable release was launched in December 2020.[29] Despite the first stable GTK 4 release, some applications using GTK still rely on GTK 2. For example, as of January 2022, GIMP is still being ported to GTK 3.[30]

Build automation[edit]

GTK (and GNOME, GLib, etc.) formerly utilized the GNU Build System (named Autotools) as the build automation system of choice.

Since August 14, 2017, the master branch of GTK has been built with Meson, and the Autotools build system files have been dropped.[31]

Criticism[edit]

The most common criticism of GTK is the lack of backward-compatibility in major updates, most notably in the application programming interface (API)[32] and theming.[33]

The compatibility breaks between minor releases during the GTK 3.x development cycle was explained by Benjamin Otte as due to strong pressures to innovate, such as providing the features modern users expect and supporting the increasingly influential Wayland display server protocol. With the release of GTK 4, the pressure from the need to innovate will have been released and the balance between stability and innovation will tip toward stability.[34] Similarly, recent changes to theming are specifically intended to improve and stabilise that part of the API, meaning some investment now should be rewarded later.

  • Dirk Hohndel, codeveloper of Subsurface and member of Intel's Open-Source Technology Center, criticized the GTK developers for being abrasive and ignoring most community requests.[35]
  • Hong Jen Yee, developer of LXDE (the GTK version of which was dropped and all efforts focused on the Qt port), expressed disdain for version 3 of the GTK toolkit's radical API changes and increased memory usage, and ported PCMan File Manager (PCManFM) to Qt. PCManFM is being developed with a GTK and with a Qt backend at the same time.[36]
  • The Audacious music player moved to Qt in version 3.6.[37] The reasons stated by the developers for this include a transition to client-side window decorations, which they claim cause the application to look "GNOME-y and out of place."[38]
  • Wireshark has switched to Qt due to not having a good experience with GTK's cross-platform support.[39]

Use[edit]

The GTK support for Wayland, co-requisites applications to be adapted to Wayland also
Screenshot of GIMP 2.8 - GTK is responsible for managing the interface components of the program, including the menus, buttons, and input fields.

Applications[edit]

Some notable applications that use GTK as a widget toolkit include:

Desktop environments[edit]

Several desktop environments utilize GTK as the widget toolkit.

Current[edit]

Inactive[edit]

Miscellaneous[edit]

GTK programs can be run on desktop environments based on X11 and Wayland, or window managers even those not made with GTK, provided the needed libraries are installed; this includes macOS if X11.app is installed. GTK can be also run on Microsoft Windows, where it is used by some popular cross-platform applications like Pidgin and GIMP. wxWidgets, a cross-platform GUI tool-kit, uses GTK on Linux by default.[40] Other ports include DirectFB (used by the Debian installer, for example) and ncurses.[41]

Window managers[edit]

The following window managers use GTK:

GtkSourceView[edit]

For syntax highlighting there is GtkSourceView, "source code editing widget". GtkSourceView is maintained by GNOME separately from GTK as a library: gtksourceview. There are plans to rename to gsv.[citation needed]

GtkSpell[edit]

GtkSpell is a library separate from GTK. GtkSpell depends on GTK and Enchant. Enchant is a wrapper for ispell, hunspell, etc., the actual spell checker engine/software. GtkSpell uses GTK's GtkTextView widget, to highlight misspelled words and offer replacement.

History[edit]

Linux[edit]

GTK was originally designed and used in the GNU Image Manipulation Program (GIMP) as a replacement of the Motif toolkit; at some point Peter Mattis became disenchanted with Motif and began to write his own GUI toolkit named the GIMP toolkit and had successfully replaced Motif by the 0.60 release of GIMP.[42] Finally GTK was re-written to be object-oriented and was renamed GTK+.[43] This was first used in the 0.99 release of GIMP. GTK was subsequently adopted for maintenance by the GNOME Foundation, which uses it in the GNOME desktop environment.

The GTK 2.0.0 release series introduced new features which include improved text rendering using Pango, a new theme engine, improved accessibility using the Accessibility Toolkit, transition to Unicode using UTF-8 strings, and a more flexible API. Starting with version 2.8, GTK 2 depends on the Cairo graphics library for rendering vector graphics.

GTK version 3.0.0 included revised input device handling, support for themes written with CSS-like syntax, and the ability to receive information about other opened GTK applications.

The '+' was dropped returning to simply 'GTK' in February 2019 during a Hackathon.[44]

macOS[edit]

With Quartz-backend[45] GTK is available in macOS.[46]

Windows[edit]

  • After GTK 2.24.10 and 3.6.4 Development of Windows with Installer was closed by Gnome. Installation of MSYS2 on Windows is a good way to use actual GTK.[47]
  • GTK 2.24.10 and 3.6.4 is available in Internet, but very buggy and limited against actual versions.[48][49]
  • A version for Windows 64-bit is prepared by Tom Schoonjans with 2.24.33 (actual like Linux) and 3.24.24 (actual like Linux) from January 2021 available.[50]
  • Windows 10's Fall Creators Update includes Windows Subsystem for Linux (WSL). With Linux distributions like Ubuntu or Debian available from the Microsoft Store and an X server like Xming or VcXsvr, thousands of programs like GTK 2 or 3 can run with X or terminal support.

OpenVMS[edit]

HP stated that their goal was to merge the needed OpenVMS changes into the GTK Version 1.3 development stream, however this never materialised.[51] The latest version of GTK for OpenVMS is version 1.2.10.[52]

GTK 4[edit]

One of the cardinal novelties implemented during the GTK 4 development cycle (i.e. GTK 3.92, etc.) has been the removal of customization options for the user side (like individual keyboard shortcuts that could be set in GTK+ 2), and the delegation of functionality to ancillary objects instead of encoding it into the base classes provided by GTK.

  • the event handling from signal handlers described by GtkWidget is delegated to event controllers
  • the rendering is delegated to GtkSnapshot objects
  • the layout mechanism from GtkWidget is delegated to GtkLayoutManager

In January 2018 at DevConf.cz Matthias Clasen gave an overview of the then current state of GTK 4 development, including a high-level explanation of how rendering and input worked in GTK 3, what changes were being made to GTK 4, and the reasons for those changes. Examples of things that have become possible with GTK 4 were given as well.[53]

Releases[edit]

Legend:
Old version
Older version, still maintained
Latest version
Latest preview version
Future release
Release series Initial release Major enhancements Latest minor version
Old version, no longer maintained: 1.0 1998-04-13[54] First stable version 1.0.
Old version, no longer maintained: 1.2 1999-02-25[55] New widgets:
  • GtkFontSelector
  • GtkPacker
  • GtkItemFactory
  • GtkCTree
  • GtkInvisible
  • GtkCalendar
  • GtkLayout
  • GtkPlug
  • GtkSocket
1.2.10
Old version, no longer maintained: 2.0 2002-03-11[56] GObject

Overall support for UTF-8

2.0.9
Old version, no longer maintained: 2.2 2002-12-22[57] Multihead support 2.2.4
Old version, no longer maintained: 2.4 2004-03-16[58] New widgets:
  • GtkFileChooser
  • GtkComboBox
  • GtkComboBoxEntry
  • GtkExpander
  • GtkFontButton
  • GtkColorButton
2.4.14
Old version, no longer maintained: 2.6 2004-12-16[59] New widgets:
  • GtkIconView
  • GtkAboutDialog
  • GtkCellView

The last to support Windows 98/Me

2.6.10
Old version, no longer maintained: 2.8 2005-08-13[60] Most widgets are rendered by Cairo 2.8.20
Old version, no longer maintained: 2.10 2006-07-03[61] New widgets:
  • GtkStatusIcon
  • GtkAssistant
  • GtkLinkButton
  • GtkRecentChooser

Print support: GtkPrintOperation

2.10.14
Old version, no longer maintained: 2.12 2007-09-14[62] GtkBuilder 2.12.12
Old version, no longer maintained: 2.14 2008-09-04[63] JPEG 2000 load support 2.14.7
Old version, no longer maintained: 2.16 2009-03-13[64] New widget: GtkOrientable

Caps Lock warning in password entry

Improvements on GtkScale, GtkStatusIcon, GtkFileChooser

2.16.6
Old version, no longer maintained: 2.18 2009-09-23[65] New widget: GtkInfoBar

Improvement on file chooser, printing

To remove much of the necessary IPC between the X11 application and the X11 server, GDK is rewritten (mainly by Alexander Larsson) to use "client-side windows", i.e., the GdkWindow, which every widget must have, belongs now to the client

2.18.9
Old version, no longer maintained: 2.20 2010-03-23[66] New widgets:
  • GtkSpinner
  • GtkToolPalette
  • GtkOffscreenWindow

Improvement on file chooser, keyboard handling, GDK

Introspection data is now included in GTK

2.20.1
Old version, no longer maintained: 2.22 2010-09-23[67] GdkPixbuf moved to separate module

Most GDK drawing are based on Cairo

Many internal data are now private and can be sealed in preparation to GTK 3

2.22.1
Old version, no longer maintained: 2.24 2011-01-30[68] New widget: GtkComboBoxText which had previously been a custom widget shipped with Gtkmm

The CUPS print backend can send print jobs as PDF

GtkBuilder has gained support for text tags and menu toolbuttons and many introspection annotation fixes were added

Migrating from GTK+ 2.x to GTK+ 3

2.24.33
(2020-12-21)[69]
Old version, no longer maintained: 3.0 2011-02-10[70] Development and design of the GTK 3 release of the toolkit started in February 2009 during the GTK Theming Hackfest held in Dublin[71]
  • The first draft of the development roadmap was released on April 9, 2009[72]

Completed mostly Project Ridley

  • the attempt to consolidate several libraries that were external to GTK+
  • including libgnome, libgnomeui, libgnomeprint22, libgnomeprintui22, libglade, libgnomecanvas, libegg, libeel, gtkglext, and libsexy[73]

All the rendering is done using Cairo

GDK became more X11 agnostic

XInput2, theme API is based on Cascading Style Sheets (CSS), worsening the achievable performance for 60 Hz frame rates

3.0.12
Old version, no longer maintained: 3.2 2011-09-25[74] New widgets:
  • GtkLockButton
  • GtkOverlay

New Font Chooser dialog

New experimental backends:

3.2.4
Old version, no longer maintained: 3.4 2012-03-26[75] Menu support in GtkApplication

A new color chooser

Added support for touch devices

Added support for smooth scrolling

GtkScrolledWindow will do kinetic scrolling with touch devices

macOS support is improved

This is the first version of GTK 3 that works well on Windows

The Wayland backend is updated to the current Wayland version

Spin buttons have received a new look

Accessibility: the treeview accessible support is rewritten

More complete CSS theming support

3.4.4
Old version, no longer maintained: 3.6 2012-09-24[76] New widgets:
  • GtkSearchEntry
  • GtkMenuButton
  • GtkLevelBar

Vertical spin buttons

CSS animations, blur shadows

Support for cross-fading and transitions in themes

3.6.5
Old version, no longer maintained: 3.8 2013-03-25[77] Wayland 1.0 stable support

Support for the broadwayd server

Improved theming

Better geometry management

Touch improvements

Support with the window manager for the frame synchronization protocol

GdkFrameClock added[78]

3.8.9
Old version, no longer maintained: 3.10 2013-09-23[79] New widgets:
  • GtkHeaderBar
  • GtkPlacesSidebar
  • GtkStack
  • GtkStackSwitcher
  • GtkRevealer
  • GtkSearchBar
  • GtkListBox

Support for Wayland 1.2

  • maximization
  • animated cursors
  • multiple monitors
  • settings
  • custom surfaces
  • frame synchronization

Added:

  • client-side decorations
  • scaled output support on high-dpi screens
  • fine-adjustment mode for scrolling

Removed:

  • support for the Motif DND protocol
  • support for multiple screens per display
  • gdk_window_get_display
  • gtk_widget_push_composite_child

Tear-off menu-items, plus many GTK settings

The modern GTK drawing model

3.10.9
Old version, no longer maintained: 3.12 2014-03-25[80] Client-side decorations[81]

Support for Wayland 1.5

New widget: GtkPopover (an alternative to menus and dialogs)

3.12.2
Old version, no longer maintained: 3.14 2014-09-22[82] GtkInspector (a copy of gtkparasite) introduced[83][84]

Improved support for gestures/multi-touch merged[85][86]

Deprecated:[87]

  • GtkMisc
  • GtkAlignment
  • GtkArrow
  • GdkColor
  • Style regions
  • support for .icon files
  • gdk_window_flush
  • drawing outside of begin/end paint

Most widgets converted to use gestures internally

Wayland supports GNOME Shell classic mode[88]

3.14.15
Old version, no longer maintained: 3.16 2015-03-22[89] GDK supports rendering windows using OpenGL for X11 and Wayland using libepoxy

New widgets:

  • GtkGLArea
  • GtkStackSidebar
  • GtkModelButton
  • GtkPopoverMenu

Scrolling overhauled (scrollbar hidden by default[90])

Experimental Mir backend[91]

3.16.7
Old version, no longer maintained: 3.18 2015-09-23[92] Add CSS node infrastructure

More filechooser design refresh and better filechooser search

Dropped Windows XP support

Model support for list and flow box

Kinetic touchpad scrolling

Touchpad gestures (Wayland)

gtk-builder-tool utility

Output-only windows

3.18.9
Old version, no longer maintained: 3.20 2016-03-21[93] Further Integration of CSS nodes[94]

Move drag and drop down to GDK

New widget: GtkShortcutsWindow (shows keyboard shortcuts and gestures of an application)

3.20.10
Old version, no longer maintained: 3.22 2016-09-21[95] Last 3.x release[27]

Wayland tablet support is merged,[96] support for graphics tablets is considered feature complete[97]

GTK 3.22 shall be as rock-stable (and hence "boring") as GTK 2[34][98][99]

for 3+ years
3.22.29
Older version, yet still maintained: 3.24 2018-09-03[100] 3.22 was supposed to be the last version of GTK 3 series
  • 3.24 was mainly released to ease migrating from GTK+ 3.x to GTK+ 4

Dependency bumps – require:

  • libepoxy 1.4
  • pango 1.41

New font chooser features:

  • allow setting OpenType font features
  • show examples for OpenType font features
  • allow selecting OpenType font variations
  • support levels of details for selection

New Emoji features:

  • support a completion popup for Emoji
  • drop Ctrl-Shift-e shortcut

Other new APIs: gdk_window_move_to_rect

Wayland: use anonymous shared memory on FreeBSD

Backported event controllers from GTK 4:

  • GtkEventControllerScroll
  • GtkEventControllerMotion
  • GtkEventControllerKey
  • GtkGestureStylus

Deprecate a few APIs that are gone in GTK 4:

  • focus chains in GtkContainer
  • stepper sensitivity in GtkRange
3.23.0
3.23.1
3.23.2
3.23.3
3.24.0
...3.24.5
3.24.14
...

3.24.29

Old version, no longer maintained: 3.90 2017-03-31[101] GTK Scene Graph Kit (GSK) merged[6]

Remove any API marked as deprecated

Heavy development

A new Vulkan-renderer augments the old Cairo-renderer[102]

3.89.1

3.89.2
3.89.4
3.89.5
3.90

Old version, no longer maintained: 3.92 2017-10-18[103][104] As GNOME 3.26 was released already on September 13, 2017,[105] it was not based on GTK 3.92.

GNU autotools was replaced with Meson.

3.91.0

3.91.1
3.91.2
3.92.1

Old version, no longer maintained: 3.94 2018-06-26[106] 3.93
  • GdkScreen, GdkVisual removed
  • GdkDeviceManager replaced by GdkSeat
  • Clipboard handling is moved from GTK to GDK
  • GdkEvent is converted to an opaque GObject
  • the GL renderer in GSK is substantially completed, and is now on par with the Vulkan renderer
  • the use of GdkPixbuf in APIs is reduced
    • and the GskTexture object is moved to GDK as GdkTexture, to take its place
  • the Wayland backend now implements the KDE server-side decoration protocol
  • Broadway is ported to GSK.

GdkWindow renamed to GdkSurface

New abstraction for drawable content: GdkPaintable

There is support for displaying media with:

  • GtkVideo
  • GtkMediaFile
  • GtkMediaStream
  • GtkMediaControls
3.93
3.94.0
Old version, no longer maintained: 3.96 2019-05-07[107] The gtk4-builder-tool simplify command has gained a --3to4 option to convert GTK3 ui files to GTK4; though with AMTK menus, toolbars or other objects like GtkShortcutsWindow are created programmatically (not with a *.ui file), but with convenient APIs.[108]

GtkWidget can now use a GtkLayoutManager for size allocation

  • layout managers can optionally use layout children holding layout properties
  • GtkBinLayout, GtkBoxLayout, GtkGridLayout, GtkFixedLayout and GtkCustomLayout are currently available
  • more layout manager implementations will appear in the future

Focus handling has been rewritten, and focus-change event generation has been unified with crossing events

Events have been simplified and are just used for input:

  • expose events have been replaced by a GdkSurface::render signal
  • configure events have been replaced by a GdkSurface::size-changed signal
  • map events have been replaced by a GdkSurface::mapped property
  • gdk_event_handler_set has been replaced by a GdkSurface::event signal
  • key events no longer contain a string
  • events on unmapped widgets are ignored
3.96.0
Old version, no longer maintained: 3.98 2020-02-10[107]
  • Performance improvements
  • Drag and drop refactoring
  • Moving GDK towards Wayland
  • Removals
    • GtkMenu, GtkToolbar and similar classes have been replaced by GMenu.
  • Additions
    • Emoji chooser
    • Text widgets now have undo stacks
    • A new layout manager[109]
3.98.5
Old version, no longer maintained: 3.99.0 2020-07-31[110]
  • Introduced successor to Accessibility Toolkit (ATK).[111] The new approach will implement WAI-ARIA (World Wide Web Consortium (W3C) Accessibility Initiative – Accessible Rich Internet Applications).
  • Updated headers to use standard C types instead of GLib types
  • New widgets
  • Fixes and improvements[110]
3.99.4
Old version, no longer maintained: 4.0 2020-12-16[112] 4.0.2
Old version, no longer maintained: 4.2 2021-03-30[113]
Old version, no longer maintained: 4.4 2021-08-23[114]
Old version, no longer maintained: 4.6 2021-12-30[115]
Old version, no longer maintained: 4.8 2022-09-06[116]
Current stable version: 4.10 2023-03-04[117] GtkFileChooser deprecated (use GtkFileDialog)[118]

See also[edit]

References[edit]

  1. ^ "The GTK Open Source Project on Open Hub: Languages Page". www.openhub.net. Archived from the original on March 28, 2019. Retrieved March 28, 2019.
  2. ^ "A brief description on how GTK was born". www.gtk.org. Archived from the original on June 9, 2023. Retrieved July 5, 2023.
  3. ^ a b Bassi, Emmanuele (February 6, 2019). "Project rename to "GTK"". mail.gnome.org. GNOME mailinglist. Archived from the original on November 7, 2020. Retrieved February 7, 2019.
  4. ^ The GTK+ Team. "GTK+ Features". Archived from the original on May 25, 2019. Retrieved September 8, 2014.
  5. ^ "Documentation". www.x.org. Archived from the original on December 21, 2019. Retrieved November 22, 2019.
  6. ^ a b "Projects/GTK/Roadmap - GNOME Wiki!". wiki.gnome.org. Archived from the original on May 22, 2019. Retrieved November 22, 2019.
  7. ^ "GTK 4.0 – GTK Development Blog". December 16, 2020. Archived from the original on May 28, 2023. Retrieved October 18, 2021.
  8. ^ "Robin Rowe / GTK1 · GitLab". GitLab. Archived from the original on March 9, 2023. Retrieved February 22, 2023.
  9. ^ "GTK+ 3 Reference Manual". Archived from the original on June 23, 2021. Retrieved July 15, 2017.
  10. ^ "Using GTK+ with Broadway". GNOME Developer. GNOME. Archived from the original on June 14, 2021. Retrieved March 6, 2018.
  11. ^ "Broadway - GitHub symbiose/symbiose Wiki". GitHub. Archived from the original on June 28, 2023. Retrieved March 6, 2018.
  12. ^ "GTK+ to Use Cairo Vector Engine". February 5, 2005. Retrieved December 27, 2009.
  13. ^ "Gtk: Migrating from GTK 2.x to GTK 3". docs.gtk.org. Archived from the original on May 26, 2023. Retrieved June 16, 2022. All drawing in GTK 3 is done via Cairo.
  14. ^ "Matthias Clasen DevConf.cz 2018 talk about GTK+ 4" (PDF). January 26, 2018. Archived (PDF) from the original on April 22, 2024. Retrieved March 9, 2018.
  15. ^ "Introducing GtkInspector". May 15, 2014. Archived from the original on May 17, 2014. Retrieved May 17, 2014.
  16. ^ "Another GtkInspector update". July 11, 2014. Archived from the original on July 14, 2014. Retrieved July 13, 2014.
  17. ^ "Debian -- Package Search Results -- gazpacho". packages.debian.org. Archived from the original on June 28, 2023. Retrieved November 22, 2019.
  18. ^ "Nothing-personal - A development site for Crow Designer, GuiLoader and Rally - Google Project Hosting". Archived from the original on January 24, 2013. Retrieved February 17, 2014.
  19. ^ The GTK+ Team. "GTK+ Language Bindings". www.gtk.org. Archived from the original on May 25, 2019. Retrieved June 3, 2017.
  20. ^ a b "Gtk# is a Mono/.NET binding to the cross platform Gtk+ GUI toolkit and the foundation of most GUI apps built with Mono: mono/gtk-sharp". November 16, 2019. Archived from the original on March 11, 2016. Retrieved September 1, 2016 – via GitHub.
  21. ^ "Download Gtk#". The GTK+ Project. Archived from the original on December 14, 2013. Retrieved December 23, 2014.
  22. ^ "'Bansheegeddon' may see Banshee, Mono dropped from Ubuntu default". ITWorld. Archived from the original on July 10, 2015. Retrieved August 31, 2015.
  23. ^ "GNOME Quick SWOT Analysis". The GNOME Project. Archived from the original on March 18, 2014. Retrieved March 18, 2014.
  24. ^ "GTK+ and GNOME Mailing Lists". The GNOME Project. Archived from the original on December 26, 2018. Retrieved December 4, 2011.
  25. ^ "About". GNOME Users And Developers European Conference (GUADEC). Archived from the original on October 4, 2011. Retrieved December 3, 2011.
  26. ^ "GNOME Languages". Ohloh. Black Duck Software. Archived from the original on May 22, 2014. Retrieved May 22, 2014.
  27. ^ a b "Versioning and long term stability promise in GTK". GTK development blog. September 1, 2016. Archived from the original on September 21, 2016. Retrieved September 2, 2016.
  28. ^ "GTK+ 3.24 To Deliver Some New Features While Waiting For GTK4". www.phoronix.com. Archived from the original on April 22, 2024. Retrieved April 2, 2021.
  29. ^ "GTK 4.0". GTK development blog. December 16, 2020. Archived from the original on May 28, 2023. Retrieved October 18, 2021.
  30. ^ "Development release GIMP 2.99.2 is out". Gimp news. November 6, 2020. Archived from the original on April 10, 2021. Retrieved January 6, 2022.
  31. ^ "Build system change GTK's master branch". mail.gnome.org. Archived from the original on August 15, 2017. Retrieved October 29, 2018.
  32. ^ "How Does One Create A Gtk+ Application? – Morten Welinder". blogs.gnome.org. June 23, 2014. Archived from the original on July 1, 2014. Retrieved June 3, 2017.
  33. ^ mclasen (November 20, 2015). "A GTK+ update". Goings on. Archived from the original on May 2, 2016. Retrieved June 3, 2016.
  34. ^ a b "GUADEC2013: Benjamin Otte talks about GTK+". GUADEC. Archived from the original on March 6, 2014. Retrieved March 5, 2014.
  35. ^ Larabel, Michael (January 12, 2014). "The Biggest Problem With GTK & What Qt Does Good". Phoronix. Archived from the original on July 1, 2016. Retrieved September 10, 2014.
  36. ^ Hong Jen Yee (March 26, 2013). "PCManFM Qt 0.1.0 released". Archived from the original on June 7, 2013. Retrieved September 10, 2014.
  37. ^ "Audacious - An Advanced Audio Player". audacious-media-player.org. Archived from the original on July 28, 2019. Retrieved November 22, 2019.
  38. ^ Lindgren, John (May 6, 2014). "Ugly window decorations and how to fix them (GTK 3.12)". Archived from the original on October 13, 2014. Retrieved October 21, 2014.
  39. ^ Gerald Combs (October 15, 2013). "We're switching to Qt". Archived from the original on October 19, 2013. Retrieved August 19, 2015.
  40. ^ "GTK+". WxWidgets Compared To Other Toolkits. Archived from the original on October 5, 2007. Retrieved August 28, 2007.
  41. ^ "GTK+ TTY Port". Slashdot. August 26, 2003. Archived from the original on April 22, 2024. Retrieved August 31, 2010.
  42. ^ "LinuxWorld - Where did Spencer Kimball and Peter Mattis go?". Archived from the original on April 17, 1999. Retrieved August 19, 2013.
  43. ^ "What is the + in GTK+?". 2011. Archived from the original on March 26, 2012. Retrieved March 18, 2014.
  44. ^ "Rename some references to GTK+ (d080be3e) · Commits · GNOME / gtk". gitlab.gnome.org. February 4, 2019. Archived from the original on February 25, 2021. Retrieved February 5, 2019.
  45. ^ "Projects/GTK/OSX - GNOME Wiki!". wiki.gnome.org. Archived from the original on November 27, 2019. Retrieved November 22, 2019.
  46. ^ "GTK Download: Mac OS X". The GTK Team. Archived from the original on April 11, 2020. Retrieved April 11, 2020.
  47. ^ "GTK Download: Windows". The GTK Team. Archived from the original on April 14, 2020. Retrieved April 11, 2020.
  48. ^ "GTK+ for Windows Runtime Environment". SourceForge. September 15, 2017. Archived from the original on April 6, 2018. Retrieved April 5, 2018.
  49. ^ "GTK+". www.tarnyko.net. Archived from the original on April 8, 2018. Retrieved April 5, 2018.
  50. ^ "GTK+ for Windows Runtime Environment Installer (fork from http://gtk-win.sourceforge.net): tschoonj/GTK-for-Windows-Runtime-Environment-Installer". November 19, 2020. Archived from the original on June 11, 2018. Retrieved April 5, 2018 – via GitHub.
  51. ^ "HP OpenVMS systems - GTK+". Archived from the original on July 13, 2018. Retrieved July 12, 2018.
  52. ^ "HP OpenVMS systems - GTK+". Archived from the original on July 13, 2018. Retrieved July 12, 2018.
  53. ^ Clasen, Matthias. "GTK+ 4 Status Update" (PDF). Fedora People. Archived (PDF) from the original on April 22, 2024. Retrieved April 22, 2024.
  54. ^ Amundson, Shawn T. (April 13, 1998). "ANNOUNCE: GTK+ 1.0.0 Released!". GNOME Mail Services (Mailing list). Archived from the original on March 12, 2019. Retrieved May 20, 2019.
  55. ^ Amundson, Shawn T. (February 25, 1999). "ANNOUNCE: GTK+ and GLib 1.2.0 Released". GNOME Mail Services (Mailing list). Archived from the original on August 10, 2020. Retrieved May 20, 2019.
  56. ^ Taylor, Owen (March 11, 2002). "GTK+-2.0.0 released". GNOME Mail Services (Mailing list). Archived from the original on August 10, 2020. Retrieved May 20, 2019.
  57. ^ Taylor, Owen (December 22, 2002). "GTK+-2.2.0 released". GNOME Mail Services (Mailing list). Archived from the original on August 10, 2020. Retrieved May 20, 2019.
  58. ^ Taylor, Owen (March 16, 2004). "GTK+-2.4.0 released". GNOME Mail Services (Mailing list). Archived from the original on August 10, 2020. Retrieved May 20, 2019.
  59. ^ Clasen, Matthias (December 16, 2004). "GTK+-2.6.0 released". GNOME Mail Services (Mailing list). Archived from the original on August 10, 2020. Retrieved May 20, 2019.
  60. ^ Clasen, Matthias (August 13, 2005). "GTK+ 2.8.0 released". GNOME Mail Services (Mailing list). Archived from the original on August 10, 2020. Retrieved May 20, 2019.
  61. ^ Clasen, Matthias (July 3, 2006). "GTK+ 2.10 released". GNOME Mail Services (Mailing list). Archived from the original on January 22, 2021. Retrieved May 20, 2019.
  62. ^ Clasen, Matthias (September 14, 2007). "GTK+ 2.12 released". GNOME Mail Services (Mailing list). Archived from the original on May 25, 2019. Retrieved May 20, 2019.
  63. ^ Clasen, Matthias (September 4, 2008). "GTK+ 2.14.0 released". GNOME Mail Services (Mailing list). Archived from the original on August 10, 2020. Retrieved May 20, 2019.
  64. ^ Clasen, Matthias (March 13, 2009). "GTK+ 2.16.0 released". GNOME Mail Services (Mailing list). Archived from the original on June 3, 2019. Retrieved May 20, 2019.
  65. ^ Clasen, Matthias (September 23, 2009). "GTK+ 2.18.0 released". GNOME Mail Services (Mailing list). Archived from the original on June 3, 2019. Retrieved May 20, 2019.
  66. ^ Clasen, Matthias (March 23, 2010). "GTK+ 2.20.0 released". GNOME Mail Services (Mailing list). Archived from the original on May 25, 2019. Retrieved May 20, 2019.
  67. ^ Clasen, Matthias (September 23, 2010). "GTK+ 2.22.0 released". GNOME Mail Services (Mailing list). Archived from the original on May 25, 2019. Retrieved May 20, 2019.
  68. ^ Clasen, Matthias (January 20, 2011). "GTK+ 2.24.0". GNOME Mail Services (Mailing list). Archived from the original on May 8, 2019. Retrieved May 20, 2019.
  69. ^ "Tags · GNOME / gtk · GitLab". GitLab. December 21, 2020. Archived from the original on December 4, 2023. Retrieved October 18, 2023.
  70. ^ Clasen, Matthias (February 10, 2011). "GTK+ 3.0.0 released". GNOME Mail Services (Mailing list). Archived from the original on March 12, 2019. Retrieved May 20, 2019.
  71. ^ "Gtk+ 3.0 Theming API Hackfest". Silicon Island. Archived from the original on July 17, 2011. Retrieved June 3, 2017.
  72. ^ "Gtk+ 3 roadmap draft". Archived from the original on April 12, 2009. Retrieved June 3, 2017.
  73. ^ "Attic/ProjectRidley - GNOME Wiki!". wiki.gnome.org. Archived from the original on March 4, 2016. Retrieved March 29, 2014.
  74. ^ Clasen, Matthias (September 25, 2011). "GTK+ 3.2.0". GNOME Mail Services (Mailing list). Archived from the original on May 25, 2019. Retrieved May 20, 2019.
  75. ^ Clasen, Matthias (March 26, 2012). "GTK+ 3.4.0 released". GNOME Mail Services (Mailing list). Archived from the original on May 25, 2019. Retrieved May 20, 2019.
  76. ^ Clasen, Matthias (September 24, 2012). "GTK+ 3.6.0 released". GNOME Mail Services (Mailing list). Archived from the original on May 25, 2019. Retrieved May 20, 2019.
  77. ^ Clasen, Matthias (March 25, 2013). "GTK+ 3.8.0 released". GNOME Mail Services (Mailing list). Archived from the original on March 3, 2016. Retrieved May 20, 2019.
  78. ^ "Frame clock: GDK 3 Reference Manual". developer.gnome.org. Archived from the original on April 14, 2017. Retrieved April 13, 2017.
  79. ^ Clasen, Matthias (September 23, 2013). "GTK+ 3.10.0 released". GNOME Mail Services (Mailing list). Archived from the original on May 25, 2019. Retrieved May 20, 2019.
  80. ^ Clasen, Matthias (March 25, 2014). "GTK+ 3.12 released". GNOME Mail Services (Mailing list). Archived from the original on May 25, 2019. Retrieved May 20, 2019.
  81. ^ "Client-side decorations in themes | Goings on". December 5, 2013. Archived from the original on September 19, 2015. Retrieved December 31, 2015.
  82. ^ Clasen, Matthias (September 22, 2014). "GTK+ 3.14.0 released". GNOME Mail Services (Mailing list). Archived from the original on May 25, 2019. Retrieved May 20, 2019.
  83. ^ Matthias Clasen (May 15, 2014). "GtkInspector Author's blog entry". Archived from the original on May 17, 2014. Retrieved May 17, 2014.
  84. ^ "GtkInspector in GNOME wiki". May 15, 2014. Archived from the original on May 24, 2014. Retrieved May 17, 2014.
  85. ^ "Merging gestures into 3.14". May 23, 2014. Archived from the original on September 14, 2016. Retrieved May 23, 2014.
  86. ^ "RFC: gestures". March 4, 2014. Archived from the original on May 24, 2014. Retrieved May 23, 2014.
  87. ^ "gtk+ 3.13.2". May 27, 2014. Archived from the original on May 29, 2014. Retrieved May 28, 2014.
  88. ^ "gtk+ 3.13.3". June 24, 2014. Archived from the original on December 15, 2014. Retrieved June 25, 2014.
  89. ^ Clasen, Matthias (March 22, 2015). "GTK+ 3.16.0 released". GNOME Mail Services (Mailing list). Archived from the original on May 25, 2019. Retrieved May 20, 2019.
  90. ^ online, heise (March 25, 2015). "Linux-Desktop: Neues Gnome zeigt Nachrichten oben". heise online. Archived from the original on June 25, 2016. Retrieved June 3, 2017.
  91. ^ "GTK+ 3.16.0 released". mail.gnome.org. Archived from the original on April 7, 2016. Retrieved June 3, 2017.
  92. ^ Nestor, Marius (September 24, 2015). "GTK+ 3.18.0 Officially Released as Part of the GNOME 3.18 Desktop Environment". Softpedia. Archived from the original on May 25, 2019. Retrieved May 25, 2019.
  93. ^ Clasen, Matthias (March 21, 2016). "GTK+ 3.20". GNOME Mail Services (Mailing list). Archived from the original on March 12, 2019. Retrieved May 20, 2019.
  94. ^ "GTK+ 3.20 – Style Classes and Element Names". November 20, 2015. Archived from the original on March 5, 2016. Retrieved December 18, 2015.
  95. ^ Clasen, Matthias (September 21, 2016). "GTK+ 3.22 released". GNOME Mail Services (Mailing list). Archived from the original on May 25, 2019. Retrieved May 20, 2019.
  96. ^ "GTK+ Wayland tablet support is merged – Carlos Garnacho". April 6, 2016. Archived from the original on April 16, 2016. Retrieved April 8, 2016.
  97. ^ "hutterer input". www.x.org. Archived from the original on September 23, 2016. Retrieved September 23, 2016.
  98. ^ a b "Gtk 4.0 will not be stable until Gtk 4.6". June 13, 2016. Archived from the original on June 23, 2016. Retrieved June 15, 2016.
  99. ^ a b "Gtk 5.0 will not be stable until Gtk 5.6". June 14, 2016. Archived from the original on June 23, 2016. Retrieved June 15, 2016.
  100. ^ Clasen, Matthias (September 3, 2018). "gtk+ 3.24.0". GNOME Mail Services (Mailing list). Archived from the original on May 25, 2019. Retrieved May 20, 2019.
  101. ^ Clasen, Matthias (March 31, 2017). "gtk+ 3.90.0". GNOME Mail Services (Mailing list). Archived from the original on December 29, 2017. Retrieved May 20, 2019.
  102. ^ "Commits · master · GNOME / gtk". GitLab. Archived from the original on June 22, 2020. Retrieved November 22, 2019.
  103. ^ Clasen, Matthias (October 18, 2017). "gtk+ 3.92.1". GNOME Mail Services (Mailing list). Archived from the original on December 29, 2017. Retrieved May 20, 2019.
  104. ^ Clasen, Matthias (October 23, 2017). "GTK+ 3.92". GTK Development Blog. Archived from the original on May 25, 2019. Retrieved May 25, 2019.
  105. ^ "GNOME 3.26 Released". September 13, 2017. Archived from the original on March 16, 2021. Retrieved October 19, 2017.
  106. ^ Clasen, Matthias (June 26, 2018). "gtk+ 3.94.0". GNOME Mail Services (Mailing list). Archived from the original on July 5, 2018. Retrieved May 20, 2019.
  107. ^ a b Clasen, Matthias (May 7, 2019). "gtk 3.96". GNOME Mail Services (Mailing list). Archived from the original on May 28, 2019. Retrieved May 28, 2019.
  108. ^ "Introducing amtk". Archived from the original on June 22, 2020. Retrieved May 4, 2020.
  109. ^ Clasen, Matthias (February 13, 2020). "GTK 3.98". GTK+ Development Blog. Archived from the original on February 18, 2020. Retrieved February 18, 2020.
  110. ^ a b Clasen, Matthias (June 9, 2021). "gtk 4.3.1". FTP Releases (Mailing list). Archived from the original on July 10, 2021. Retrieved July 10, 2021.
  111. ^ "Emmanuele Bassi / guadec-2020". GitLab. Archived from the original on August 15, 2020. Retrieved September 12, 2020.
  112. ^ Clasen, Matthias (December 16, 2020). "gtk 4.0.0". GNOME Mail Services (Mailing list). Archived from the original on October 28, 2021. Retrieved December 16, 2020.
  113. ^ Clasen, Matthias (March 30, 2021). "gtk 4.2.0". GNOME Mail Services (Mailing list). Archived from the original on October 27, 2021. Retrieved March 30, 2021.
  114. ^ Clasen, Matthias (August 23, 2021). "gtk 4.4.0". GNOME Mail Services (Mailing list). Archived from the original on August 24, 2021. Retrieved January 23, 2022.
  115. ^ Clasen, Matthias (December 30, 2021). "gtk 4.6.0". FTP Releases (Mailing list). Archived from the original on January 23, 2022. Retrieved January 23, 2022.
  116. ^ Clasen, Matthias (September 6, 2022). "gtk 4.8.0". Archived from the original on January 11, 2023. Retrieved January 11, 2023.
  117. ^ "NEWS · 4.10.1 · GNOME / gtk · GitLab". GitLab. March 13, 2023. Archived from the original on April 19, 2023. Retrieved April 19, 2023.
  118. ^ "On deprecations – GTK Development Blog". October 30, 2022. Archived from the original on February 28, 2024. Retrieved April 21, 2024.

Bibliography[edit]

External links[edit]