Commit cf88c382 authored by Ruben Vermeersch's avatar Ruben Vermeersch Committed by Ruben Vermeersch

Directly call the native method, instead of using the overload.

2008-08-08  Ruben Vermeersch  <ruben@savanne.be>

	* gegl/custom/Node.custom: Directly call the native method, instead of
	using the overload.

svn path=/trunk/; revision=2571
parent bb1cc40a
2008-08-08 Ruben Vermeersch <ruben@savanne.be>
* gegl/custom/Node.custom: Directly call the native method, instead of
using the overload.
2008-08-08 Ruben Vermeersch <ruben@savanne.be>
Completely revamp the Gegl# bindings, to make sure they work again.
......
......@@ -8,8 +8,12 @@
public void SetProperty(string property_name, object value)
{
IntPtr native_property_name = GLib.Marshaller.StringToPtrGStrdup (property_name);
GLib.Value value_as_native = new GLib.Value(value);
SetProperty (property_name, value_as_native);
IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value_as_native);
gegl_node_set_property(Handle, native_property_name, native_value);
GLib.Marshaller.Free (native_property_name);
Marshal.FreeHGlobal (native_value);
}
[DllImport("libgegl-1.0.dll")]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment