Introduction: c++-gtk-utils library

The sha256sum of c++-gtk-utils-1.2.34.1.tar.gz is 76fc72b9de55bf16b9352447db30e3c547e3b394fb26f485defaf363090557e3

The sha256sum of c++-gtk-utils-2.0.22.1.tar.gz is 2875ff85dd07d05acf735348859364d4bbd224b633375fb6d28dcf19ebd75126

The sha256sum of c++-gtk-utils-2.2.5.1.tar.gz is 14ef04cddce232a0906bd36f287791602acfb4d1cb6c8edc4c0f9c5d7a8ca8c6


NOTE: './configure' will prepare the library for compilation against GTK+3. To compile the library against GTK+2, use './configure-gtk2'.

c++-gtk-utils is a lightweight library containing a number of classes and functions for programming GTK+ programs using C++ in POSIX (unix-like) environments, where the user does not want to use a full-on wrapper such as gtkmm or wxWidgets, or is concerned about exception safety or thread safety of the wrapper and their documentation. It is parallel installable for both GTK+2 and GTK+3. There is also an option to install a subset of the library with only glib/gobject/gio support, without GTK+.

There are three currently maintained stable series of the library, namely the 1.2, 2.0 and the 2.2 series. The latest release in the 1.2 series is c++-gtk-utils-1.2.34.1. The 1.2 series of the library can be compiled with any C++98/03 compliant compiler such as gcc, and can also be compiled under C++0x/11.

The 2.0 and 2.2 series target C++0x/11 only, the latest releases of which are c++-gtk-utils-2.0.22.1 and c++-gtk-utils-2.2.5.1 respectively. If using gcc with the 2.2 series, gcc-4.6 or later is required, and with clang, clang-3.2 or later. The 2.0 series will compile with gcc-4.4 or later.

If in doubt, go for the 2.2 series if using C++0x/11, and the 1.2 series if using C++98/03. The 2.2 series is nicer to use than the 2.0 series: the 2.0 series is for transitional purposes for compilers which do not adequately support C++11. In particular, the 2.2 series provides a more generalised interface for callable objects than does the 2.0 series.

The 2.2 series makes an ABI break for bug-fix purposes, providing c++-gtk-utils-2-2.2.pc and c++-gtk-utils-3-2.2.pc pkg-config configuration files (the 2.0 series provides c++-gtk-utils-2-2.0.pc and c++-gtk-utils-3-2.0.pc). However, it is in almost all respects API compatible with the 2.0 series - the only significant difference is that the --with-auto-ptr configuration option has been removed, so if that option has not been used then when switching from the 2.0 to 2.2 series, code should compile without change. The 2.2 series is parallel installable with the 1.2 and 2.0 series.

Code using the 2.0 and 2.2 series should be compiled with the -std=c++0x or -std=c++11 compiler flag. gcc-4.7.1 onwards accepts either flag, as does clang-3.2 (prior to gcc-4.7.1 only the -std=c++0x flag was accepted).

It is intended that the main features offered by the 1.2, 2.0 and 2.2 series will remain in step, and that the 1.2 series will be maintained for as long as C++98/03-only programs are likely to be written (namely, some years). However, some features can only conveniently be provided using C++11.