2002-08-08 Mike Kestner <mkestner@speakeasy.net>

* gdk/Event.cs : derived from Boxed, not Object.
	* generator/SymbolTable.cs : fixes for Gdk.Events

svn path=/trunk/gtk-sharp/; revision=6542
This commit is contained in:
Mike Kestner 2002-08-08 16:33:46 +00:00
parent 66c0ec1d43
commit 71266c0337
3 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-08-08 Mike Kestner <mkestner@speakeasy.net>
* gdk/Event.cs : derived from Boxed, not Object.
* generator/SymbolTable.cs : fixes for Gdk.Events
2002-08-07 Mike Kestner <mkestner@speakeasy.net>
* generator/CodeGenerator.cs : call ObjectGen.GenerateMapper

View File

@ -11,7 +11,7 @@ namespace Gdk {
using System.Collections;
using System.Runtime.InteropServices;
public class Event : GLib.Object {
public class Event : GLib.Boxed {
[DllImport("gtksharpglue")]
static extern EventType gtksharp_gdk_event_get_event_type (IntPtr evt);

View File

@ -152,6 +152,8 @@ namespace GtkSharp.Generation {
// FIXME: better way of handling this?
if (c_type == "GSList") {
return "new GLib.SList (" + val + ")";
} else if (c_type == "GdkEvent") {
return "new Gdk.Event (" + val + ")";
} else {
return "(" + GetCSType (c_type) + ") GLib.Object.GetObject(" + val + ")";
}