diff --git a/doc/en/Gtk/Object.xml b/doc/en/Gtk/Object.xml index 295b3d89e..01240a187 100644 --- a/doc/en/Gtk/Object.xml +++ b/doc/en/Gtk/Object.xml @@ -451,17 +451,5 @@ The object is only destroyed if all the references to the object are released, t - - - Method - - System.Void - - - - Disposes the object's resources. - - - diff --git a/gtk/Object.custom b/gtk/Object.custom index 107e0edbe..77142fc02 100755 --- a/gtk/Object.custom +++ b/gtk/Object.custom @@ -32,9 +32,10 @@ static void NativeDestroy (object o, EventArgs args) { - GLib.Object obj = o as GLib.Object; + Gtk.Object obj = o as Gtk.Object; if (obj == null) return; + obj.Destroyed -= NativeDestroyHandler; obj.Dispose (); } @@ -65,12 +66,6 @@ [DllImport("libgtk-win32-2.0-0.dll")] private static extern void gtk_object_destroy (IntPtr raw); - public override void Dispose () - { - Destroyed -= NativeDestroyHandler; - base.Dispose (); - } - public virtual void Destroy () { gtk_object_destroy (Handle); diff --git a/gtk/Widget.custom b/gtk/Widget.custom index 6de85f8af..29223e8dd 100644 --- a/gtk/Widget.custom +++ b/gtk/Widget.custom @@ -30,9 +30,6 @@ protected Widget (GLib.GType gtype) : base(gtype) GLib.Marshaller.Free (name); } -[DllImport("libgtk-win32-2.0-0.dll")] -static extern void gtk_widget_destroy (IntPtr raw); - public override void Destroy () { base.Destroy ();