1. 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
  2. 24 Jan, 2012 1 commit
  3. 27 Oct, 2011 1 commit
  4. 21 Oct, 2011 1 commit
  5. 14 Oct, 2011 1 commit
  6. 30 Aug, 2011 1 commit
  7. 26 Aug, 2011 1 commit
  8. 13 Aug, 2011 2 commits
  9. 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
  10. 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
  11. 13 Jan, 2011 1 commit
  12. 29 Nov, 2010 3 commits
  13. 23 Sep, 2010 2 commits
  14. 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
  15. 08 Sep, 2010 2 commits
  16. 07 Sep, 2010 1 commit
  17. 31 Aug, 2010 1 commit
    • Colin Walters's avatar
      tests: Port to new introspection tests · 720e614a
      Colin Walters authored
      Everything is renamed "Regress", and both it and GIMarshallingTests
      are now in source form, so we compile them.
      
      The scanner now adds "static methods" to objects, structs, and unions,
      so update the test code to use those.
      
      In the tests, remove broken (inout) cases - the person writing these
      tests misunderstood the semantics of (inout).  It's not acceptable for
      a C API to mutate e.g. a GSList* passed in, or unref an object.
      
      The invocation code needed to be updated for this - remove some
      broken hacks.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=627878
      720e614a
  18. 27 Jul, 2010 1 commit
  19. 26 Jul, 2010 1 commit
  20. 15 Jul, 2010 1 commit
  21. 25 Jun, 2010 1 commit
  22. 23 Jun, 2010 1 commit
  23. 20 Jun, 2010 2 commits
  24. 14 Jun, 2010 1 commit
  25. 09 Jun, 2010 1 commit
  26. 03 Jun, 2010 1 commit
    • John (J5) Palmieri's avatar
      support for caller-allocates annotations for structs · 1e42ee6e
      John (J5) Palmieri authored
      * out caller-allocates parameters expect an already constructed structure
        to be passed in by reference.  It is then modified and the caller uses the
        modified value.  We support this by using only one level of pointer
        indirection.
      * Only structs are considered to be caller-allocates parameters even if
        they are marked as such by GI.  This is because the GI scanner isn't smart
        enough to correctly guess 100% of the time
      * GValues are a special case of a caller-allocates parameter when cleaning
        up (e.g. g_value_unset is called).  GValues make no sense in a scripting
        language.  Developers should never deal with them.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=620406
      1e42ee6e
  27. 24 May, 2010 1 commit
  28. 23 May, 2010 1 commit
  29. 22 May, 2010 3 commits
  30. 11 May, 2010 1 commit
    • John (J5) Palmieri's avatar
      wrap GObject module so we can go through GI when requesting attrs · c20b9f63
      John (J5) Palmieri authored
      * This gives us the best of both worlds.
        - We remain backwards compatable with pygobject by checking for existing
          attrs in the gobject module
        - If an attr does not exist we use the GI mechanism to look it up so that
          things like flags look the same whether exported from GObject, Gtk
          or any GI managed library
      
      * add DynamicGObjectModule tests and make tests use the new module
        - change import gobject to from gi.repository import GObject
      c20b9f63
  31. 05 May, 2010 1 commit
  32. 03 May, 2010 1 commit