Re: Number of rows in clist



* Thomas Keaney <se40319 cs may ie> [040204 15:16]:

How would I count the number of rows contained within a clist?

You could try

   n = clist->rows;

where clist is a pointer to your GtkCList structure.

The docs say: "This structure contains only private data, and
should be accessed only via the CList API".  Unfortunately, the
API does not give you any "official" access to the number of rows
in a CList, so currently this seems to be the only way, if you
don't want to resort to keeping track of the number by yourself.
 
Best regards - Juergen



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]