commit 7f0995e7fa865ebde7490d0570a7135a2f962cdf Author: Martin Pitt Date: Tue Jun 5 19:09:12 2012 +0200 Release 3.3.2 NEWS | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) commit 8209c1ae1632c77768699481e574d5d378956e71 Author: Martin Pitt Date: Tue Jun 5 19:04:49 2012 +0200 Fix "release-news" make target Actually list changes since the previous release, not since 3.1.92. Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit b21f66d2a399b8c9a36a1758107b7bdff0ec8eaa Author: Bastian Winkler Date: Wed May 9 19:04:01 2012 +0200 foreign: Register cairo.Path and cairo.FontOptions foreign structs They are rarely used, but they are used at least by Gdk, PangoCairo and Clutter. clutter.Path is not used by any API that the test suite uses, so leave that without a test for now. https://bugzilla.gnome.org/show_bug.cgi?id=677388 Signed-off-by: Martin Pitt gi/pygi-foreign-cairo.c | 85 ++++++++++++++++++++++++++++++++++++++++++++++ tests/test_everything.py | 8 +++++ 2 files changed, 93 insertions(+) commit 635a7d1b48d99ddd1ea123797c493b18b0cdfd45 Author: Marien Zwart Date: Wed May 23 01:51:46 2012 +0200 Check types in GBoxed assignments Check if the Python value is GBoxed instead of assuming it is. Without this, the following segfaults: from gi.repository import Soup msg = Soup.Message() msg.props.uri = 'http://www.gnome.org' as we assume the new property is a GBoxed while it is actually a string. https://bugzilla.gnome.org/show_bug.cgi?id=676603 Co-authored-by: Martin Pitt Signed-off-by: Martin Pitt gi/pygi-argument.c | 10 +++++++--- tests/test_gi.py | 19 +++++++++++++++++++ 2 files changed, 26 insertions(+), 3 deletions(-) commit 2305dcd7e8841f87dc2fc683390df78453a5dc2a Author: Bastian Winkler Date: Sat May 12 14:08:51 2012 +0200 [API add] Gtk overrides: Add TreeModelRow.get_previous() TreeModelRow has get_next() and a next property, it should also have get_previous() and previous. https://bugzilla.gnome.org/show_bug.cgi?id=677389 Signed-off-by: Martin Pitt gi/overrides/Gtk.py | 9 +++++++++ 1 file changed, 9 insertions(+) commit 5501fba534696974899f2591929bff9e1b6ecd65 Author: Bastian Winkler Date: Sat May 12 13:50:02 2012 +0200 [API add] Add missing GObject.TYPE_VARIANT Add TYPE_VARIANT to constants to make it accessible as GObject.TYPE_VARIANT. https://bugzilla.gnome.org/show_bug.cgi?id=677387 Signed-off-by: Martin Pitt gi/_gobject/__init__.py | 1 + gi/_gobject/constants.py | 1 + 2 files changed, 2 insertions(+) commit 4c51a5411092f8ab6f8f6e9692a9b49692f621a7 Author: Jasper St. Pierre Date: Fri Jun 1 02:53:13 2012 -0400 Fix boxed type equality Each boxed type has its own Python type, not PyGBoxed_Type. Use PyObject_IsInstance instead of comparing against PyGBoxed_Type directly. https://bugzilla.gnome.org/show_bug.cgi?id=677249 Signed-off-by: Martin Pitt gi/_gobject/pygboxed.c | 3 ++- tests/test_everything.py | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) commit dc8eef26906753fcb3ce057b23ca110137897fa5 Author: Jose Rostagno Date: Fri Jun 1 13:43:38 2012 +0200 Fix TestProperties.testBoxed test A typo was preventing the test from being run. https://bugzilla.gnome.org/show_bug.cgi?id=676644 Signed-off-by: Martin Pitt tests/test_properties.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 853e6a71234ebd66af5a64dfb296e323c2c905a6 Author: Carlos Garnacho Date: Thu May 17 17:09:15 2012 +0200 Fix handling of by-reference structs as out parameters When marshalling back from python, copy the result of by-reference structs into the memory expected by the native caller, instead of attempting to handle it as a pointer. https://bugzilla.gnome.org/show_bug.cgi?id=653151 Signed-off-by: Martin Pitt gi/pygi-closure.c | 17 +++++++++++++++++ tests/test_gi.py | 5 +++++ 2 files changed, 22 insertions(+) commit bac9d526f6a9774821d1c9c0e7b35cc6db942975 Author: Martin Pitt Date: Fri Jun 1 12:28:53 2012 +0200 tests: Add more vfunc checks for GIMarshallingTestsObject tests/test_gi.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) commit e1aaf4a48453be0e69e7f3a70a2e7a790871a4d2 Author: Martin Pitt Date: Fri Jun 1 12:02:55 2012 +0200 Test caller-allocated GValue out parameter This came up as a side issue in https://bugzilla.gnome.org/show_bug.cgi?id=653151 tests/test_gi.py | 3 +++ 1 file changed, 3 insertions(+) commit edc17e703e1a05e20545d3df9167ceb076450443 Author: Bastian Winkler Date: Wed May 16 11:13:05 2012 +0200 GObject.bind_property: Support transform functions Add support for optional transformation functions to pygobject_bind_property(). It uses a custom PyGClosure to marshal the return value correctly. https://bugzilla.gnome.org/show_bug.cgi?id=676169 Signed-off-by: Martin Pitt gi/_gobject/pygobject.c | 130 ++++++++++++++++++++++++++++++++++++++++++++--- tests/test_gobject.py | 59 +++++++++++++++++++++ 2 files changed, 181 insertions(+), 8 deletions(-) commit 07a08b49aae83a297e2f91240448314e4663f724 Author: Carlos Garnacho Date: Mon May 14 15:31:14 2012 +0200 Fix lookup of vfuncs in parent classes https://bugzilla.gnome.org/show_bug.cgi?id=672864. As subclasses implemented in python override the attribute for the vfunc, __mro__ has to be used so subclasses of the subclass overriding methods may find the corresponding VFuncInfo. Co-Authored-by: Martin Pitt gi/types.py | 6 +++--- tests/test_gi.py | 27 +++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 3 deletions(-) commit b965ee15bac6cd28d16d32205d96d2b1bdd3f0e1 Author: Martin Pitt Date: Fri Jun 1 08:18:40 2012 +0200 tests/test_properties.py: Fix whitespace The pep8 check failed on this. tests/test_properties.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 274d60a7c08d74a299f4b83d8054c00eadb4bdbd Author: Jasper St. Pierre Date: Wed May 30 16:45:53 2012 -0400 gi: Support zero-terminated arrays with length arguments Sometimes, you may see (array zero-terminated=1 length=length) annotations. Don't expose the length argument to the user in this case. https://bugzilla.gnome.org/show_bug.cgi?id=677124 gi/pygi-cache.c | 13 ++++--------- tests/test_gi.py | 3 +++ 2 files changed, 7 insertions(+), 9 deletions(-) commit 62c2e962a225ec2527aa3d7406aa0dae232a0886 Author: Jasper St. Pierre Date: Fri May 25 17:09:55 2012 -0400 Fix build libregress now needs cairo-gobject configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 9477f0f2f17a6d9b97e5ee08378bc009b8d4c30a Author: Martin Pitt Date: Mon May 14 15:48:34 2012 +0200 Fix comment in previous commit tests/test_gobject.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 6610428394d0c65987de5021bf2c38641cdb7116 Author: Simon Feltman Date: Tue May 8 20:04:09 2012 -0700 [API add] Add GObject.bind_property method This adds the "bind_property" method for binding two gobject properties together. The method returns a weak reference to a GBinding object. The BindingWeakRef object is used to manage GBinding objects within python created through GObject.bind_property. It is a sub-class PyGObjectWeakRef so that we can maintain the same reference counting semantics between Python and GObject Binding objects. This gives explicit direct control of the binding lifetime by using the "unbind" method on the BindingWeakRef object along with implicit management based on the lifetime of the source or target objects. Note this does not yet include support for converter closures. This can come later after the initial implementation is accepted. https://bugzilla.gnome.org/show_bug.cgi?id=675582 Signed-off-by: Martin Pitt gi/_gobject/pygobject.c | 104 ++++++++++++++++++++++++++++++++++++++++++++++- tests/test_gobject.py | 90 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 193 insertions(+), 1 deletion(-) commit 88babe7377402f6e6f912a8b83615aab848eae81 Author: Jose Rostagno Date: Fri May 11 19:08:47 2012 -0300 pygtkcompat: Correctly set flags https://bugzilla.gnome.org/show_bug.cgi?id=675911 Signed-off-by: Martin Pitt gi/pygtkcompat.py | 5 ++--- tests/test_pygtkcompat.py | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) commit 3f712b56397296bca2f5358cd52977b1a2011964 Author: Jose Rostagno Date: Fri May 11 12:39:05 2012 -0300 Gtk overrides: Implement __delitem__ on TreeModel https://bugzilla.gnome.org/show_bug.cgi?id=675892 Signed-off-by: Martin Pitt gi/overrides/Gtk.py | 16 ++++++++++++---- tests/test_overrides.py | 9 +++++++++ 2 files changed, 21 insertions(+), 4 deletions(-) commit 9a1a07742ec0b1821d469603f9996a2b7d832f40 Author: Simon Feltman Date: Sun May 6 18:10:39 2012 -0700 Gdk Color override should support red/green/blue_float properties Added red_float, green_float, and blue_float properties to Color. Also added Color.from_floats, RGBA.to_color, and RGBA.from_color. https://bugzilla.gnome.org/show_bug.cgi?id=675579 Signed-off-by: Martin Pitt gi/overrides/Gdk.py | 44 ++++++++++++++++++++++++++++++++++++++++++++ tests/Makefile.am | 2 +- tests/test_overrides.py | 17 +++++++++++++++++ 3 files changed, 62 insertions(+), 1 deletion(-) commit d9608c332d9592f03545b110cfac8105453ea035 Author: Martin Pitt Date: Sat May 5 12:42:42 2012 -0700 Support marshalling of GVariants for closures Add GVariant handling to pyg_value_{as,from}_pyobject(), so that closures can be called with GVariant arguments and return GVariant. Unmark the corresponding test case as "expected failure", and also add cases for None values and type mismatches. https://bugzilla.gnome.org/show_bug.cgi?id=656554 gi/_gobject/pygtype.c | 47 ++++++++++++++++++++++++++++++++++++++++++++-- tests/test_everything.py | 16 ++++++++++++---- 2 files changed, 57 insertions(+), 6 deletions(-) commit e7a909c16dc1c625ab11e270f23d540f15c71767 Author: Johan Dahlin Date: Mon May 7 10:33:40 2012 -0300 Require gobject-introspection 1.33.0 configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 9e8239684433631e0d1650d25416e4d7bf92a058 Author: Martin Pitt Date: Sun May 6 18:28:23 2012 -0700 NEWS: Add API additions since 3.2.0 NEWS | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) commit d1a2bf51eb25b54028fbf496d20dfad9546bcb5e Author: Martin Pitt Date: Sun May 6 18:25:23 2012 -0700 NEWS: Mark API changes since 3.2.0 NEWS | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit a3329539291bd8ea9aa6cb184a05ea7c21f8885a Author: Martin Pitt Date: Sun May 6 18:19:35 2012 -0700 Fix commit 168a087 for Python 3 Simplify the type check and use the already existing one. Fix the string check to work with both Python 2 and 3. gi/pygi-argument.c | 42 +++++++++--------------------------------- 1 file changed, 9 insertions(+), 33 deletions(-) commit 42c717ed77613e02f3c8ef2685bc071462b87d73 Author: Martin Pitt Date: Sun May 6 18:08:57 2012 -0700 pygtkcompat.py: Typo fix Was missing a space around operator, causing the PEP8 check to fail. gi/pygtkcompat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 168a08753cec1ff77ccca5d81b9a5fd2af5d3720 Author: Martin Pitt Date: Sun May 6 18:02:04 2012 -0700 _pygi_argument_from_object(): Check for compatible data type Verify that the passed PyObject actually matches the expected type of the argument. With this, trying to assign a wrong type to a property will now raise a proper TypeError. gi/pygi-argument.c | 39 +++++++++++++++++++++++++++++++++++++++ gi/pygi-property.c | 3 +++ tests/test_gi.py | 40 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 82 insertions(+) commit 5948b62ba3e08ea943e6965ee38c94c363186226 Author: Martin Pitt Date: Sun May 6 17:59:57 2012 -0700 pygtkcompat: Fix color conversion gtk_style_context_get_background_color() returns a GdkRGBA value, which has float values between 0 and 1. However, we construct a GdkColor object from that, so we need to scale to 0..65535 and round to int. gi/pygtkcompat.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 6af74c501bc604559f8b5b4e0d856d022ed882bb Author: Martin Pitt Date: Sun May 6 06:02:31 2012 -0700 test_gi: Check setting properties in constructor tests/test_gi.py | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) commit 9f50fd214e4214f83959b2883a0c667f7f157c97 Author: Martin Pitt Date: Sun May 6 05:50:00 2012 -0700 Support getting and setting GStrv properties gi/pygi-property.c | 36 ++++++++++++++++++++++++++++++++++++ tests/test_gi.py | 11 +++++++++++ 2 files changed, 47 insertions(+) commit 8321af2c7df499291e664c676376f149a0c3dcac Author: Martin Pitt Date: Sat May 5 13:58:29 2012 -0700 Support defining GStrv properties from Python gi/_gobject/propertyhelper.py | 10 +++++-- tests/test_properties.py | 58 +++++++++++++++++++++++++++++++++++++++-- 2 files changed, 64 insertions(+), 4 deletions(-) commit f2494526e1c579c41babfe7ff67deef0f6966adf Author: Martin Pitt Date: Sat May 5 13:21:20 2012 -0700 Add GObject.TYPE_STRV constant gi/_gobject/__init__.py | 1 + gi/_gobject/constants.py | 1 + tests/test_everything.py | 2 +- tests/test_signal.py | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) commit 8c7306e4d6355ca45f8f1b4adf7d0595b4e8bcf8 Author: Martin Pitt Date: Sat May 5 09:28:36 2012 +0200 Unref GVariants when destroying the wrapper https://bugzilla.gnome.org/show_bug.cgi?id=675472 gi/overrides/GLib.py | 3 +++ 1 file changed, 3 insertions(+) commit d6c091d87c86c8ccc7cb54347fbceccedac61633 Author: Martin Pitt Date: Sat May 5 09:23:55 2012 +0200 Fix TestArrayGVariant test cases test_array_gvariant_container_in() and test_array_gvariant_full_in() called GIMarshallingTests.array_gvariant_none_in(), presumably a copy&paste error. Actually do what they mean to do now and call the corresponding GIMarshallingTests methods. tests/test_gi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit fda8a069d503e63c76a6b1ba285a181822549059 Author: Jose Rostagno Date: Sat May 5 08:52:41 2012 +0200 pygtkcompat: Add gdk.pixbuf_get_formats compat code https://bugzilla.gnome.org/show_bug.cgi?id=675489 Signed-off-by: Martin Pitt gi/pygtkcompat.py | 20 ++++++++++++++++++++ tests/test_pygtkcompat.py | 8 ++++++++ 2 files changed, 28 insertions(+) commit 2b49c5f58bb841de7a9077eeeaf996eb9851dab3 Author: Jose Rostagno Date: Mon Apr 30 13:44:19 2012 -0300 pygtkcompat: Add some more compat functions https://bugzilla.gnome.org/show_bug.cgi?id=675489 Signed-off-by: Martin Pitt gi/pygtkcompat.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) commit 16fbb17a9fd17eeb9f886af99e89a214d328dae1 Author: Martin Pitt Date: Thu May 3 12:25:04 2012 +0200 Fix tests for Python 3 cmp() does not exist any more in Python 3, replace with comparison operators. GIMarshallingTests.array_in_nonzero_nonlen() expects a guint8 array, so we can't pass a str (which is an Unicode object in Python 3). Pass a byte array instead. tests/test_gi.py | 2 +- tests/test_overrides.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit fd7f8eefbe8aba0b29d80e3eb9d985d33a268c8a Author: Martin Pitt Date: Thu May 3 09:38:56 2012 +0200 Fix building with --disable-cairo 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. configure.ac | 3 +++ tests/Makefile.am | 4 ++-- tests/test_everything.py | 8 +++++++- 3 files changed, 12 insertions(+), 3 deletions(-) commit 1c5634e6d98c8b67b37a2747951c66f5d8f1907d Author: Martin Pitt Date: Thu May 3 09:28:51 2012 +0200 tests: Fix deprecated assertions assertAlmostEquals → assertAlmostEqual assertNotEquals → assertNotEqual tests/test_everything.py | 4 ++-- tests/test_gi.py | 12 ++++++------ tests/test_overrides.py | 10 +++++----- 3 files changed, 13 insertions(+), 13 deletions(-) commit 07f312e66c07357168098d3f96813d2c997e8dc7 Author: Martin Pitt Date: Wed May 2 12:08:19 2012 +0200 Run tests with MALLOC_PERTURB_ We mostly use the glib allocation functions, but this might help to uncover access to already freed or uninitialized memory in a few edge cases. tests/Makefile.am | 1 + 1 file changed, 1 insertion(+) commit b0740d386c2cbbd153878209b584b568968e4d98 Author: Martin Pitt Date: Mon Apr 30 16:26:57 2012 +0200 configure.ac: Post-release bump to 3.3.2 configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)