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:
parent
c5585dfd78
commit
4203d5df43
2 changed files with 11 additions and 1 deletions
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue