Author: mkestner
Date: 2007-09-14 13:35:14 -0400 (Fri, 14 Sep 2007)
New Revision: 85831

Modified:
   trunk/gtk-sharp/ChangeLog
   trunk/gtk-sharp/generator/CallbackGen.cs
Log:

2007-09-14  Mike Kestner  <[EMAIL PROTECTED]>

        * generator/CallbackGen.cs (GenInvoker): null check the sig field
        and set it up.  This can happen when generating the marshaling types
        from dependent libraries instead of via the Generate method. 


Modified: trunk/gtk-sharp/ChangeLog
===================================================================
--- trunk/gtk-sharp/ChangeLog   2007-09-14 17:27:21 UTC (rev 85830)
+++ trunk/gtk-sharp/ChangeLog   2007-09-14 17:35:14 UTC (rev 85831)
@@ -1,3 +1,9 @@
+2007-09-14  Mike Kestner  <[EMAIL PROTECTED]>
+
+       * generator/CallbackGen.cs (GenInvoker): null check the sig field
+       and set it up.  This can happen when generating the marshaling types
+       from dependent libraries instead of via the Generate method. 
+
 2007-09-11  Mike Kestner  <[EMAIL PROTECTED]>
 
        * gtk/Gtk.metadata: virtual_method rules for GInterface generation.

Modified: trunk/gtk-sharp/generator/CallbackGen.cs
===================================================================
--- trunk/gtk-sharp/generator/CallbackGen.cs    2007-09-14 17:27:21 UTC (rev 
85830)
+++ trunk/gtk-sharp/generator/CallbackGen.cs    2007-09-14 17:35:14 UTC (rev 
85831)
@@ -129,6 +129,9 @@
 
                void GenInvoker (GenerationInfo gen_info, StreamWriter sw)
                {
+                       if (sig == null)
+                               sig = new Signature (parms);
+
                        sw.WriteLine ("\tinternal class " + Name + "Invoker {");
                        sw.WriteLine ();
                        sw.WriteLine ("\t\t" + Name + "Native native_cb;");

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to