diff --git a/generator/Method.cs b/generator/Method.cs index 08c0537ce..80ae73c6d 100644 --- a/generator/Method.cs +++ b/generator/Method.cs @@ -243,7 +243,7 @@ namespace GtkSharp.Generation { return; else { is_set = false; - call = "(Handle, " + Body.GetCallString (false) + ")"; + call = "(" + (IsStatic ? "" : container_type.CallByName () + (parms.Count > 0 ? ", " : "")) + Body.GetCallString (false) + ")"; comp = null; } }