2005-05-11 Mike Kestner <mkestner@novell.com>
* glib/Object.cs : mark Dispose virtual. * gtk/Object.cs : release the Destroy handler in Dispose. svn path=/trunk/gtk-sharp/; revision=44420
This commit is contained in:
parent
d988c7ebe8
commit
551b1d3fd7
4 changed files with 25 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
|||
2005-05-11 Mike Kestner <mkestner@novell.com>
|
||||
|
||||
* glib/Object.cs : mark Dispose virtual.
|
||||
* gtk/Object.cs : release the Destroy handler in Dispose.
|
||||
|
||||
2005-05-11 Mike Kestner <mkestner@novell.com>
|
||||
|
||||
* configure.in.in : s/-g/-debug
|
||||
|
|
|
@ -451,5 +451,17 @@ The object is only destroyed if all the references to the object are released, t
|
|||
</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Dispose">
|
||||
<MemberSignature Language="C#" Value="public override void Dispose ();" />
|
||||
<MemberType>Method</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Void</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>Disposes the object's resources.</summary>
|
||||
<remarks />
|
||||
</Docs>
|
||||
</Member>
|
||||
</Members>
|
||||
</Type>
|
|
@ -72,7 +72,7 @@ namespace GLib {
|
|||
return false;
|
||||
}
|
||||
|
||||
public void Dispose ()
|
||||
public virtual void Dispose ()
|
||||
{
|
||||
if (disposed)
|
||||
return;
|
||||
|
|
|
@ -65,11 +65,15 @@
|
|||
[DllImport("libgtk-win32-2.0-0.dll")]
|
||||
private static extern void gtk_object_destroy (IntPtr raw);
|
||||
|
||||
public virtual void Destroy ()
|
||||
public override void Dispose ()
|
||||
{
|
||||
Destroyed -= NativeDestroyHandler;
|
||||
base.Dispose ();
|
||||
}
|
||||
|
||||
public virtual void Destroy ()
|
||||
{
|
||||
gtk_object_destroy (Handle);
|
||||
Dispose ();
|
||||
}
|
||||
|
||||
public bool IsFloating {
|
||||
|
|
Loading…
Reference in a new issue