Re: I need the length of a Clist and erased the message.



On Monday 07 June 2004 16:57, Murilo Tuvani wrote:

Sorry I erasade a message that I need to read, a few
days ago thera was an message that explained how to
get the length of a Clist, 

 http://mail.gnome.org/archives/gtk-app-devel-list/2004-June/thread.html

I tried to do 

g_print("\nLength of list %d", list->length);

list is GtkCList  *list; but the gcc says

"structure has no member named `length'"

thanks for your help, I use GTK 1.2.

Try     

  list->rows

or

 GTK_CLIST (list)->rows 

if your list is GtkWidget *list;

Cheers
 -Tim



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