Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the relation between GTK, GTK+ and GTK2?

I'm confused by the GTK terminology. According to Wikipedia, there seem to be bindings to GTK+ that are called GTK (GtkAda) and GTK2 (gtk2hs, Gtk2-Perl).

Could someone clear this up for me?

like image 275
Tim Avatar asked Apr 29 '11 10:04

Tim


People also ask

Is GNOME based on GTK?

GNOME is a desktop environment that uses GTK+ as its GUI toolkit.

Is GTK still used?

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. 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.

Is GTK 4 backwards compatible?

The OS is backward compatible with old applications that continue to run. The old applications are forward compatible with newer versions of the operating system including some of the new features that are added.

What does GTK stand for in Linux?

GTK is commonly and incorrectly thought to stand for "GNOME ToolKit", but is actually stands for "GIMP ToolKit" because it was first created to design an user interface for GIMP. GTK is an object-oriented toolkit written in C (GTK itself is not a language).


Video Answer


2 Answers

The first incarnation of the project was called GTK (which stood for GIMP Toolkit).

At some very early point, while the project was still part of The GIMP (and before version 1.0), it was renamed to GTK+. Despite this, people often referred to it as GTK out of convenience or ignorance.

The GTK+ name was used for more than 20 years through versions 1.x, 2.x, and 3.x, but the "GIMP Toolkit" expansion was dropped. I don't know when exactly this happened but perhaps during the 1.x → 2.x transition.

There is nothing officially called GTK2. It's just what some people call the 2.x series of GTK+.

On 2019-02-06, the project was renamed back to GTK, which will affect version 4.0 onwards.

like image 80
Johannes Sasongko Avatar answered Sep 20 '22 15:09

Johannes Sasongko


GTK/GTK+ and GTK2 are different versions of the same API. GTK is an old, deprecated version, GTK2 is the previous one, GTK+ 3/GTK3 is the current version.

GTK+ is the correct name of the old API, but most people just call it GTK.

The C++ bindings for GTK+ are part of the project GTKmm.

like image 33
Aaron Digulla Avatar answered Sep 18 '22 15:09

Aaron Digulla