mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-09-18 20:29:46 +02:00
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:
parent
320977f58f
commit
8983ea960c
@ -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>
|
2005-03-10 Mike Kestner <mkestner@novell.com>
|
||||||
|
|
||||||
* generator/SymbolTable.cs : fix gssize and gsize, they aren't 32 bit
|
* generator/SymbolTable.cs : fix gssize and gsize, they aren't 32 bit
|
||||||
|
@ -71,7 +71,7 @@ namespace GLib {
|
|||||||
private delegate void DestroyNotify (IntPtr data);
|
private delegate void DestroyNotify (IntPtr data);
|
||||||
|
|
||||||
[DllImport("libgobject-2.0-0.dll")]
|
[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) {
|
private void AddDestroyNotify (GLib.Object o) {
|
||||||
// This is a bit of an ugly hack. There is no
|
// 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));
|
IntPtr name = Marshaller.StringToPtrGStrdup (String.Format ("_GtkSharpDelegateWrapper_{0}", notify_count));
|
||||||
DestroyNotify destroy = new DestroyNotify (this.OnDestroy);
|
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);
|
Marshaller.Free (name);
|
||||||
lock (typeof (DelegateWrapper)) {
|
lock (typeof (DelegateWrapper)) {
|
||||||
instances[this] = destroy;
|
instances[this] = destroy;
|
||||||
|
Loading…
Reference in New Issue
Block a user