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



On 8/14/06, Peter Firefly Lund <firefly diku dk> wrote:

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.


got this fixed, didnt do it the first time, but now does ;)

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.


dito

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".

i will try to do...

thx for the hel, with adding the tip lanve gave its working somehow now,
but i had to do some changes:

gtk_tree_model_get_iter_first(treedata->store,&treedata->iter);
i have this line now before make_list and also in the function that updates
the
pixbuf.
Now i have to extract one field from every single line, so that i update the
pixbuf in
each line.

im gratefull for your help, thx.


-Peter




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