2003-10-20 Mike Kestner <mkestner@ximian.com>

* generator/Parameters.cs : add a cast to the call_string for Length
	params other than int.

svn path=/trunk/gtk-sharp/; revision=19202
This commit is contained in:
Mike Kestner 2003-10-20 17:33:05 +00:00
parent ff35a19db0
commit 0525cb807e
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2003-10-20 Mike Kestner <mkestner@ximian.com>
* generator/Parameters.cs : add a cast to the call_string for Length
params other than int.
2003-10-18 Mike Kestner <mkestner@ximian.com>
* gtk/Gtk.metadata : add move-node rules for Paint methods.

View File

@ -256,7 +256,7 @@ namespace GtkSharp.Generation {
string name = this [i].Name;
if (i > 0 && this [i - 1].IsString && this [i].IsLength) {
call_string += ", " + this [i - 1].Name + ".Length";
call_string += ", " + (cs_type != "int" ? "(" + cs_type + ") " : "") + this [i - 1].Name + ".Length";
import_sig += ", " + m_type + " " + name;
continue;
}