Re: Finding out CList row selections



> This is somewhat of an extension of my last question, but
> I would also like to know if there's an easy way to find
> out which rows have been selected. In the past, I've had
> to make a struct for each item added with two fields, one
> for the item name and another for if that row was selected
> or not. Is this the way it must be done or is there
> something easier?

You can use the list of selected rows, clist->selection, which is just
a linked list (GList).  However, if your selected list is sufficiently
large, getting the length of it to count the number of elements might
be a tad slow.

regards,
--andy




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