Modes of operation

There are several attributes that can be used to alter the behaviour of a CList. First there is

void gtk_clist_set_selection_mode( GtkCList         *clist,
                                   GtkSelectionMode  mode );

which, as the name implies, sets the selection mode of the CList. The first argument is the CList widget, and the second specifies the cell selection mode (they are defined in gtkenums.h). At the time of this writing, the following modes are available to us:

Others might be added in later revisions of GTK.

We can also define what the border of the CList widget should look like. It is done through

void gtk_clist_set_shadow_type( GtkCList      *clist,
                                GtkShadowType  border );

The possible values for the second argument are

  GTK_SHADOW_NONE
  GTK_SHADOW_IN
  GTK_SHADOW_OUT
  GTK_SHADOW_ETCHED_IN
  GTK_SHADOW_ETCHED_OUT