Re: Problem with clist



johnsjam comcast net wrote:

With a quick glance, it looks to me like you are dereferencing a pointer to a pointer. Try the following:
gtk_clist_append ((GtkCList *)clist, data[i]); Instead of: gtk_clist_append ((GtkCList *)clist, &data[i]);

Hi Jimmy,

This line is fine - gtk_clist_append expects an array of entries, I could change data to something like the following and then use data[i]:
  char *data[4][1] = {{"Milk"}, {"Water"}, {"Carrots"}, {"Snakes"}};

Anyway the list displays fine, it's only when you click on an entry I get a problem.

Jon




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