Retrieving one selected element in a GtkTreeSelection (multiple)?



Hi all,

What's the best way to retrieve just one of the selected items in a
GtkTreeSelection which has been set to GTK_SELECT_MULTIPLE mode?

I don't want to call gtk_tree_selection_selected_foreach in this case as
I only need one item - preferably the first (selected) one.

I do need all the selected items for other functions by the way so I
can't use GTK_SELECT_SINGLE...


Thanks!

-- 
Daniel Pekelharing
<legendstar gmail com>




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