Add TreeIter handlers
svn path=/trunk/gtk-sharp/; revision=20057
This commit is contained in:
parent
871e8f84a6
commit
ef410860df
1 changed files with 21 additions and 0 deletions
21
gtk/TreeIter.custom
Normal file
21
gtk/TreeIter.custom
Normal file
|
@ -0,0 +1,21 @@
|
|||
//
|
||||
// To avoid ValueType.Equals which is slow
|
||||
//
|
||||
public override int GetHashCode ()
|
||||
{
|
||||
return stamp;
|
||||
}
|
||||
|
||||
public override bool Equals (object o)
|
||||
{
|
||||
if (o == null)
|
||||
return false;
|
||||
|
||||
if (!(o is TreeIter))
|
||||
return false;
|
||||
TreeIter ti = (TreeIter) o;
|
||||
return ti.stamp == stamp &&
|
||||
ti._user_data == _user_data &&
|
||||
ti._user_data2 == _user_data2 &&
|
||||
ti._user_data3 == _user_data3;
|
||||
}
|
Loading…
Add table
Reference in a new issue