diff --git a/ChangeLog b/ChangeLog index 2cec81982..57487de6e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-06-10 Mike Kestner + + * 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 * glib/Marshaller.cs: Added null check in FilenamePtrToString. diff --git a/glade/XML.custom b/glade/XML.custom index 79e1ccd45..44c72befe 100644 --- a/glade/XML.custom +++ b/glade/XML.custom @@ -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; + } } }