1. 03 May, 2012 2 commits
    • Martin Pitt's avatar
      Fix building with --disable-cairo · fd7f8eef
      Martin Pitt authored
      Build gobject-introspection's regress.c against cairo, not pycairo/py3cairo. We
      always need cairo to build, so unconditionally check for this in configure.ac.
      
      In test_everything.py, gracefully handle the absence of the "cairo" Python
      module, which we do not have when building without cairo support.
      fd7f8eef
    • Martin Pitt's avatar
      tests: Fix deprecated assertions · 1c5634e6
      Martin Pitt authored
      assertAlmostEquals 鈫 assertAlmostEqual
      assertNotEquals 鈫 assertNotEqual
      1c5634e6
  2. 24 Apr, 2012 2 commits
  3. 22 Apr, 2012 1 commit
  4. 19 Apr, 2012 2 commits
  5. 09 Apr, 2012 1 commit
  6. 27 Mar, 2012 1 commit
  7. 22 Mar, 2012 5 commits
  8. 21 Mar, 2012 2 commits
  9. 19 Mar, 2012 1 commit
  10. 16 Feb, 2012 1 commit
    • Martin Pitt's avatar
      Add test for GPtrArray with transfer full · 0739c39f
      Martin Pitt authored
      This complements the already existing test for a "transfer container" return
      array. We can't verify the internal refcount as these arrays get marshalled
      internally, but at least we can verify that it does not crash due to
      double-free.
      0739c39f
  11. 10 Feb, 2012 1 commit
  12. 06 Feb, 2012 1 commit
  13. 25 Jan, 2012 1 commit
    • Martin Pitt's avatar
      Fix method names of callback tests · f8240403
      Martin Pitt authored
      Change test_everything.TestCallbacks.* test names from camelCase to the
      standard PEP-8 underscore_style. This is now consistent with all other test
      case names.
      f8240403
  14. 24 Jan, 2012 1 commit
  15. 27 Oct, 2011 1 commit
  16. 21 Oct, 2011 1 commit
  17. 14 Oct, 2011 1 commit
  18. 30 Aug, 2011 1 commit
  19. 26 Aug, 2011 1 commit
  20. 13 Aug, 2011 2 commits
  21. 02 Feb, 2011 1 commit
    • Steve Fr茅cinaux's avatar
      Fix wrong refcount when calling introspected widget constructors · 7bc41228
      Steve Fr茅cinaux authored
      Introspected widget constructors, like Gtk.Button.new(), can return
      objects with a floating reference, which was then reffed by pygobject,
      resulting in two references, despite the object is not owned by anyone.
      
      This patch uses ref_sink() when pygobject takes its own reference, to
      avoid adding that extra reference. Hence we now claim ownership on
      objects returned by constructors with transfer=none (which is the case
      for nearly all the widget constructors, despite the floating ref).
      
      https://bugzilla.gnome.org/show_bug.cgi?id=640868
      7bc41228
  22. 17 Jan, 2011 1 commit
    • Laszlo Pandy's avatar
      In IntrospectionModule and DynamicModule classes, make all instance attributes... · 09c21c79
      Laszlo Pandy authored
      In IntrospectionModule and DynamicModule classes, make all instance attributes start with an underscore.
      
      This changes IntrospectionModule.version to _version and DynamicModule.introspection_module to _introspection_module.
      This is done to mark the attributes as private, and also avoid name collisions with attributes from the typelib.
      In Gstreamer, there is a function gst_version, which was previously inaccessible because of IntrospectionModule.version overriding it.
      09c21c79
  23. 13 Jan, 2011 1 commit
  24. 29 Nov, 2010 3 commits
  25. 23 Sep, 2010 2 commits
  26. 17 Sep, 2010 1 commit
    • John (J5) Palmieri's avatar
      minor fixes in tests for py3k compat · dec9001d
      John (J5) Palmieri authored
      * add a _bytes wrapper for API that expects bytes in py3k but str in py2
      * fix some more exception handling using sys.exc_info()[:2]
      * use range instead of xrange, items instead of iteritems since py3k
        dropped support for the different ways of accessing iterators
        - this is less efficient in py2 but we plan to target py3k as the
          primary platform
      * use list(dict.items()) since py3k only returns iterables which are not
        indexable
      * missed some _long wrapping
      
      https://bugzilla.gnome.org/show_bug.cgi?id=615872
      dec9001d
  27. 08 Sep, 2010 2 commits