Re: GtkCList selection



You have to access the selection member directly.  It is a GList of
integers (the row numbers).  To print the row numbers that are selected,
you might use code like this:

  GList *tmp;
  for (tmp = clist->selection; tmp; tmp = tmp->next)
    printf("%u ", GPOINTER_TO_UINT(tmp->data));
  printf("\n");

You should be able to see how to use the selection from this fragment of
code.

James Henstridge.

--
Email: james@daa.com.au
WWW:   http://www.daa.com.au/~james/


On 9 Apr 1999, Moya Piernavieja Rodrigo wrote:

> Hi all!
> 
> I am not able to find docs or examples about fetching the selection in a GtkCList widget. There is a GList *selection member in the GtkCList structure, but I don't know how to use it, I mean, it is a GList of what? GtkObject? GtkWidget?
> 
> Please, just give me a pointer to some code or to a tutorial.
> 
> Thanks
> 
> 
> -- 
> To unsubscribe: mail gnome-devel-list-request@gnome.org with "unsubscribe"
> as the Subject.
> 



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