Re: [gtk-list] Obtaining position of a list item





On Tue, 2 Jun 1998, Nathan Froyd wrote:

> selection = GTK_LIST(GTK_COMBO(combo)->list)->selection;

If you just want to know the index of the first element of the selection,
I believe you can use
g_list_index(GTK_LIST(GTK_COMBO(combo)->list)->children, selection->data);
after, of course, checking that selection is not NULL.
  Chris



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