gegl r2571 - in trunk/bindings/gegl-sharp: . gegl/custom gegl/generated



Author: rubenv
Date: Fri Aug  8 16:53:03 2008
New Revision: 2571
URL: http://svn.gnome.org/viewvc/gegl?rev=2571&view=rev

Log:
2008-08-08  Ruben Vermeersch  <ruben savanne be>

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


Removed:
   trunk/bindings/gegl-sharp/gegl/custom/.Node.custom.swp
   trunk/bindings/gegl-sharp/gegl/generated/.Node.cs.swp
Modified:
   trunk/bindings/gegl-sharp/ChangeLog
   trunk/bindings/gegl-sharp/gegl/custom/Node.custom

Modified: trunk/bindings/gegl-sharp/gegl/custom/Node.custom
==============================================================================
--- trunk/bindings/gegl-sharp/gegl/custom/Node.custom	(original)
+++ trunk/bindings/gegl-sharp/gegl/custom/Node.custom	Fri Aug  8 16:53:03 2008
@@ -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")]



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]