Bug 558068 – when invoking a method, offset the in arguments by one, not

2008-10-27  Johan Bilien  <jobi@via.ecp.fr>

	Bug 558068 – when invoking a method, offset the in arguments by one,
	not the out

	* tests/invoke/invoke.c, tests/invoke/testfns.c,
	tests/invoke/testfns-1.0.gir: Add testing of method and constructor.
	* girepository/ginvoke.c: do not offset the index of given out
	arguments by one for methods, "this" is provided as in argument only.


svn path=/trunk/; revision=820
This commit is contained in:
Johan Bilien 2008-10-27 15:03:18 +00:00 committed by Johan Bilien
parent 310f119141
commit 119c5034a1

View File

@ -254,7 +254,7 @@ g_function_info_invoke (GIFunctionInfo *info,
goto out; goto out;
} }
args[i+offset] = (gpointer)&out_args[out_pos+offset]; args[i+offset] = (gpointer)&out_args[out_pos];
out_pos++; out_pos++;
break; break;
case GI_DIRECTION_INOUT: case GI_DIRECTION_INOUT: