Commits on Sep 26, 2012
  1. Fix undefined double->enum conversion

    committed Sep 26, 2012
Commits on Sep 21, 2012
  1. Merge pull request #25 from jasperla/master

    Unbreak loading of modules on OpenBSD (eg,
    committed Sep 21, 2012
Commits on Sep 20, 2012
Commits on Sep 19, 2012
  1. Handle bad field type gracefuly

    ... and fix gcc warning
    committed Sep 19, 2012
  2. samples/GnomeKeyring/list-keyrings-passwords.lua: add a sample on Gno…

    Ildar Mulyukov committed with Aug 21, 2012
Commits on Aug 10, 2012
Commits on Aug 8, 2012
Commits on Aug 3, 2012
Commits on Jul 16, 2012
  1. cairo: Fix some more caller-alloc methods and properties cases

    This is fallout of ongoing discussion in
    committed Jul 12, 2012
Commits on Jul 13, 2012
  1. cairo: add support for 1.12 cairo.RecordingSurface.extents attribute

    A bit tricky because it uses caller-allocated output together with
    phantom-bool return, both of them are not supported by manual ffi, so
    Lua-side override was added.
    committed Jul 12, 2012
Commits on Jul 12, 2012
  1. record: simplify inherited access functionality

    Not only that after recent record handling changes this trickery is
    not necessary, it also conflicts with record._attach()
    functionality (broke invoking add_color_stop_rgb() on
    cairo.GradientPattern instances).
    committed Jul 12, 2012
  2. Merge pull request #21 from psychon/fix-cairo

    Fix various errors in the cairo bindings
    committed Jul 12, 2012
  3. Fix various errors in the cairo bindings

    I went through the list of cairo functions in override/cairo.lua and compared
    each one with cairo's source code. This patch fixes the various inconsistencies
    and errors that I spotted.
    Also, I removed the 'since' attribute for the mesh pattern constructor, because
    the all of the mesh patterns already have the right since attribute.
    The binding for cairo_recording_surface_create() is still flawed.
    There is a special behavior for its second argument being NULL. I don't know how
    something like this can be expressed in lgi (it creates a new cairo_rectangle_t
    when I call the function with a nil argument, doesn't it?).
    Signed-off-by: Uli Schlachter <>
    psychon committed Jul 12, 2012
  4. Merge pull request #20 from psychon/fix-tests-cairo1.12

    Fix the mesh pattern tests
    committed Jul 12, 2012
  5. Fix the mesh pattern tests

    Mesh patterns don't inherit from gradient patterns and thus this test failed.
    Signed-off-by: Uli Schlachter <>
    psychon committed Jul 12, 2012
Commits on Jul 11, 2012
  1. cairo: create artificial hierarchy of assorted Pattern classes

    The same way as Surfaces, Patterns also form class hierarchy.  Make
    this hierarchy visible, hopefully this will make more coherent API.
    committed Jul 11, 2012
  2. cairo: add version checking support

    Also guard 1.12-only MeshPattern, because otherwise it segfaults Lua
    process when trying to use it on older cairo versions.
    committed Jul 11, 2012
  3. Merge pull request #18 from psychon/mesh_pattern

    Add support for cairo mesh patterns
    committed Jul 11, 2012
  4. Add support for cairo mesh patterns

    Mesh patterns are new in cairo 1.12 and allow to define quite arbitrary
    patterns. For details, see the cairo documentation.
    No idea what happens when this is run against older versions of cairo. If this
    is important (and the current behavior is bad), some bindings for
    cairo_version() should be added.
    With this patch, mesh patterns can only be created via
    cairo.Pattern.create_mesh(), not via the new cairo.MeshPattern object. Someone
    who actually knows what he is doing should do something about this.
    Signed-off-by: Uli Schlachter <>
    psychon committed Jul 9, 2012
  5. Fix gstreamer automatically calling setlocale()

    Continuation of previous setlocale() fix.
    committed Jul 11, 2012
  6. Do not allow GTK+ to call setlocale automatically

    This can break Lua tonumber() functions and maybe further
    categorization.  Note however that assorted other libraries in GNOME
    stack do automatically call setlocale() (notably gstreamer and its
    committed Jul 11, 2012
Commits on Jul 8, 2012
  1. Fix hopelessly broken cairo path enumeration test

    One of the bugs in the test unfortunately hid others, after finding
    and fixing initial bug (by Uli), the rest appeared and were fixed by
    this commit.
    committed Jul 8, 2012
  2. Fix handling of custom ffi fields of enum/flags type

    Previously tried to use 'field' table to resolve the enum value, which
    obviously could not work.  Use the enum/flags table (as passed in the
    field definition table) for this task as it was intended.
    committed Jul 8, 2012
  3. Fix indentation

    committed Jul 8, 2012
  4. Fix typo in ffi field parser

    This would break defining fields of 'flags' type, but it is apparently
    unused now.
    committed Jul 8, 2012
  5. Merge pull request #17 from psychon/cairo_path_pairs

    Cairo: Make the cairo.path() test fail
    committed Jul 8, 2012
Commits on Jul 7, 2012
  1. Cairo: Make the cairo.path() test fail

    This test is broken, but I haven't managed to figure out why exactly. For some
    reason, a path data's header.type field is always nil, which causes
    cairo.Path:pairs() to return nil as its first result.
    When I can't fix this, let's at least break it badly enough so that others will
    notice the problem, too. :-)
    Signed-off-by: Uli Schlachter <>
    psychon committed Jul 7, 2012
Commits on Jun 25, 2012
  1. Prepare 0.6.2 release

    committed Jun 11, 2012
Commits on Jun 24, 2012
  1. Fix: set_resident() does not complain any more if it fails

    FAiling can legally happen if lgi is linked statically to the main
    application.  so be prepared to handle it.  Also make lua5.2 branch of
    the code more robust, check, whether we can really remove the userdata
    before doing so.
    committed Jun 11, 2012
Commits on Jun 21, 2012
  1. core: change core.module() to allow loading by name and major api ver…

    To reliably construct library name to load, a basename and major
    library version is needed, and then mangle these two together and
    platform-dependent way.
    committed Jun 11, 2012
  2. Merge pull request #13 from nilnor/set_resident-stack-cleaning

    set_resident: Clean the stack correctly
    committed Jun 21, 2012
Commits on Jun 20, 2012
  1. set_resident: Clean the stack correctly

    For Lua 5.2, when _CLIBS is available in the registry,
    a stray table was accidentally left on the stack.
    nilnor committed Jun 20, 2012
  2. Fix leak in core.module() method

    Thanks to andreygursky for discovering the leak.
    committed Jun 20, 2012
Commits on Jun 19, 2012
  1. Post-release version bump

    committed Jun 11, 2012