Author: mkestner
Date: 2005-03-11 17:05:47 -0500 (Fri, 11 Mar 2005)
New Revision: 41729
Modified:
branches/gtk-sharp-1-0-branch/gtk-sharp/ChangeLog
branches/gtk-sharp-1-0-branch/gtk-sharp/glib/DelegateWrapper.cs
Log:
2005-03-11 Mike Kestner <[EMAIL PROTECTED]>
* glib/DelegateWrapper.cs : use set_data_full to connect DestroyNotify
handlers.
Modified: branches/gtk-sharp-1-0-branch/gtk-sharp/ChangeLog
===================================================================
--- branches/gtk-sharp-1-0-branch/gtk-sharp/ChangeLog 2005-03-11 21:44:32 UTC
(rev 41728)
+++ branches/gtk-sharp-1-0-branch/gtk-sharp/ChangeLog 2005-03-11 22:05:47 UTC
(rev 41729)
@@ -1,3 +1,8 @@
+2005-03-11 Mike Kestner <[EMAIL PROTECTED]>
+
+ * glib/DelegateWrapper.cs : use set_data_full to connect DestroyNotify
+ handlers.
+
2005-03-10 Mike Kestner <[EMAIL PROTECTED]>
* generator/SymbolTable.cs : fix gssize and gsize, they aren't 32 bit
Modified: branches/gtk-sharp-1-0-branch/gtk-sharp/glib/DelegateWrapper.cs
===================================================================
--- branches/gtk-sharp-1-0-branch/gtk-sharp/glib/DelegateWrapper.cs
2005-03-11 21:44:32 UTC (rev 41728)
+++ branches/gtk-sharp-1-0-branch/gtk-sharp/glib/DelegateWrapper.cs
2005-03-11 22:05:47 UTC (rev 41729)
@@ -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,
string name, IntPtr data, DestroyNotify destroy);
+ private static extern void g_object_set_data_full (IntPtr obj,
string 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 @@
string name = 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);
lock (typeof (DelegateWrapper)) {
instances[this] = destroy;
notify_count++;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches