Permalink
Commits on Sep 23, 2012
  1. Unbreak browser example.

    committed Sep 23, 2012
  2. unbreak libxml2 example

    committed Sep 23, 2012
Commits on Aug 28, 2012
  1. Merge pull request #29 from piotras/master

    Major updates
    piotras committed Aug 28, 2012
  2. Merge pull request #6 from jonnor/constructors-and-error-reporting

    Allow access to ".new_for_X" style constructors + some error reporting improvements
    piotras committed Aug 28, 2012
  3. Remove duplicate CallStaticMethod code, improve debug printing

    Share the code for calling static method between GIRStruct and
    GIRObject by putting it in function.cc.
    Also fix the debug printing such that it correctly prints
    "Gtk.Window.function", not "Gtk.function".
    jonnor committed Aug 28, 2012
  4. Report more details on argument conversion failure

    Will hopefully help users and developers to debug conversion problems
    more easily. For now prints .toString() of the JS object and the
    GITypeTag of the expected data.
    In the future the exception could output the GType information.
    jonnor committed Aug 27, 2012
  5. Split out argument number checking from Func::CallAndGetPtr

    Shortens the method considerably making it easier to read.
    Also keep scope of declared variables to a minimum,
    and make use of const where applicable.
    jonnor committed Aug 27, 2012
  6. Remove dead code in src/function.cc

    Was commented out in 961220f
    without any comment as to why and never touched afterwards.
    The current implementation of CallAndGetPtr is more developed
    and tested in any case.
    jonnor committed Aug 27, 2012
  7. Also register constructors as functions on the class namespace

    There can be multiple constructors
    (typically of form "my_object_new_from_X"). These where previously
    not available in JavaScript bindings.
    The normal constructor should also be available
    as "Something.new()" in addition to as "new Something()".
    This matches the behavior of for instance PyGObject. This currently
    has a bug, see the tests added in previous commit.
    jonnor committed Aug 26, 2012
Commits on Aug 27, 2012
  1. Test self method

    piotras committed Aug 27, 2012
  2. Set null as icon and expect such

    piotras committed Aug 27, 2012
Commits on Aug 24, 2012
  1. Fix tests

    piotras committed Aug 24, 2012
  2. Involve mocha instead of vows

    piotras committed Aug 24, 2012
  3. Module loading cleanup

    piotras committed Aug 24, 2012
  4. Install xvfb for virtual display

    piotras committed Aug 24, 2012
  5. update signal test

    piotras committed Aug 24, 2012
  6. Set display for gtk tests

    piotras committed Aug 24, 2012
  7. Merge pull request #5 from jonnor/test-fixes

    Some fixes to unittests
    piotras committed Aug 24, 2012
Commits on Aug 23, 2012
  1. Mark unimplemented tests as pending

    A nicer syntax for skipping tests has been added to Mocha, but not
    used as it is merely 18 hours old and not released yet.
    mochajs/mocha@2c7780b
    jonnor committed Aug 23, 2012
  2. Implement failing test

    Not much of a test but this is what the others do.
    jonnor committed Aug 23, 2012
  3. Fix failing test due to test value being out-of-bounds

    The opacity of a GtkWindow needs to be in [0.0,1.0] to be respected.
    jonnor committed Aug 23, 2012
  4. Fix test errors due to leaked globals

    Mocha will fail the tests if global objects are created,
    unless ran with "--ignore-leaks" option.
    jonnor committed Aug 23, 2012
Commits on Aug 7, 2012
  1. Expect correct default values

    piotras committed Aug 7, 2012
  2. Initial. Closes gh-28

    piotras committed Aug 7, 2012
Commits on Aug 3, 2012
Commits on Aug 2, 2012
Commits on Aug 1, 2012
  1. Merge pull request #26 from piotras/master

    Examples and constructor correction
    piotras committed Aug 1, 2012