GTK+ 1.2 Tutorial
Prev | Chapter 11. CList Widget | Next

# Storing data pointers

With a CList it is possible to set a data pointer for a row. This pointer will not be visible for the user, but is merely a convenience for the programmer to associate a row with a pointer to some additional data.

The functions should be fairly self-explanatory by now.

    void gtk_clist_set_row_data( GtkCList *clist,
                                 gint      row,
                                 gpointer  data );

    oid gtk_clist_set_row_data_full( GtkCList         *clist,
                                      gint              row,
                                      gpointer          data,
                                      GtkDestroyNotify  destroy );

    gpointer gtk_clist_get_row_data( GtkCList *clist,
                                     gint      row );

    gint gtk_clist_find_row_from_data( GtkCList *clist,
                                       gpointer  data );

Prev | Home | Next
Setting text and pixmaps in the cells | Up | Working with selections