Re: GtkTreeIter assignment
- From: David NeÄas <yeti physics muni cz>
- To: Vlasov Vitaly <vnigtha gmail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: GtkTreeIter assignment
- Date: Tue, 30 Oct 2012 14:36:08 +0100
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]