2001-11-10 Mike Kestner <mkestner@speakeasy.net>

* codegen/defs-parse.pl : Fix String prop generation code.
	* gtk/Window.custom : Fix ctor param casting error.

svn path=/trunk/gtk-sharp/; revision=1319
This commit is contained in:
Mike Kestner 2001-11-10 16:32:12 +00:00
parent c9a40e80bc
commit 2af291dc52
3 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2001-11-09 Mike Kestner <mkestner@speakeasy.net>
* codegen/defs-parse.pl : Fix String prop generation code.
* gtk/Window.custom : Fix ctor param casting error.
2001-11-09 Mike Kestner <mkestner@speakeasy.net>
* codegen/defs-parse.pl : Use the @ctors list to determine if a class

View File

@ -302,6 +302,8 @@ sub gen_prop ()
if (exists ($objects{$1}) || ($1 =~ /GObject/)) {
$sret = $maptypes{$1};
$mret = "GLib.Object";
} elsif ($maptypes{$1} eq "String") {
$sret = $mret = "String";
} elsif (exists ($maptypes{$1})) {
$sret = $maptypes{$1};
$mret = $marshaltypes{$1};
@ -330,7 +332,7 @@ sub gen_prop ()
$code .= "\t\t\t\tGetProperty (\"$cname\", out val);\n";
$code .= "\t\t\t\treturn ";
if ($sret ne $mret) {
$code .= "($sret) ";
$code .= "($sret)";
}
$code .= "val;\n\t\t\t}\n";
}

View File

@ -17,7 +17,7 @@
public Window ()
{
RawObject = gtk_window_new (WindowType.Toplevel);
RawObject = gtk_window_new ((int)WindowType.Toplevel);
}
/// <summary>