Author: mkestner
Date: 2005-03-11 13:01:47 -0500 (Fri, 11 Mar 2005)
New Revision: 41711

Modified:
   trunk/gtk-sharp/ChangeLog
   trunk/gtk-sharp/glib/DelegateWrapper.cs
Log:

2005-03-11  Mike Kestner  <[EMAIL PROTECTED]>

        * glib/DelegateWrapper.cs : call g_object_set_data_full since we are
        using its sig, not set_data.


Modified: trunk/gtk-sharp/ChangeLog
===================================================================
--- trunk/gtk-sharp/ChangeLog   2005-03-11 17:33:41 UTC (rev 41710)
+++ trunk/gtk-sharp/ChangeLog   2005-03-11 18:01:47 UTC (rev 41711)
@@ -1,3 +1,8 @@
+2005-03-11  Mike Kestner  <[EMAIL PROTECTED]>
+
+       * glib/DelegateWrapper.cs : call g_object_set_data_full since we are
+       using its sig, not set_data.
+
 2005-03-10  Mike Kestner  <[EMAIL PROTECTED]>
 
        * generator/SymbolTable.cs : fix gssize and gsize, they aren't 32 bit

Modified: trunk/gtk-sharp/glib/DelegateWrapper.cs
===================================================================
--- trunk/gtk-sharp/glib/DelegateWrapper.cs     2005-03-11 17:33:41 UTC (rev 
41710)
+++ trunk/gtk-sharp/glib/DelegateWrapper.cs     2005-03-11 18:01:47 UTC (rev 
41711)
@@ -71,7 +71,7 @@
                private delegate void DestroyNotify (IntPtr data);
 
                [DllImport("libgobject-2.0-0.dll")]
-               private static extern void g_object_set_data (IntPtr obj, 
IntPtr name, IntPtr data, DestroyNotify destroy);
+               private static extern void g_object_set_data_full (IntPtr obj, 
IntPtr name, IntPtr data, DestroyNotify destroy);
                
                private void AddDestroyNotify (GLib.Object o) {
                        // This is a bit of an ugly hack. There is no
@@ -82,7 +82,7 @@
                        IntPtr name = Marshaller.StringToPtrGStrdup 
(String.Format ("_GtkSharpDelegateWrapper_{0}", notify_count));
                        DestroyNotify destroy = new DestroyNotify 
(this.OnDestroy);
 
-                       g_object_set_data (o.Handle, name, IntPtr.Zero, 
destroy);
+                       g_object_set_data_full (o.Handle, name, IntPtr.Zero, 
destroy);
                        Marshaller.Free (name);
                        lock (typeof (DelegateWrapper)) {
                                instances[this] = destroy;

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to