Re: Problem with clist
- From: Jon Kinsey <jon_kinsey hotmail com>
- To: johnsjam comcast net
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Problem with clist
- Date: Wed, 07 Jul 2004 09:23:55 +0100
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]