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
2 changed files with 6 additions and 2 deletions
|
@ -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>
|
||||
|
||||
* generator/CallbackGen.cs : generate try/catch blocks for
|
||||
|
|
|
@ -62,6 +62,7 @@ namespace GLib {
|
|||
public void Free ()
|
||||
{
|
||||
g_object_remove_toggle_ref (handle, ToggleNotifyCallback, (IntPtr) gch);
|
||||
reference = null;
|
||||
gch.Free ();
|
||||
}
|
||||
|
||||
|
@ -73,8 +74,6 @@ namespace GLib {
|
|||
WeakReference weak = reference as WeakReference;
|
||||
if (weak.IsAlive)
|
||||
reference = weak.Target;
|
||||
else
|
||||
throw new Exception ("Toggling dead wrapper");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue