mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-09-08 16:03:21 +02:00
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
@ -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>
|
2005-06-09 Lluis Sanchez <lluis@novell.com>
|
||||||
|
|
||||||
* glib/Marshaller.cs: Added null check in FilenamePtrToString.
|
* glib/Marshaller.cs: Added null check in FilenamePtrToString.
|
||||||
|
@ -320,7 +320,12 @@
|
|||||||
widget = GetWidget (field.Name);
|
widget = GetWidget (field.Name);
|
||||||
|
|
||||||
if (widget != null)
|
if (widget != null)
|
||||||
|
try {
|
||||||
field.SetValue (target, widget, flags, null, null);
|
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 New Issue
Block a user