From 01eeafcd6e7457990323934ee5e6242e04c75d41 Mon Sep 17 00:00:00 2001 From: Mike Kestner Date: Fri, 19 Jul 2002 04:27:02 +0000 Subject: [PATCH] 2002-07-18 Mike Kestner * generator/StructBase.cs : use GetMarshalType for field gen. * sample/ButtonApp.cs : WriteLine the Gdk.EventAny in DeleteEvent. svn path=/trunk/gtk-sharp/; revision=5903 --- ChangeLog | 5 +++++ generator/StructBase.cs | 6 +++--- sample/ButtonApp.cs | 1 + 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index c5978da5c..70859d698 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-07-18 Mike Kestner + + * generator/StructBase.cs : use GetMarshalType for field gen. + * sample/ButtonApp.cs : WriteLine the Gdk.EventAny in DeleteEvent. + 2002-07-18 Mike Kestner * generator/StructGen.cs : make them public structs, not classes. diff --git a/generator/StructBase.cs b/generator/StructBase.cs index 146d8086a..c2808d735 100644 --- a/generator/StructBase.cs +++ b/generator/StructBase.cs @@ -85,15 +85,15 @@ namespace GtkSharp.Generation { } char[] ast = {'*'}; c_type = c_type.TrimEnd(ast); - String cs_type = SymbolTable.GetCSType(c_type); + String m_type = SymbolTable.GetMarshalType(c_type); - if (cs_type == "") { + if (m_type == "") { Console.WriteLine ("Field has unknown Type {0}", c_type); Statistics.ThrottledCount++; return false; } - sw.Write ("\t\t public " + cs_type); + sw.Write ("\t\t public " + m_type); if (field.HasAttribute("array_len")) { sw.Write ("[]"); } diff --git a/sample/ButtonApp.cs b/sample/ButtonApp.cs index 14a543c13..e5da2d60c 100755 --- a/sample/ButtonApp.cs +++ b/sample/ButtonApp.cs @@ -34,6 +34,7 @@ namespace GtkSamples { static void Window_Delete (object obj, DeleteEventArgs args) { + Console.WriteLine(args.Event); Application.Quit (); args.RetVal = true; }