2007-07-27 Mike Kestner <mkestner@novell.com>

* generator/OpaqueGen.cs : only generate Copy override for methods
	with no parameters.  Fixes a gnome-sharp build problem.

svn path=/trunk/gtk-sharp/; revision=82869
This commit is contained in:
Mike Kestner 2007-07-27 16:16:16 +00:00
parent eeabe5a15e
commit 4bbe8a8faf
3 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2007-07-27 Mike Kestner <mkestner@novell.com>
* generator/OpaqueGen.cs : only generate Copy override for methods
with no parameters. Fixes a gnome-sharp build problem.
2007-07-26 Mike Kestner <mkestner@novell.com>
* parser/gapi2xml.pl : beef up error message for signal vm parse.

View file

@ -94,7 +94,7 @@ namespace GtkSharp.Generation {
}
}
protected Parameters Parameters {
public Parameters Parameters {
get {
return parms;
}

View file

@ -130,7 +130,7 @@ namespace GtkSharp.Generation {
}
Method copy = Methods ["Copy"] as Method;
if (copy != null) {
if (copy != null && copy.Parameters.Count == 0) {
sw.WriteLine ("\t\tprotected override GLib.Opaque Copy (IntPtr raw)");
sw.WriteLine ("\t\t{");
sw.WriteLine ("\t\t\tGLib.Opaque result = new " + QualifiedName + " (" + copy.CName + " (raw));");