2005-06-10 Mike Kestner <mkestner@novell.com>

* glade/XML.custom : add a try block on field autoconnect to make it
	easier to catch type mismatches and such.  Suggestion from Gonzalito.

svn path=/trunk/gtk-sharp/; revision=45766
This commit is contained in:
Mike Kestner 2005-06-10 15:42:00 +00:00
parent c5585dfd78
commit 4203d5df43
2 changed files with 11 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2005-06-10 Mike Kestner <mkestner@novell.com>
* glade/XML.custom : add a try block on field autoconnect to make it
easier to catch type mismatches and such. Suggestion from Gonzalito.
2005-06-09 Lluis Sanchez <lluis@novell.com>
* glib/Marshaller.cs: Added null check in FilenamePtrToString.

View file

@ -320,7 +320,12 @@
widget = GetWidget (field.Name);
if (widget != null)
field.SetValue (target, widget, flags, null, null);
try {
field.SetValue (target, widget, flags, null, null);
} catch (Exception e) {
Console.WriteLine ("Unable to set value for field " + field.Name);
throw e;
}
}
}