Re: [newbie]GtkTreeIter
- From: Jean Bréfort <jean brefort normalesup org>
- To: Stefano Esposito <ragnarok email it>
- Cc: gtk-list gnome org
- Subject: Re: [newbie]GtkTreeIter
- Date: Thu, 03 Feb 2005 20:53:52 +0100
Le jeudi 03 f�ier 2005 �0:48 +0000, Stefano Esposito a �it :
> Hi all, i'm a newbie, so... excuse me about this boring question :)
>
> using this code:
>
> ...
> GtkTreeIter *iter;
> GtkListStore *list;
> ...
> list = gtk_list_store_new(3, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, -1);
> gtk_list_store_append(list, iter);
> ...
>
> gives me this error:
>
> (prova:16128): Gtk-CRITICAL **: file gtkliststore.c: line 1321 (gtk_list_store_append): assertion `iter != NULL' failed
>
>
> which makes me think of a kind of inizialization for the iter... I red the api documentation, but I didn't find anything which seems usefull to me... Any hint?
You don't have to initialize it, just use:
GtkIter iter;
...
gtk_list_store_append(list, &iter);
Regards,
Jean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]