mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2025-01-09 01:35:33 +00:00
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:
parent
c9a40e80bc
commit
2af291dc52
|
@ -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
|
||||
|
|
|
@ -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";
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
public Window ()
|
||||
{
|
||||
RawObject = gtk_window_new (WindowType.Toplevel);
|
||||
RawObject = gtk_window_new ((int)WindowType.Toplevel);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Loading…
Reference in a new issue