mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-09-09 00:13:20 +02:00
2007-04-05 Mike Kestner <mkestner@novell.com>
* glib/ToggleRef.cs : flush a few leftover changes from a ToggleRef refinement. svn path=/trunk/gtk-sharp/; revision=75457
This commit is contained in:
parent
e24aba119a
commit
c320772499
@ -1,3 +1,8 @@
|
|||||||
|
2007-04-05 Mike Kestner <mkestner@novell.com>
|
||||||
|
|
||||||
|
* glib/ToggleRef.cs : flush a few leftover changes from a
|
||||||
|
ToggleRef refinement.
|
||||||
|
|
||||||
2007-03-15 Mike Kestner <mkestner@novell.com>
|
2007-03-15 Mike Kestner <mkestner@novell.com>
|
||||||
|
|
||||||
* generator/CallbackGen.cs : generate try/catch blocks for
|
* generator/CallbackGen.cs : generate try/catch blocks for
|
||||||
|
@ -62,6 +62,7 @@ namespace GLib {
|
|||||||
public void Free ()
|
public void Free ()
|
||||||
{
|
{
|
||||||
g_object_remove_toggle_ref (handle, ToggleNotifyCallback, (IntPtr) gch);
|
g_object_remove_toggle_ref (handle, ToggleNotifyCallback, (IntPtr) gch);
|
||||||
|
reference = null;
|
||||||
gch.Free ();
|
gch.Free ();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -73,8 +74,6 @@ namespace GLib {
|
|||||||
WeakReference weak = reference as WeakReference;
|
WeakReference weak = reference as WeakReference;
|
||||||
if (weak.IsAlive)
|
if (weak.IsAlive)
|
||||||
reference = weak.Target;
|
reference = weak.Target;
|
||||||
else
|
|
||||||
throw new Exception ("Toggling dead wrapper");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user