2005-03-11 Mike Kestner <mkestner@novell.com>

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

svn path=/trunk/gtk-sharp/; revision=41711
This commit is contained in:
Mike Kestner 2005-03-11 18:01:47 +00:00
parent 320977f58f
commit 8983ea960c
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2005-03-11 Mike Kestner <mkestner@novell.com>
* glib/DelegateWrapper.cs : call g_object_set_data_full since we are
using its sig, not set_data.
2005-03-10 Mike Kestner <mkestner@novell.com>
* generator/SymbolTable.cs : fix gssize and gsize, they aren't 32 bit

View File

@ -71,7 +71,7 @@ namespace GLib {
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 @@ namespace GLib {
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;