2004-05-06 Jeroen Zwartepoorte <jeroen@xs4all.nl>

* generator/Method.cs: Don't use the "unsafe" modifier for methods which
	are part of an interface [fixes #58059].

svn path=/trunk/gtk-sharp/; revision=26843
This commit is contained in:
Jeroen Zwartepoorte 2004-05-06 15:58:00 +00:00
parent 571b68363a
commit e07bb75fd6
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-05-06 Jeroen Zwartepoorte <jeroen@xs4all.nl>
* generator/Method.cs: Don't use the "unsafe" modifier for methods which
are part of an interface [fixes #58059].
2004-05-06 Mike Kestner <mkestner@ximian.com>
* configure.in : bump version for cvs.

View File

@ -159,7 +159,7 @@ namespace GtkSharp.Generation {
body = new MethodBody (parms, container_type.NS);
call = "(" + (IsShared ? "" : container_type.CallByName () + (parms != null ? ", " : "")) + body.GetCallString (is_set) + ")";
if (body.ThrowsException)
if (body.ThrowsException && !(container_type is InterfaceGen))
safety = "unsafe ";
else
safety = "";