2002-07-18 Mike Kestner <mkestner@speakeasy.net>
* generator/StructBase.cs : use GetMarshalType for field gen. * sample/ButtonApp.cs : WriteLine the Gdk.EventAny in DeleteEvent. svn path=/trunk/gtk-sharp/; revision=5903
This commit is contained in:
parent
9f329710ed
commit
01eeafcd6e
3 changed files with 9 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2002-07-18 Mike Kestner <mkestner@speakeasy.net>
|
||||||
|
|
||||||
|
* generator/StructBase.cs : use GetMarshalType for field gen.
|
||||||
|
* sample/ButtonApp.cs : WriteLine the Gdk.EventAny in DeleteEvent.
|
||||||
|
|
||||||
2002-07-18 Mike Kestner <mkestner@speakeasy.net>
|
2002-07-18 Mike Kestner <mkestner@speakeasy.net>
|
||||||
|
|
||||||
* generator/StructGen.cs : make them public structs, not classes.
|
* generator/StructGen.cs : make them public structs, not classes.
|
||||||
|
|
|
@ -85,15 +85,15 @@ namespace GtkSharp.Generation {
|
||||||
}
|
}
|
||||||
char[] ast = {'*'};
|
char[] ast = {'*'};
|
||||||
c_type = c_type.TrimEnd(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);
|
Console.WriteLine ("Field has unknown Type {0}", c_type);
|
||||||
Statistics.ThrottledCount++;
|
Statistics.ThrottledCount++;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
sw.Write ("\t\t public " + cs_type);
|
sw.Write ("\t\t public " + m_type);
|
||||||
if (field.HasAttribute("array_len")) {
|
if (field.HasAttribute("array_len")) {
|
||||||
sw.Write ("[]");
|
sw.Write ("[]");
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,6 +34,7 @@ namespace GtkSamples {
|
||||||
|
|
||||||
static void Window_Delete (object obj, DeleteEventArgs args)
|
static void Window_Delete (object obj, DeleteEventArgs args)
|
||||||
{
|
{
|
||||||
|
Console.WriteLine(args.Event);
|
||||||
Application.Quit ();
|
Application.Quit ();
|
||||||
args.RetVal = true;
|
args.RetVal = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue