Re: [gtk-list] clist selected row function



On Mon, 27 Apr 1998, Richard wrote:

> What function do I use to determine the 
> currently selected row in a clist?  

It's not a function per-se, but you basically use
GTK_CLIST(gtkclist)->selection, which is a GList of the
GtkCListRow pointers for selected rows.

Assuming you have set the row data uniquely, you can use
gtk_clist_find_row_from_data(clist,
	((GtkCListRow *)GTK_CLIST(clist)->selection->data)->data);

Or somesuch.
-- Elliot					http://www.redhat.com/
Chicken Little was right.



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