Re: [gtk-list] Obtaining position of a list item
- From: Christopher James Lahey <clahey umich edu>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Obtaining position of a list item
- Date: Wed, 3 Jun 1998 00:55:20 -0400 (EDT)
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]