list




Hello,

I've been playing with the list widget in GTK (mostly by peeking into
testgtk.c) for a playlist editor (I'm writing an MP3 player). If my
understanding is correct, list entries (at least as implemented in
testgtk.c) are actually widgets and not plain text?

How do I get the current selection? (I know there's a GtkList::selection
member, but it's a GSList, not a widget..) How do I change the selection
programmatically?  there's a gtk_list_select_item, but it takes a gint.. 

Basically, it would be really nice if I could extract the current
selection as a gint (I mean an index into the list).


Cheers,
Orly




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