Re: How to get number of rows in a clist



On Wednesday 03 September 2003 12:19, Günther Rapp wrote:

Hi,

How to get number of rows in a clist filled with the
      gtk_clist_append or
        gtk_clist_insert
function.

I suppose you can either

  (a) use GTK_CLIST(clist)->rows,

or

  (b) just keep track of the row count yourself, doing ++/-- whenever
       you insert/append or remove a row.

Given that GtkCList is deprecated, it is unlikely that the structure will be 
changed in the future, so I suppose it's safe to use clist->rows 

<obligatory nagging>

You should not use GtkCList any longer, you should use GtkTreeView and 
friends ;-)

</nagging>

Cheers
-Tim




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