Impact - GIR bindings do not work in Oneiric
Development Fix - But was fixed in lightdm 1.1.2 by fixing build rules for GIR 
generation and correcting one GIR annotation.  This fix has been backported.
Stable Fix - debian/patches/13_fix_gir_bindings.patch
Test Case - Run the program in comment 2.  It should not generate an error.
Regression Potential - Nothing was using the GIR bindings in Oneiric and this 
bug shows they weren't working.  The patch only changes the GIR generation so 
should not change any other aspect of the program.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to lightdm in Ubuntu.
https://bugs.launchpad.net/bugs/990490

Title:
  GIR interface is not following the documentation of the constructor

Status in Light Display Manager:
  Triaged
Status in “lightdm” package in Ubuntu:
  Fix Released
Status in “lightdm” source package in Oneiric:
  Fix Committed

Bug description:
  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

  Based on documentation:
  
http://people.ubuntu.com/~robert-ancell/lightdm/reference/lightdm-gobject-1-Greeter-Interface.html

  
  original post in mailing list:
  http://lists.freedesktop.org/archives/lightdm/2012-April/000262.html

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/990490/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to