From e07bb75fd6328ffd63dab072508ce6d6a783ef13 Mon Sep 17 00:00:00 2001 From: Jeroen Zwartepoorte Date: Thu, 6 May 2004 15:58:00 +0000 Subject: [PATCH] 2004-05-06 Jeroen Zwartepoorte * 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 --- ChangeLog | 5 +++++ generator/Method.cs | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a15d3160b..f219d359d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-05-06 Jeroen Zwartepoorte + + * generator/Method.cs: Don't use the "unsafe" modifier for methods which + are part of an interface [fixes #58059]. + 2004-05-06 Mike Kestner * configure.in : bump version for cvs. diff --git a/generator/Method.cs b/generator/Method.cs index d551bdd6e..a81ca88be 100644 --- a/generator/Method.cs +++ b/generator/Method.cs @@ -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 = "";