2007-03-01 Mike Kestner <mkestner@novell.com>

* generator/MethodBody.cs : handle set method conversion to 
	property for array parameters with preceding count params.

svn path=/trunk/gtk-sharp/; revision=73613
This commit is contained in:
Mike Kestner 2007-03-01 18:37:06 +00:00
parent 6698da1e41
commit fab4c3eed1
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2007-03-01 Mike Kestner <mkestner@novell.com>
* generator/MethodBody.cs : handle set method conversion to
property for array parameters with preceding count params.
2007-02-21 Peter Johanson <peter@peterjohanson.com>
* gtk/glue/cellrenderer.c: revert to previous implementation of

View file

@ -57,7 +57,8 @@ namespace GtkSharp.Generation {
for (int i = 0; i < parameters.Count; i++) {
Parameter p = parameters [i];
IGeneratable igen = p.Generatable;
string name = (i == 0 && is_set) ? "value" : p.Name;
bool is_prop = is_set && (i == 0 || (i == 1 && p.IsArray && parameters[0].IsCount));
string name = is_prop ? "value" : p.Name;
if (p.IsCount) {
if (i > 0 && parameters [i - 1].IsArray) {