1. 13 Aug, 2011 2 commits
  2. 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).
  3. 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.
  4. 13 Jan, 2011 1 commit
  5. 29 Nov, 2010 3 commits
  6. 23 Sep, 2010 2 commits
  7. 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
      * missed some _long wrapping
  8. 08 Sep, 2010 2 commits
  9. 07 Sep, 2010 1 commit
  10. 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.
  11. 27 Jul, 2010 1 commit
  12. 26 Jul, 2010 1 commit
  13. 15 Jul, 2010 1 commit
  14. 25 Jun, 2010 1 commit
  15. 23 Jun, 2010 1 commit
  16. 20 Jun, 2010 2 commits
  17. 14 Jun, 2010 1 commit
  18. 09 Jun, 2010 1 commit
  19. 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
      * 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.
  20. 24 May, 2010 1 commit
  21. 23 May, 2010 1 commit
  22. 22 May, 2010 3 commits
  23. 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
  24. 05 May, 2010 1 commit
  25. 03 May, 2010 1 commit
  26. 30 Apr, 2010 1 commit
  27. 26 Apr, 2010 1 commit
  28. 23 Apr, 2010 1 commit
  29. 18 Apr, 2010 2 commits
  30. 17 Apr, 2010 1 commit