mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2025-06-12 21:45:30 +00:00
remove some c.wls
svn path=/trunk/gtk-sharp/; revision=42222
This commit is contained in:
parent
d9d19a3450
commit
17dc787956
|
@ -56,27 +56,23 @@ namespace GLib {
|
||||||
|
|
||||||
static IntPtr Copy (IntPtr ptr)
|
static IntPtr Copy (IntPtr ptr)
|
||||||
{
|
{
|
||||||
Console.WriteLine ("Copying ManagedGValue: " + ptr);
|
|
||||||
GCHandle gch = (GCHandle) ptr;
|
GCHandle gch = (GCHandle) ptr;
|
||||||
return (IntPtr) GCHandle.Alloc (gch.Target);
|
return (IntPtr) GCHandle.Alloc (gch.Target);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void Free (IntPtr ptr)
|
static void Free (IntPtr ptr)
|
||||||
{
|
{
|
||||||
Console.WriteLine ("Freeing ManagedGValue: " + ptr);
|
|
||||||
GCHandle gch = (GCHandle) ptr;
|
GCHandle gch = (GCHandle) ptr;
|
||||||
gch.Free ();
|
gch.Free ();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static IntPtr WrapObject (object obj)
|
public static IntPtr WrapObject (object obj)
|
||||||
{
|
{
|
||||||
Console.WriteLine ("Wrapping Object in ManagedGValue: " + obj);
|
|
||||||
return (IntPtr) GCHandle.Alloc (obj);
|
return (IntPtr) GCHandle.Alloc (obj);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static object ObjectForWrapper (IntPtr ptr)
|
public static object ObjectForWrapper (IntPtr ptr)
|
||||||
{
|
{
|
||||||
Console.WriteLine ("Getting object of ManagedGValue: " + ptr);
|
|
||||||
return ((GCHandle)ptr).Target;
|
return ((GCHandle)ptr).Target;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue