Re: problems to make the datas appear in a TREE ...
- From: Antonio Gomes <tonikitoo gmail com>
- To: Peter Bloomfield <peterbloomfield bellsouth net>
- Cc: gtk-app-devel-list <gtk-app-devel-list gnome org>
- Subject: Re: problems to make the datas appear in a TREE ...
- Date: Mon, 18 Apr 2005 20:17:31 -0400
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]