From d802b535495eb3fb565feda2c7b62c4c87e71916 Mon Sep 17 00:00:00 2001 From: Brad Taylor Date: Mon, 23 Apr 2007 16:26:13 +0000 Subject: [PATCH] 2007-04-23 Brad Taylor * gtk/TreePath.custom: Override Equals and compare based upon the underlying indicies, instead of the object reference. [Fixes #81398] svn path=/trunk/gtk-sharp/; revision=76131 --- ChangeLog | 6 ++++++ gtk/TreePath.custom | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/ChangeLog b/ChangeLog index ba68a577d..1531ca405 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-04-23 Brad Taylor + + * gtk/TreePath.custom: Override Equals and compare based upon the + underlying indicies, instead of the object reference. + [Fixes #81398] + 2007-04-23 Mike Kestner * glib/Value.cs : add support for accessing generic struct boxed types diff --git a/gtk/TreePath.custom b/gtk/TreePath.custom index 2deb41696..3a4d74da5 100644 --- a/gtk/TreePath.custom +++ b/gtk/TreePath.custom @@ -34,3 +34,11 @@ foreach (int i in indices) AppendIndex (i); } + + public override bool Equals (object o) + { + if (!(o is TreePath)) + return false; + + return (Compare (o as TreePath) == 0); + }