mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2025-02-28 21:26:52 +00:00
2005-06-02 Mike Kestner <mkestner@novell.com>
* gtk/Object.custom : only connect to Destroyed for managed subclasses and let the wrappers get disposed by the GC. svn path=/trunk/gtk-sharp/; revision=45326
This commit is contained in:
parent
c881d7c5aa
commit
dfa84ee168
|
@ -1,3 +1,8 @@
|
||||||
|
2005-06-02 Mike Kestner <mkestner@novell.com>
|
||||||
|
|
||||||
|
* gtk/Object.custom : only connect to Destroyed for managed subclasses
|
||||||
|
and let the wrappers get disposed by the GC.
|
||||||
|
|
||||||
2005-06-01 Mike Kestner <mkestner@novell.com>
|
2005-06-01 Mike Kestner <mkestner@novell.com>
|
||||||
|
|
||||||
* glib/Value.cs : handle enum/flags types in Val.
|
* glib/Value.cs : handle enum/flags types in Val.
|
||||||
|
|
|
@ -45,6 +45,7 @@
|
||||||
if (obj == null)
|
if (obj == null)
|
||||||
return;
|
return;
|
||||||
ManagedSubclasses.Remove (obj);
|
ManagedSubclasses.Remove (obj);
|
||||||
|
obj.Destroyed -= NativeDestroyHandler;
|
||||||
obj.Dispose ();
|
obj.Dispose ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -61,11 +62,11 @@
|
||||||
{
|
{
|
||||||
base.CreateNativeObject (names, vals);
|
base.CreateNativeObject (names, vals);
|
||||||
ManagedSubclasses [this] = this;
|
ManagedSubclasses [this] = this;
|
||||||
|
Destroyed += NativeDestroyHandler;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void Dispose ()
|
public override void Dispose ()
|
||||||
{
|
{
|
||||||
Destroyed -= NativeDestroyHandler;
|
|
||||||
base.Dispose ();
|
base.Dispose ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -80,7 +81,6 @@
|
||||||
|
|
||||||
g_object_ref (value);
|
g_object_ref (value);
|
||||||
Sink ();
|
Sink ();
|
||||||
Destroyed += NativeDestroyHandler;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue