Re: Glib: g_tree_foreach and GTransverseFunc questions.



Hi Jean:

The user_data argument is an extra argument you can use for your
purpose. If you don't need any, passing NULL is OK.

Ok, but... which purpose ? I mean, in which case is interesting
to use it ?

Does this really work? you should free value, not data.

It was a typo, my bad :)

Instead of doing this, you can create your tree with g_tree_new_full and
use (GDestroyNotify)g_free as third and fourth arguments. Using g_free
is better than using free.

Ok, I'll try. Thanks a lot.

--
[]'s

Lucas Brasilino
brasilino prrr mpf gov br
Procuradoria da Rep�a no Estado de Roraima
+55-95-6239642




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