2005-03-03 Mike Kestner <mkestner@novell.com>
* generator/ClassBase.cs : add null checking to CallByName. No sense manually adding this for the ones that need it. Better to have g_criticals then NullRefExceptions anyway. * generator/MethodBody.cs : simplify out handle generation. [A babystep toward #86620] svn path=/trunk/gtk-sharp/; revision=41408
This commit is contained in:
parent
c47f1eb8d8
commit
eec84f4b5d
3 changed files with 11 additions and 3 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
2005-03-03 Mike Kestner <mkestner@novell.com>
|
||||||
|
|
||||||
|
* generator/ClassBase.cs : add null checking to CallByName. No sense
|
||||||
|
manually adding this for the ones that need it. Better to have g_criticals
|
||||||
|
then NullRefExceptions anyway.
|
||||||
|
* generator/MethodBody.cs : simplify out handle generation.
|
||||||
|
[A babystep toward #86620]
|
||||||
|
|
||||||
2005-02-28 Dan Winship <danw@novell.com>
|
2005-02-28 Dan Winship <danw@novell.com>
|
||||||
|
|
||||||
* gtk/Container.custom (ChildType): fix this to just call
|
* gtk/Container.custom (ChildType): fix this to just call
|
||||||
|
|
|
@ -148,9 +148,9 @@ namespace GtkSharp.Generation {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public override string CallByName (string var_name)
|
public override string CallByName (string name)
|
||||||
{
|
{
|
||||||
return var_name + ".Handle";
|
return name + " == null ? IntPtr.Zero : " + name + ".Handle";
|
||||||
}
|
}
|
||||||
|
|
||||||
public virtual string CallByName ()
|
public virtual string CallByName ()
|
||||||
|
|
|
@ -94,7 +94,7 @@ namespace GtkSharp.Generation {
|
||||||
else if (igen is LPUGen || igen is LPGen)
|
else if (igen is LPUGen || igen is LPGen)
|
||||||
call_parm = p.Name + "_as_ptr";
|
call_parm = p.Name + "_as_ptr";
|
||||||
else if (UsesHandle (igen)) {
|
else if (UsesHandle (igen)) {
|
||||||
call_parm = p.PassAs + " " + call_parm.Replace (".Handle", "_handle");
|
call_parm = p.PassAs + " " + p.Name + "_handle";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue