2002-07-20 Mike Kestner <mkestner@speakeasy.net>

* generator/SignalHandler.cs : pring unexpected key in exception.

svn path=/trunk/gtk-sharp/; revision=5967
This commit is contained in:
Mike Kestner 2002-07-20 15:00:10 +00:00
parent d837953e6c
commit 738aef2a29
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2002-07-20 Mike Kestner <mkestner@speakeasy.net>
* generator/SignalHandler.cs : pring unexpected key in exception.
2002-07-20 Mike Kestner <mkestner@speakeasy.net>
* generator/Method.cs : beef up !Validate warnings

View file

@ -132,7 +132,7 @@ namespace GtkSharp.Generation {
sw.WriteLine(cbname + "(" + pinv + ", int key)");
sw.WriteLine("\t\t{");
sw.WriteLine("\t\t\tif (!_Instances.Contains(key))");
sw.WriteLine("\t\t\t\tthrow new Exception(\"Unexpected signal key\");");
sw.WriteLine("\t\t\t\tthrow new Exception(\"Unexpected signal key \" + key);");
sw.WriteLine();
sw.WriteLine("\t\t\t" + sname + " inst = (" + sname + ") _Instances[key];");
if ((s_ret == "void") && (parms.Count == 1)) {