1. 16 Feb, 2013 2 commits
  2. 11 Feb, 2013 1 commit
  3. 08 Feb, 2013 1 commit
    • Simon Feltman's avatar
      Fix reference leaks with transient floating objects · 5efe2e5c
      Simon Feltman authored
      Unify and refactor caller and callee GObject argument marshalers.
      Combine code from the large switch statement used to marshal
      arguments to and from vfuncs/closures with the marshalers used
      for direct calls to gi functions. This fixes a reference leak
      when marshalling GObjects to Python with transfer=full due to
      the diverging code paths.
      Replace ability in gobject_new_full to optionally sink objects
      with ability to optionaly "steal" objects. This fits the premise
      that binding layers should always sink objects initially. The
      steal argument is then used for marshalling arguments which are
      transfer=full.
      Add hacks and comments to work around GTK+ bugs 693393 and 693400.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=687522
      5efe2e5c
  4. 31 Jan, 2013 1 commit
  5. 23 Jan, 2013 1 commit
  6. 15 Jan, 2013 1 commit
  7. 11 Jan, 2013 1 commit
  8. 18 Dec, 2012 1 commit
  9. 14 Nov, 2012 1 commit
    • Martin Pitt's avatar
      Drop dead code from pygi-callbacks.[hc] · cec5d1a5
      Martin Pitt authored
      _pygi_create_callback() and _pygi_scan_for_callbacks() are not used anywhere.
      _pygi_destroy_notify_create() fits better in pygi-marshal-from-py.c, so move it
      there, and drop pygi-callbacks.[hc] completely.
      cec5d1a5
  10. 09 Nov, 2012 2 commits
    • Martin Pitt's avatar
      Fix marshalling of GByteArrays · b800a690
      Martin Pitt authored
      In _pygi_marshal_from_py_array(), set the array length after copying the data
      in the GI_TYPE_TAG_UINT8 case (which applies for GByteArrays), otherwise it
      will always come out as zero length.
      
      Enable the TestGByteArray.test_bytearray_none_in() test case as that works now.
      b800a690
    • Martin Pitt's avatar
      Fix marshalling of ssize_t to smaller ints · fa568949
      Martin Pitt authored
      Add missing marshalling cases for (u)int8 and (u)int16. This fixes the
      TestArray.test_array_in test, so drop the expected failure.
      fa568949
  11. 12 Oct, 2012 2 commits
  12. 04 Oct, 2012 1 commit
  13. 28 Sep, 2012 1 commit
  14. 20 Aug, 2012 1 commit
  15. 03 Aug, 2012 1 commit
  16. 31 Jul, 2012 4 commits
  17. 30 Jul, 2012 1 commit
    • Martin Pitt's avatar
      Fix error messages on interface/class type mismatches · 121b1402
      Martin Pitt authored
      Previously, when you called a function with an argument which was not
      compatible with the expected class/interface type, you got an error message
      like
      
        TypeError: Expected Gtk.TreeViewColumn, but got GObjectMeta
      
      which had the wrong (and useless) class name for the actual type, and did not
      tell you which argument caused the problem. With this it says e. g.
      
        TypeError: argument column: Expected Gtk.TreeViewColumn, but got Gtk.Button
      
      instead.
      121b1402
  18. 11 Jul, 2012 1 commit
  19. 24 Apr, 2012 1 commit
  20. 21 Mar, 2012 1 commit
  21. 16 Mar, 2012 2 commits
    • Martin Pitt's avatar
      Fix double-freeing GValues in arrays · bc1fd881
      Martin Pitt authored
      When marshalling a GValue array to C, the GValue items are copied into a C
      GValue array, not a C GValue pointer array. _pygi_marshal_from_py_array()
      already calls the cleanup_func for the original item;
      _pygi_marshal_cleanup_from_py_array() must not do it again, as this would try
      to g_slice_free the array item.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=672224
      bc1fd881
    • Martin Pitt's avatar
      Fix Python to C marshalling of GValue arrays · d7d28d71
      Martin Pitt authored
      For GValues we cannot just copy the GValue memory in
      _pygi_marshal_from_py_array(), as the from_py_cleanup() function clears and
      releases the GValue and with it its v_pointer. Use g_value_copy() to copy by
      value instead.
      
      This uncovered another bug in _pygi_marshal_cleanup_from_py_array(): It always
      assumed that C arrays contained pointers, but this is not the case for GValue
      arrays: these are actual struct arrays, not struct pointer arrays (cf. their
      construction in _pygi_marshal_from_py_array()). Check if an array contains
      pointers or values and compute the correct array item pointer for both cases.
      
      Also add a corresponding test case for marshalling GValue arrays from C back to
      Python, which works fine.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=672065
      d7d28d71
  22. 09 Mar, 2012 1 commit
  23. 04 Mar, 2012 1 commit
  24. 04 Jan, 2012 1 commit
  25. 02 Nov, 2011 2 commits
  26. 01 Nov, 2011 1 commit
  27. 25 Oct, 2011 1 commit
  28. 19 Oct, 2011 1 commit
  29. 30 Sep, 2011 1 commit
  30. 16 Sep, 2011 1 commit
    • John (J5) Palmieri's avatar
      fix most warnings · 225f2111
      John (J5) Palmieri authored
      * remove some unused vars
      * correctly cast vars
      * handle deprecated enums in switch statments by using default:
      * unused wanrings still remain in some places
      225f2111
  31. 15 Sep, 2011 1 commit
  32. 13 Sep, 2011 1 commit