[Gtk-sharp-list] compare TreeIters

Thiago M. Sayao thiago.sayao at gmail.com
Fri Feb 2 16:01:02 EST 2007


That doesn't work either afaik

iter1.Stamp == iter2.Stamp will do..

the .Equals is inherited from the object type, which probably compares
memory address, or not? i'm not sure about this, but i had problems
doing iter1.Equals (iter2). It was the same iter, but on two different
variables and it returned false.

[ ]'sss

On Fri, 2007-02-02 at 10:12 -0800, Peter Johanson wrote:

> On Fri, Feb 02, 2007 at 03:02:42PM +0200, Radu wrote:
> > What's the right way to compare TreeIters? Why iter1 == iter2 doesn't work?
> 
> use if (iter1.Equals (iter2)) { /* foo */ }
> 
> -pete
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20070202/8fb8d938/attachment.html 


More information about the Gtk-sharp-list mailing list