mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-24 00:35:36 +00:00
2005-12-12 Mike Kestner <mkestner@novell.com>
* generator/Signal.cs : pass byte cnt for autogenerated string length parameters. Thanks to Itamar Rogel for the report and a candidate patch. [Fixes #76952] svn path=/trunk/gtk-sharp/; revision=54239
This commit is contained in:
parent
98b4307aba
commit
33fafe7842
|
@ -1,3 +1,9 @@
|
|||
2005-12-10 Mike Kestner <mkestner@novell.com>
|
||||
|
||||
* generator/Signal.cs : pass byte cnt for autogenerated string length
|
||||
parameters. Thanks to Itamar Rogel for the report and a candidate
|
||||
patch. [Fixes #76952]
|
||||
|
||||
2005-12-10 Mike Kestner <mkestner@novell.com>
|
||||
|
||||
* gtk/gtk-api-2.8.raw : regenerated.
|
||||
|
|
|
@ -322,7 +322,7 @@ namespace GtkSharp.Generation {
|
|||
cleanup += "\t\t\tMarshal.FreeHGlobal (" + p.Name + "_ptr);\n";
|
||||
}
|
||||
} else if (p.IsLength && parms [i - 1].IsString)
|
||||
sw.WriteLine ("\t\t\tvals [" + i + "] = new GLib.Value (" + parms [i-1].Name + ".Length);");
|
||||
sw.WriteLine ("\t\t\tvals [" + i + "] = new GLib.Value (System.Text.Encoding.UTF8.GetByteCount (" + parms [i-1].Name + "));");
|
||||
else
|
||||
sw.WriteLine ("\t\t\tvals [" + i + "] = new GLib.Value (" + p.Name + ");");
|
||||
|
||||
|
|
Loading…
Reference in a new issue