commit 88924e399d7ccf7af2e9a78720e0c508cd6080d8 Author: Martin Pitt Date: Mon Mar 19 16:41:17 2012 +0100 Release 3.1.92 NEWS | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 46 insertions(+), 0 deletions(-) commit b41e6139befb984c0b78bcefe2630ab1393b4b40 Author: Martin Pitt Date: Mon Mar 19 16:14:54 2012 +0100 README: Update current maintainers Also update Martin's email address. README | 10 ++++++---- pygobject.doap | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) commit 45e27ba7e447552057a2950fc768c63ff2e6612e Author: Martin Pitt Date: Mon Mar 19 16:11:22 2012 +0100 Bump version to 3.1.92, in sync with GNOME configure.ac | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 77d358f8c5f524259249ea686899e3a4da05562e Author: Johan Dahlin Date: Mon Mar 19 11:54:07 2012 -0300 Correct Gtk.TreePath.__iter__ to work with Python 3 gi/overrides/Gtk.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 1f18bcb37bdc42368ad9a07c7f348f736c2f665d Author: Martin Pitt Date: Mon Mar 19 15:54:13 2012 +0100 Fix pygtkcompat.py to work with Python 3 gi/pygtkcompat.py | 20 +++++++++++++++----- 1 files changed, 15 insertions(+), 5 deletions(-) commit 96a9f92da801989464fbcedf6d849819f6dbea64 Author: Martin Pitt Date: Mon Mar 19 15:32:22 2012 +0100 Fix test_everything.TestSignals.test_object_param_signal test case The callback gets two arguments, not one. This short-circuited the actual assertions. Fix the arguments and update the refcount check, as it is not exactly two at the moment. tests/test_everything.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit ba00afb1e50759b2b321f16e05a15946053cdafa Author: Johan Dahlin Date: Mon Mar 19 10:58:09 2012 -0300 pygtkcompat: Remove first argument for get_origin() gi/pygtkcompat.py | 5 +++++ tests/test_pygtkcompat.py | 5 +++++ 2 files changed, 10 insertions(+), 0 deletions(-) commit 65499246a862ce6a82bc3b0cc74fe8ff82dde687 Author: Johan Dahlin Date: Fri Mar 16 16:08:44 2012 -0300 GtkViewport: Add a default values for the adjustment constructor parameters https://bugzilla.gnome.org/show_bug.cgi?id=672260 gi/overrides/Gtk.py | 10 ++++++++++ tests/test_overrides.py | 11 +++++++++++ 2 files changed, 21 insertions(+), 0 deletions(-) commit 43c761d9f35252dcb58b9cf2278016d841eea4ec Author: Johan Dahlin Date: Fri Mar 16 16:08:23 2012 -0300 GtkIconSet: Add a default value for the pixbuf constructor parameter https://bugzilla.gnome.org/show_bug.cgi?id=672260 gi/overrides/Gtk.py | 11 +++++++++++ tests/test_overrides.py | 6 ++++++ 2 files changed, 17 insertions(+), 0 deletions(-) commit 116d3712251b1b8aa2d4f4a9e40e22f5b9fcbe4f Author: Johan Dahlin Date: Fri Mar 16 16:07:30 2012 -0300 PangoLayout: Add a default value for set_markup() https://bugzilla.gnome.org/show_bug.cgi?id=672260 gi/overrides/Pango.py | 3 +++ tests/test_overrides.py | 4 ++++ 2 files changed, 7 insertions(+), 0 deletions(-) commit a3ca47b086b7fcf084282be788c5d737dde847ac Author: Johan Dahlin Date: Fri Mar 16 16:06:37 2012 -0300 Gtk[HV]Scrollbar: Add a default value for the adjustment constructor parameter https://bugzilla.gnome.org/show_bug.cgi?id=672260 gi/overrides/Gtk.py | 15 +++++++++++++++ tests/test_overrides.py | 14 ++++++++++++++ 2 files changed, 29 insertions(+), 0 deletions(-) commit 458dab08c78cb730dd95bcd67af20a0d73a3af2f Author: Johan Dahlin Date: Fri Mar 16 16:06:12 2012 -0300 GtkToolButton: Add a default value for the stock_id constructor parameter https://bugzilla.gnome.org/show_bug.cgi?id=672260 gi/overrides/Gtk.py | 10 ++++++++++ tests/test_overrides.py | 9 ++++++++- 2 files changed, 18 insertions(+), 1 deletions(-) commit 2f7789a5a1f55ec38c5ff0f96bc5c9023679a333 Author: Johan Dahlin Date: Fri Mar 16 16:05:55 2012 -0300 GtkIconView: Add a default value for the model constructor parameter https://bugzilla.gnome.org/show_bug.cgi?id=672260 gi/overrides/Gtk.py | 3 +++ tests/test_overrides.py | 11 +++++++++++ 2 files changed, 14 insertions(+), 0 deletions(-) commit 2dd9dadd1bd92c3324e9de209ba8205a9d4106d6 Author: Johan Dahlin Date: Thu Mar 15 15:22:46 2012 -0300 Add a default value for column in Gtk.TreeView.get_cell_area() https://bugzilla.gnome.org/show_bug.cgi?id=672260 gi/overrides/Gtk.py | 5 +++++ tests/test_overrides.py | 3 +++ 2 files changed, 8 insertions(+), 0 deletions(-) commit bf8c95836e1cc1e1629937cbc69ea3027fb82746 Author: Martin Pitt Date: Thu Mar 15 09:48:10 2012 +0100 Atomic inserts in Gtk.{List,Tree}Store overrides Gtk.{List,Tree}Store's overrides provide append(), insert() etc. methods which take an optional data row array. If this is given, use insert_with_valuesv() instead of creating a new iter and then filling it with data. The latter sent a row-added signal, at which time the row was still empty, and a subsequent row-changed signal. With this we only get a single row-added signal with complete row data. Note that this does not change insert_{before,after}(), as there is no counterpart of insert_with_valuesv() which takes a TreeIter instead of a position. For those you will still get two signals, and have to deal with None values. https://bugzilla.gnome.org/show_bug.cgi?id=671610 gi/overrides/Gtk.py | 81 +++++++++++++++++++++++++++++------------------ tests/test_overrides.py | 74 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 124 insertions(+), 31 deletions(-) commit f7db4eaf8148f2dd8bf1718152a1dcae509470c7 Author: Martin Pitt Date: Sun Mar 18 16:07:26 2012 +0100 Fix Gtk.Button constructor to accept use_stock parameter Thanks to kalanzun@googlemail.com! https://bugzilla.gnome.org/show_bug.cgi?id=672318 Signed-off-by: Martin Pitt gi/overrides/Gtk.py | 4 +--- tests/test_overrides.py | 6 ++++++ 2 files changed, 7 insertions(+), 3 deletions(-) commit 466337cf2fd091738eeab12c10d250a9d0827284 Author: Johan Dahlin Date: Fri Mar 16 16:55:47 2012 -0300 Correct bad rebase, remove duplicate Window gi/overrides/Gtk.py | 7 ------- 1 files changed, 0 insertions(+), 7 deletions(-) commit c60d5ee3c88bd8e1c68ea97f079947cf79d5bb7d Author: Johan Dahlin Date: Thu Mar 15 15:42:28 2012 -0300 Add a PyGTK compatibility layer This module tries quite a bit harder to maintain compatibility with PyGTK, module names, enums, flags and some API. https://bugzilla.gnome.org/show_bug.cgi?id=653462 gi/Makefile.am | 3 +- gi/pygtkcompat.py | 421 +++++++++++++++++++++++++++++++++++++++++++++ tests/Makefile.am | 3 +- tests/test_pygtkcompat.py | 77 ++++++++ 4 files changed, 502 insertions(+), 2 deletions(-) commit 680a2e04ac4f80ad16e820d3f753519477c988aa Author: Johan Dahlin Date: Wed Mar 14 15:20:53 2012 -0300 Add bw-compatible arguments to Gtk.Adjustment The argument used to be called page/step_incr, if they are found map them to the existing properties for extra compatibility. https://bugzilla.gnome.org/show_bug.cgi?id=672087 gi/overrides/Gtk.py | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) commit fbd21ee7176bc1b70547ea464b512c8ffd674187 Author: Johan Dahlin Date: Wed Mar 14 17:13:04 2012 -0300 GtkTreePath: make it iterable https://bugzilla.gnome.org/show_bug.cgi?id=672093 gi/overrides/Gtk.py | 3 +++ tests/test_overrides.py | 2 ++ 2 files changed, 5 insertions(+), 0 deletions(-) commit a7b08cb75541612c78d123b1d968be7874e3c481 Author: Johan Dahlin Date: Wed Mar 14 13:32:31 2012 -0300 Add a default argument to TreeModelFilter.set_visible_func() https://bugzilla.gnome.org/show_bug.cgi?id=672081 gi/overrides/Gtk.py | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) commit 02950cabb38b1b3c9378c42c069eefdbccbce17d Author: Johan Dahlin Date: Wed Mar 14 13:31:41 2012 -0300 Add a default argument to Gtk.TreeView.set_cursor And also make sure that the path is a Gtk.TreePath. https://bugzilla.gnome.org/show_bug.cgi?id=672081 gi/overrides/Gtk.py | 4 ++++ tests/test_overrides.py | 10 ++++++++++ 2 files changed, 14 insertions(+), 0 deletions(-) commit 7245bd0ae3f6243c79fa8543a0ed1e50e5015844 Author: Johan Dahlin Date: Wed Mar 14 13:31:06 2012 -0300 Add a default argument to Pango.Context.get_metrics() https://bugzilla.gnome.org/show_bug.cgi?id=672081 gi/overrides/Pango.py | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) commit bc1fd8814df6c1e85b586d0fb943c89f7e2b78b5 Author: Martin Pitt Date: Fri Mar 16 13:27:56 2012 +0100 Fix double-freeing GValues in arrays 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 gi/pygi-marshal-from-py.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) commit a906b7d1947ba905f959d3f738eb6c29b02f96e7 Author: Simon Feltman Date: Fri Mar 16 00:29:31 2012 -0700 Renamed "property" class to "Property" Renamed to match the rest of the class names in GObject and also not clobber the builtin python property. Keep the old "property" identifier for backwards compatibility for now. https://bugzilla.gnome.org/show_bug.cgi?id=672168 Signed-off-by: Martin Pitt examples/properties.py | 6 +- gi/_gobject/__init__.py | 7 ++- gi/_gobject/propertyhelper.py | 12 +++--- tests/test_interface.py | 4 +- tests/test_properties.py | 94 ++++++++++++++++++++-------------------- 5 files changed, 62 insertions(+), 61 deletions(-) commit d7d28d717e38c0546529b09b8b571a5cc631c5b5 Author: Martin Pitt Date: Wed Mar 14 22:52:47 2012 +0100 Fix Python to C marshalling of GValue arrays 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 gi/pygi-marshal-cleanup.c | 19 ++++++++++++++----- gi/pygi-marshal-from-py.c | 13 ++++++++++++- tests/test_gi.py | 8 ++++++++ 3 files changed, 34 insertions(+), 6 deletions(-) commit 27ac9c1de6487035b18ef4511c155d251cb6d39d Author: Johan Dahlin Date: Fri Mar 16 09:59:57 2012 +0100 Correct the Gtk.Window hierarchy We need to make sure that all Gtk.Dialog subclasses inherit from the overridden Window class. For that to be done automaticly we need to create the Window class before the Dialog class. Now when it's inherited properly we need to avoid calling the Window constructor twice as it passes in a construct-only parameter. So add **kwargs to the Window constructor to allow us to pass in any kind of GObject property to it and refactor the Dialog subclasses to pass in all properties to the same constructor. Also adds a bunch of tests to make sure that the hiearchy is correct. https://bugzilla.gnome.org/show_bug.cgi?id=672158 Signed-off-by: Martin Pitt gi/overrides/Gtk.py | 56 +++++++++++++++++++++++----------------------- tests/test_overrides.py | 35 +++++++++++++++++++++++++++- 2 files changed, 61 insertions(+), 30 deletions(-) commit 77ab27ab8a580d98f76730f075e083e1e870f55e Author: simon Date: Tue Mar 13 01:41:53 2012 -0700 Renamed getter/setter instance attributes to fget/fset respectively. The python 'property' class allows for decoration of methods using .getter and .setter. These were added as methods to the GObject.property class to match that of the python property class and allow for decoratored setter methods. In addition, __call__ was added to allow an instantiated decorator with args to also decorate a method: class C(GObject.GObject): _value = 0 @GObject.property(type=int, default=0) def propInt(self): return self._value @propInt.setter def propInt(self, value): self._value = value https://bugzilla.gnome.org/show_bug.cgi?id=586181 Signed-off-by: Martin Pitt gi/_gobject/__init__.py | 10 +++--- gi/_gobject/propertyhelper.py | 59 +++++++++++++++++++++++++++++----------- tests/test_properties.py | 41 ++++++++++++++++++++++++++++ 3 files changed, 89 insertions(+), 21 deletions(-) commit 174a61fb3149c07dab5cc35e64825922cdefcb95 Author: Johan Dahlin Date: Tue Mar 13 17:10:13 2012 -0300 Add Gtk.Arrow/Gtk.Window constructor override Adds argument that makes them compatible with PyGTK. https://bugzilla.gnome.org/show_bug.cgi?id=672045 gi/overrides/Gtk.py | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) commit 7746d2188ac4933c2c9011d84525d1e62fc18953 Author: Michel Dänzer Date: Fri Mar 9 12:26:53 2012 +0100 Fix marshalling to/from Python to work on big endian machines. https://bugzilla.gnome.org/show_bug.cgi?id=668903 Signed-off-by: Martin Pitt gi/pygi-argument.c | 25 ++++++++++++++++--------- gi/pygi-marshal-from-py.c | 32 +++++++++++++++++++++++++------- gi/pygi-marshal-to-py.c | 19 +++++++++++++++++++ 3 files changed, 60 insertions(+), 16 deletions(-) commit 0591cc6f160ae6e9d8c3970934ae105ef340d7d3 Author: Michel Dänzer Date: Thu Mar 8 12:21:28 2012 +0100 Use gi_cclosure_marshal_generic instead of duplicating it. Bump gobject-introspection dependency to ensure that we have the corresponding changes in g-i. https://bugzilla.gnome.org/show_bug.cgi?id=668903 Signed-off-by: Michel Dänzer Signed-off-by: Martin Pitt configure.ac | 3 +- gi/_gobject/Makefile.am | 7 +-- gi/_gobject/ffi-marshaller.c | 194 ------------------------------------------ gi/_gobject/ffi-marshaller.h | 31 ------- gi/_gobject/gobjectmodule.c | 12 +-- 5 files changed, 4 insertions(+), 243 deletions(-) commit 8ca828825a2c47080055c5f986979aac8da9a93f Author: René Stadler Date: Mon Mar 5 21:10:55 2012 +0100 Override Gtk.TreeView.get_visible_range to fix return Just like IconView. https://bugzilla.gnome.org/show_bug.cgi?id=671409 gi/overrides/Gtk.py | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) commit 4824ceaa77b59788325a2c1ee0f994d4e74d7a1c Author: Paolo Borelli Date: Sun Mar 4 16:41:18 2012 +0100 Plug memory leak in _is_union_member When we found the member, unref the objects before breaking out of the loop. gi/pygi-marshal-from-py.c | 9 +++------ 1 files changed, 3 insertions(+), 6 deletions(-) commit c6ae29ac157978a61b11cc2de9e8485d8a175105 Author: Sebastian Pölsterl Date: Tue Feb 21 15:37:18 2012 +0100 tests: Split TestInterfaces into separate tests tests/test_gi.py | 36 +++++++++++++++++++----------------- 1 files changed, 19 insertions(+), 17 deletions(-) commit de3299818ae5fdf1c7abbe05a36bfd5cdface7b8 Author: Sebastian Pölsterl Date: Mon Feb 20 19:37:32 2012 +0100 Post release version bump to 3.1.2 configure.ac | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)