1. 11 Jan, 2013 3 commits
  2. 10 Jan, 2013 6 commits
  3. 09 Jan, 2013 1 commit
  4. 08 Jan, 2013 1 commit
    • Martin Pitt's avatar
      Use g-i stack allocation API · c02a00ae
      Martin Pitt authored
      Where possible, i. e. when not keeping references across functions, use the
      _load_() methods instead of the _get_() ones from gobject-introspection, which
      is faster and less prone to memory leaks:
        g_callable_info_get_arg () 鈫 g_callable_info_load_arg ()
        g_callable_info_get_return_type() 鈫 g_callable_info_load_return_type ()
        g_arg_info_get_type() 鈫 g_arg_info_load_type ()
  5. 04 Jan, 2013 2 commits
  6. 01 Jan, 2013 1 commit
  7. 30 Dec, 2012 1 commit
    • Dan Hor谩k's avatar
      Fix test for GBytes.compare() · 692c80e1
      Dan Hor谩k authored
      The result of the compare method is defined as equal, less than or greater than zero
      and the test must match to that. The underlaying memcmp() function can return other
      values than -1, 0 and 1. For example on architectures where it is implemented directly
      via a CPU instruction like on s390(x) where I can see -2 as a result instead of the
      "expected" -1.
  8. 27 Dec, 2012 1 commit
  9. 20 Dec, 2012 1 commit
  10. 18 Dec, 2012 3 commits
  11. 17 Dec, 2012 7 commits
  12. 30 Nov, 2012 3 commits
  13. 29 Nov, 2012 9 commits
    • Martin Pitt's avatar
      pygtkcompat: Work around IndexError on large flags · d4728393
      Martin Pitt authored
      On 32 bit systems pygtkcompat currently fails with
        File "pygtkcompat/pygtkcompat.py", line 74, in _install_enums
          name = flag.value_names[-1].replace(modname + '_', '')
      IndexError: cannot fit 'int' into an index-sized integer
      on 32 bit systems as some flags in Gdk are too large to fit into a 32 bit
      "long". Work around this crash until this gets fixed properly (marked as
    • Martin Pitt's avatar
      Fix pyg_value_from_pyobject() range check for uint · 3fa31b1a
      Martin Pitt authored
      We cannot use PYGLIB_PyLong_AsLong() for the range check, as on 32 bit machines
      this overflows large uints. Use PyLong_AsLongLong() separately to check for
      negative values, and PyLong_AsUnsignedLong() for the actual conversion.
    • Martin Pitt's avatar
      Fix tests to work with g-i 1.34.2 · 05d767a6
      Martin Pitt authored
      Do not try to call GIMarshallingTests API which isn't present when running
      against g-i 1.34.2. This can be dropped when the g-i dependency gets bumped to
    • Martin Pitt's avatar
      Fix wrong refcount for GVariant property defaults · a107c928
      Martin Pitt authored
      Drop the bogus DECREF for the GVariant default argument, as we need to keep it
      around in the class. Otherwise the refcount drops to zero, and the next
      garbage collection run causes segfaults.
    • Martin Pitt's avatar
    • Martin Pitt's avatar
      Fix array arguments on 32 bit · 37ab2275
      Martin Pitt authored
      In _pygi_argument_from_object() we never put the actual element GType into the
      constructed array. The array contains GIArguments, or bytes in the case of
      passing a string as an array.
      This happened to work on 64 bit machines where GIArgument and char* have the
      same size, but not on 32 bit machines (test_gi.TestPropertiesObject.test_strv
      fails there).
    • Martin Pitt's avatar
      test_gi: Disable failing check in test_module_name() · 7bd852fc
      Martin Pitt authored
      When calling this under some conditions, such as
        TEST_NAMES='test_thread test_gi.TestOverrides'
      then the module name of GObject.InitiallyUnowned comes out as
      "importlib._bootstrap" instead of "gi.repository.GObject". To be investigated.
      Add a couple of other tests to ensure that it is not broken in general.
    • Martin Pitt's avatar
      test_gdbus: Drop failure if timeout=0 works differently · 94a6cc93
      Martin Pitt authored
      In some test environments we do not actually get a timeout exceptions with
      timeout=0, but a different error message. So only ensure that we get the right
      kind of error.
    • Martin Pitt's avatar
      test_glib: Drop some assumptions about XDG dirs · c3b2f5fe
      Martin Pitt authored
      Some directories do not exist in minimal test environments, and this is not
      important for testing that calling these GLib functions works.
  14. 28 Nov, 2012 1 commit