Re: GtkCList: how to get row number from row data?




Kamran Qazi <kame_kaze@hotmail.com> writes:
KQ> From: "David Z. Maze" <dmaze@donut.mit.edu>
 DZM> Equivalently, is there a way to find out how many rows are in a
 DZM> GtkCList?  (i.e. does there exist a gtk_clist_count_rows()
 DZM> function?)
KQ> 
KQ> GTK_CLIST(clist)->rows has the number you are looking for.

Hmm.  This looks like it will _work_, but is aesthetically unpleasing.
And it doesn't look like there's a good way to do this without
depending on the internal representation of a GtkCList.  Oh well.

-- 
 _____________________________
/                             \       "Dad was reading a book called
|          David Maze         |     _Schroedinger's Kittens_.  Asexual
|         dmaze@mit.edu       |  reproduction?  Only one cat is in the box."
| http://donut.mit.edu/dmaze/ |               -- Abra Mitchell
\_____________________________/



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