2007-09-11 Mike Kestner <mkestner@novell.com>

* gtk/Object.custom (Destroy): add a null check to avoid 
	Gtk criticals.  The destroy case seems to be problematic with
	a bunch of existing code, so this turns it into a noop.

svn path=/trunk/gtk-sharp/; revision=85657
This commit is contained in:
Mike Kestner 2007-09-11 20:13:14 +00:00
parent c2230278b3
commit bf1bec4f41
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2007-09-11 Mike Kestner <mkestner@novell.com>
* gtk/Object.custom (Destroy): add a null check to avoid
Gtk criticals. The destroy case seems to be problematic with
a bunch of existing code, so this turns it into a noop.
2007-09-06 Mike Kestner <mkestner@novell.com>
* AssemblyInfo.cs.in : add IgnoreClassInitializers attr to all.

View file

@ -123,7 +123,8 @@
public virtual void Destroy ()
{
gtk_object_destroy (Handle);
if (Handle != IntPtr.Zero)
gtk_object_destroy (Handle);
}
[DllImport("gtksharpglue-2")]