On Tue, Oct 30, 2012 at 05:05:37PM +0400, Vlasov Vitaly wrote:
> Is that normal, to assign one GtkTreeIter to another?
> 
> For example:
> void add_new( ... , GtkTreeIter *iter)
> {
>     GtkTreeIter *default_iter;
> 
>     if(iter != NULL)
>     {
>        default_iter = iter; <-- is that noraml??

This is pointer assignment: default_iter will denote the same chunk of
memory as iter.  What exactly should be abnormal here?

>     }
>     gtk_tree_store_append(&default_iter);

This is invalid code: wrong number of arguments of wrong type.  And, of
course, default_iter is possibly being used uninitialised.

Yeti

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to