Introduction: c++-gtk-utils library

The sha256sum of c++-gtk-utils-1.2.35.tar.gz is f4e42b6afb924aadf5d1ff37b1501da77e592d95c634c0c275cb20c8bb227431

The sha256sum of c++-gtk-utils-2.0.23.tar.gz is d041bcc0b3238a491f9f247ee277af88fc5f5d2032420e84cfffed978dd7c7ea

The sha256sum of c++-gtk-utils-2.2.6.tar.gz is 8e02d05608b8bfd15b88e479ed69de6a3d3f827bb22bc150337b29be5b910c6e

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.35. 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.23 and c++-gtk-utils-2.2.6 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.