GtkTree and GtkCTree

The GtkTree and GtkCTree widgets are standard tree-type controls. The “C” in GtkCTree stands for “column(s)”; you could say it is a cross between a tree control and a data control (see Figure 4.2 and Listing 4.2). In terms of the GTK+ widget tree, GtkContainer is the parent widget of GtkList, GtkCList, and GtkTree. GtkCTree is the child of GtkCList. Although you can think of GtkCTree as being derived from GtkCList, the same does not necessarily apply to GtkTree and GtkList.

Figure 4.2. The Tree widgets demo program running.

In the following program, the GtkTree and GtkCTree widgets are presented side by side for comparison. ...

Get MySQL Building User Interfaces now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.