91c58501fa
* 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
35 lines
753 B
C#
Executable file
35 lines
753 B
C#
Executable file
// Object.cs - GtkObject class wrapper implementation
|
|
//
|
|
// Author: Mike Kestner <mkestner@speakeasy.net>
|
|
//
|
|
// (c) 2001 Mike Kestner
|
|
|
|
namespace Gtk {
|
|
|
|
using System;
|
|
using System.ComponentModel;
|
|
using System.Runtime.InteropServices;
|
|
|
|
public abstract class Object : GLib.Object {
|
|
|
|
protected delegate void SimpleCallback (IntPtr obj);
|
|
|
|
[DllImport("gtk-1.3")]
|
|
static extern void gtk_signal_connect_full (
|
|
IntPtr obj, string evname,
|
|
SimpleCallback cb, IntPtr unsupported,
|
|
IntPtr data, IntPtr destroycb,
|
|
int objsig, int after );
|
|
|
|
|
|
protected void ConnectSignal (string name, SimpleCallback cb)
|
|
{
|
|
gtk_signal_connect_full (RawObject, name, cb,
|
|
new IntPtr (0), new IntPtr (0),
|
|
new IntPtr (0), 0, 0);
|
|
}
|
|
|
|
|
|
}
|
|
}
|