Re: Key-value file parser, howto get all groups and create loop from them



On Mon, 14 Aug 2006, rupert wrote:

void make_list(GtkListStore *store, GtkTreeIter iter, gpointer
pixbuf_mapper_yes, gpointer pixbuf_mapper_no, gpointer pixbuf_mount_yes,
gpointer pixbuf_mount_no){

Notice the lack of * in front of the variable iter.

make_list(treedata.store, treedata.iter, treedata.pixbuf_mapper_yes,
treedata.pixbuf_mapper_no, treedata.pixbuf_mount_yes,
treedata.pixbuf_mount_no);

and likewise the lack of & in front of treedata.iter.

hope thats the part you are asking for

It was and it explains the symptoms perfectly :)

Now go and read up on parameter passing in C -- especially how C really always uses call-by-value and how call-by-reference is only supported by doing it "manually".

-Peter



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