[LightDM] problem to create a greater in js?: Unable to construct boxed type Greeter since it has no zero-args <constructor>, can only wrap an existing one

Robert Ancell robert.ancell at gmail.com
Sun Apr 29 20:53:18 PDT 2012


Nadav filed a bug for this,
https://bugs.launchpad.net/bugs/990490

Thanks!
--Robert

On 16 April 2012 15:33, Nadav Vinik <nadavvin at gmail.com> wrote:
> Hello
>
> I try to create greeter in JS and it complain that the constructor of
> LightDM.Greeter need args while in the documentation is not.
>
> let greeter = new LightDM.Greeter();
>
>     JS ERROR: !!!   Exception was: Error: Unable to construct boxed type
> Greeter since it has no zero-args <constructor>, can only wrap an existing
> one
>     JS ERROR: !!!     lineNumber = '0'
>     JS ERROR: !!!     fileName = '"gjs_throw"'
>     JS ERROR: !!!     stack = '"("Unable to construct boxed type Greeter
> since it has no zero-args <constructor>, can only wrap an existing
> one")@gjs_throw:0
> @./main.js:7
> "'
>     JS ERROR: !!!     message = '"Unable to construct boxed type Greeter
> since it has no zero-args <constructor>, can only wrap an existing one"'
> Error: Unable to construct boxed type Greeter since it has no zero-args
> <constructor>, can only wrap an existing one
>
>
> Documentation:
> http://people.ubuntu.com/~robert-ancell/lightdm/reference/lightdm-gobject-1-Greeter-Interface.html
>
> Thanks
> Nadav
>
>
> _______________________________________________
> LightDM mailing list
> LightDM at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/lightdm
>


More information about the LightDM mailing list