mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-09-09 00:13:20 +02:00
![Mike Kestner](/assets/img/avatar_default.png)
* HACKING : New rulez. * NOTES: Killed. We have a mailing list now for this kind of stuff. * glib/makefile : New, to build the new glib-sharp.dll target. * glib/Object.cs : (GetObject): Commented out. Design problems here. IntPtr's can't be used in the manner this code attempts to use them. (Data prop): Commented out. Apparently keyed properties are not supported. (Object prop): Renamed RawObject, and made it protected. (Events): Fixed to cause list to be initialized if null and then return the list. * glib/ObjectManager.cs : commented out entirely. Not sure what this code is trying to accomplish and it doesn't compile. * glib/Value.cs : New attempt at implementing GValues. Doesn't work yet. * gtk/Button.cs : Updated to use RawObject. (Clicked event): s/EmitDeleteEvent/EmitClickedEvent. (Button(String)): s/gtk_label_new_with_lable/gtk_button_new_with_label. * gtk/Label.cs : Fixed some yank and paste errors where 2 value params were getting passed to all the set_* property methods. * gtk/Window.cs : Fixed hanging GTK namespace ref. * sample/HelloWorld.cs : Fixed hanging GTK namespace ref. svn path=/trunk/gtk-sharp/; revision=884
36 lines
759 B
C#
36 lines
759 B
C#
// ObjectManager.cs - GObject class wrapper helper implementation
|
|
//
|
|
// Author: Bob Smith <bob@thestuff.net>
|
|
//
|
|
// (c) 2001 Bob Smith
|
|
|
|
namespace GLib {
|
|
|
|
using System;
|
|
using System.Runtime.InteropServices;
|
|
|
|
/*
|
|
public class ObjectManager {
|
|
public ObjectManager(IntPtr o, Object go)
|
|
{
|
|
if (o == null || go -- null) throw new ArgumentNullException ();
|
|
_gobj = go;
|
|
_gobj.gh = GCHandle.Alloc (this, GCHandleType.Pinned);
|
|
Glib.Object.g_object_set_data_full(o, "gobject#-object-manager",
|
|
gh.AddrOfPinnedObject (), new DestroyNotify(DestroyNotifyEvent));
|
|
|
|
}
|
|
public Glib.Object gobj;
|
|
|
|
protected delegate void DestroyNotify (IntPtr data);
|
|
|
|
private void DestroyNotifyEvent (IntPtr data)
|
|
{
|
|
gobj.gh.Free();
|
|
_gobj = null;
|
|
}
|
|
|
|
}
|
|
*/
|
|
}
|