mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-23 17:55:27 +00:00
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:
parent
6698da1e41
commit
fab4c3eed1
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue