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

后端 未结 3 1770
旧巷少年郎
旧巷少年郎 2021-02-06 21:59

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

相关标签:
3条回答
  • 2021-02-06 22:18

    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.

    0 讨论(0)
  • 2021-02-06 22:24

    GTK is the library for creating GUI-s for Linux / GNU. It has several versions (I think the latest is version 3).

    In order for other programming languages to use it (other than C), there have to exist libraries that can bind GTK to that particular language.

    PHP-GTK means that there's a library binding GTK to PHP enabling PHP to create apps that can be displayed in a nice interface. It supports, however, only up to version 2.2 of the GTK. Same goes for other languages, they have a prefix / suffix and (GtkAda for example) those libraries also tell you up to what version they support GTK (since you might want to try newer GTK functions that aren't available in the library binding GTK to your language).

    0 讨论(0)
  • 2021-02-06 22:36

    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.

    0 讨论(0)
提交回复
热议问题