Re: problems to make the datas appear in a TREE ...



Hi Peter, 

Well...in the code snippets you posted, the GtkTreeIter iter that
you pass to add_to_node isn't initialized.  Was that done
elsewhere?

sorry, without this initialize I was getting a segfault :S ... in
fact, i'm doing something like this :

(...populating the tree...)

       for (list = history_list->history, i = 0; list ; list =
list->next, i++) {

                 GtkTreeStore *store = GTK_TREE_STORE
                                        
(gtk_tree_view_get_model(GTK_TREE_VIEW(tree)));

                 gtk_tree_store_append(store, iter, NULL);

                 add_to_node(history_list, &iter, dialog_widgets->tree, i);
       }

(...)

no segfault occur ... but, is this enough to initialize it (iter) ?!

thanks and best regards 

-- 
Antonio Gomes
E-mail: antonio gomes indt org br
Embedded Linux Lab - 10LE
INdT - Instituto Nokia de Tecnologia (Manaus/Br)
NOKIA's Technology Institute



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