[Gtk-sharp-list] overloading operator ==?

Miguel de Icaza miguel@ximian.com
20 Oct 2002 15:30:05 -0400


Hello!

> Hmm, I just realized.. why is an overloaded operator == needed at all? 
> With the refouncting/GetObject()/etc. plan in place, there should never
> be the case of two different gtk#/C# objects existing with the same
> native _obj pointer -- there's a one-to-one mapping between the two.  So
> the base System.Object equality should suffice...

In this particular case, I ran into the problem when retrieving the same
value through two different places:

	gtk_text_view_get_border_window

(or something like that) that returns the GdkWindow to one of the
borders (we use a border on the right in the debugger).

And the other window coming from the event handler.  Grep for `Equals'
in the debugger/frontend/gui/*.cs to see where and why its being used.

Miguel