commit 42970db5949c615078c38a039da4745eeb194ac1 Author: Ignacio Casal Quinteiro Date: Fri Jun 10 14:01:32 2011 +0200 closure: avoid double free crash gi/pygi-closure.c | 12 ++++-------- 1 files changed, 4 insertions(+), 8 deletions(-) commit 78366697d8f7fc53f20d9f52f9f39552c5e99bd1 Author: John (J5) Palmieri Date: Fri Jun 10 16:48:28 2011 -0400 [gi] backport of "GVariant has a GType" fe386a * backport the switch to using GIInterfaceInfo instead of GITypeInfo for foreign types to support this patch - 01596a gi/pygi-argument.c | 10 +++++----- gi/pygi-foreign-cairo.c | 18 ++++++++++-------- gi/pygi-foreign-gvariant.c | 15 +++++++-------- gi/pygi-foreign-gvariant.h | 14 ++++++-------- gi/pygi-foreign.c | 21 +++++++++------------ gi/pygi-foreign.h | 16 ++++++++-------- gi/pygi-invoke.c | 26 ++++++++++++++++---------- 7 files changed, 61 insertions(+), 59 deletions(-) commit 0c348da3d974f63629c44e75067b8056dacc60d3 Author: John (J5) Palmieri Date: Fri Jun 10 16:46:20 2011 -0400 [gi] fixes to backport commit 6b5a65 - in older glib GVariants are still structs gi/gimodule.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) commit 6b5a656a3b77438c9bbb897c65343634b981c0e5 Author: Tomeu Vizoso Date: Mon Jun 6 19:05:07 2011 +0200 GVariantType is a boxed struct https://bugzilla.gnome.org/show_bug.cgi?id=647509 gi/gimodule.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 3f6bba909486d0ad1a27592fcf09c7ac8744fded Author: Tomeu Vizoso Date: Mon Jun 6 17:38:21 2011 +0200 Use _gi.Struct to wrap fundamentals https://bugzilla.gnome.org/show_bug.cgi?id=647509 gi/module.py | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) commit b7f5ce021bf16a422dc410b3ff44303e0757dc6e Author: Jason Siefken Date: Fri Jun 3 23:11:17 2011 -0700 Added __eq__ method for Gdk.Color and Gdk.RGBA Call Gdk.Color.equal and Gdk.RGBA.equal when == equality testing is used. gi/overrides/Gdk.py | 6 ++++++ tests/test_overrides.py | 4 ++++ 2 files changed, 10 insertions(+), 0 deletions(-) commit c016c27f545f398f1b57cf31f37392c97d2b5e50 Author: Ignacio Casal Quinteiro Date: Wed Jun 8 19:21:23 2011 +0200 Remove useless import tests/test_everything.py | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) commit 1598047c0ddd6a1d04d41e59dd182f3c0524f3c4 Author: Ignacio Casal Quinteiro Date: Wed Jun 8 19:18:23 2011 +0200 Revert "[gi] Removed hack to avoid using GLib.Variant.new_variant." This reverts commit dfe95b9ec598b57deaabd98ab488ab054a44ec09. gi/overrides/GLib.py | 14 +++++++++++++- 1 files changed, 13 insertions(+), 1 deletions(-) commit ae9e098c14de3d2364c8b16c862aa77570c06a4a Author: Ignacio Casal Quinteiro Date: Wed Jun 8 19:13:48 2011 +0200 closure: Check the out arg is not null. Fixes bug #651812 gi/pygi-closure.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) commit eca590a3ff6bbfb78eef7b88d36cee59eb51b1d0 Author: Daniel Drake Date: Fri Jun 3 16:59:15 2011 +0100 Fix GC-related crash during PyGObject deallocation Python-2.7.1's GC source has the following comment: /* Python's cyclic gc should never see an incoming refcount * of 0: if something decref'ed to 0, it should have been * deallocated immediately at that time. * Possible cause (if the assert triggers): a tp_dealloc * routine left a gc-aware object tracked during its teardown * phase, and did something-- or allowed something to happen -- * that called back into Python. gc can trigger then, and may * see the still-tracked dying object. Before this assert * was added, such mistakes went on to allow gc to try to * delete the object again. In a debug build, that caused * a mysterious segfault, when _Py_ForgetReference tried * to remove the object from the doubly-linked list of all * objects a second time. In a release build, an actual * double deallocation occurred, which leads to corruption * of the allocator's internal bookkeeping pointers. That's * so serious that maybe this should be a release-build * check instead of an assert? */ As shown in a backtrace at https://bugzilla.redhat.com/show_bug.cgi?id=640972 , pygobject is making this exact mistake. Before untracking its object, pygobject_dealloc calls PyObject_ClearWeakRefs() which can call back into python, create new allocations, and trigger the GC. This is causing Sugar (based on pygobject2 + pygtk2 static bindings) to crash on a regular basis while interacting with widgets or launching applications. Fix this by untracking the object early. Also fix the same issue spotted in the GSource wrapper. Thanks to Bernie Innocenti for initial diagnosis. glib/pygsource.c | 6 ++++-- gobject/pygobject.c | 8 +++++++- 2 files changed, 11 insertions(+), 3 deletions(-) commit ad96a3f1d187a640ec0a463b766fd5e027f3c16a Author: Martin Pitt Date: Mon May 2 15:49:52 2011 +0200 Fix symbol names to be locale independent We currently use upper() to present enum values, which are usually defined in lower case in the typelib, in upper cases. However, upper() is locale dependent, so that e. g. in tr_TR.UTF-8, "invalid" becomes "iNVALiD" because Turkish has some extra variants of "i". Use a local ASCII-only translate() call instead to avoid this. Thanks to Nils Philippsen for the idea! This also adds a test locale "te_ST@nouppera" which defines toupper('a') == 'a'. Run the Enum tests under this locale to reproduce the bug and verify the fix. https://bugzilla.gnome.org/show_bug.cgi?id=649165 gi/module.py | 9 ++++++++- tests/te_ST@nouppera | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ tests/test_gi.py | 30 ++++++++++++++++++++++++++++++ 3 files changed, 88 insertions(+), 1 deletions(-) commit 90530b52f6eaa30bb704e413c01bb94ee511a0bb Author: Sebastian Pölsterl Date: Mon Apr 18 18:36:25 2011 +0200 Updated DOAP file pygobject.doap | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) commit 996e5676a00e8d8fc55ef7400d15ccf5a4d904eb Author: Sebastian Pölsterl Date: Mon Apr 18 18:16:42 2011 +0200 Post release version bump to 2.28.5 configure.ac | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit afbcc71b71343b5a16dc8873c2ac7b9ca7dd801a Author: Sebastian Pölsterl Date: Mon Apr 18 18:06:56 2011 +0200 Release 2.28.4 NEWS | 11 +++++++++++ configure.ac | 2 +- 2 files changed, 12 insertions(+), 1 deletions(-) commit 4643bcad5845f5ec3dd9961616e3ed3b0946001f Author: Sebastian Pölsterl Date: Sat Apr 16 16:02:05 2011 +0200 [gi] Don't create variant twice gi/overrides/GLib.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 0e9e4ec7c28ac4564e15283636adc8b7bc1a83be Author: Sebastian Pölsterl Date: Fri Apr 15 16:14:43 2011 +0200 pygi-convert.sh: Make sure the uppercase GObject module is imported instead of the lowercase https://bugzilla.gnome.org/show_bug.cgi?id=647736 pygi-convert.sh | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit dfe95b9ec598b57deaabd98ab488ab054a44ec09 Author: Sebastian Pölsterl Date: Fri Apr 15 15:58:53 2011 +0200 [gi] Removed hack to avoid using GLib.Variant.new_variant. The bug in the annotations of GLib is fixed now. https://bugzilla.gnome.org/show_bug.cgi?id=639952 https://bugzilla.gnome.org/show_bug.cgi?id=647796 gi/overrides/GLib.py | 14 +------------- 1 files changed, 1 insertions(+), 13 deletions(-) commit cfccd55128377864e3a42a64785637bd453621b2 Author: Sebastian Pölsterl Date: Fri Apr 15 15:58:31 2011 +0200 [gi] Added additional test case for GVariant handling tests/test_overrides.py | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) commit 666ec192a4369e2fae508261a7a81b34326fc227 Author: Sebastian Pölsterl Date: Mon Apr 11 18:34:31 2011 +0200 [gi] Added support for GVariant arguments This is required in order for the "g-signal" signal of GDBusProxy to work properly and thus to properly receive DBus signals with any type of argument. https://bugzilla.gnome.org/show_bug.cgi?id=647477 gi/pygi-argument.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit cc0e8423f36486d15f751bd3c14351edda28538d Author: Steve Frécinaux Date: Mon Apr 4 21:12:18 2011 +0200 Fix ABI break in old static bindings. Commit 84d6142c14a7ebfb7284d3db52e14d3393f93905 (Always register a new GType when a GObject class is subclassed) breaks the more advanced usage of PyGObject with regards to "metaclass hackery" as used in for example the kiwi and sqlkit projects. But the users of the gi-based bindings now rely on the new behaviour. We fix this by restraining the systematical registering of new types to the new gi-based bindings, leaving the old pygtk ones untouched. https://bugzilla.gnome.org/show_bug.cgi?id=646437 gi/types.py | 9 +++++++++ gobject/__init__.py | 16 +++++++++------- 2 files changed, 18 insertions(+), 7 deletions(-) commit b0e499744d337adc608e2aa8996469bca2df044a Author: Mike Gorse Date: Sat Apr 2 18:45:40 2011 -0500 fetch size from an enum type Do not assume that an enum is returned as a long; treat it as an int if the type indicates that its size is that of an int. http://bugzilla.gnome.org/show_bug.cgi?id=646581 gi/pygi-argument.c | 25 ++++++++++++++++++++++--- 1 files changed, 22 insertions(+), 3 deletions(-) commit 4f59bee3a875eb71b8c9adce855b9addc965fe3b Author: Dieter Verfaillie Date: Tue Mar 22 20:47:51 2011 +0100 dsextras.py: ensure eol characters are preserved when writing template files (so \n does not become \r\n) dsextras.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit b7a6f884e9ea5946691dd661b79e3094b6e1b34c Author: John (J5) Palmieri Date: Thu Mar 24 12:10:47 2011 -0400 release 2.28.3 NEWS | 3 +++ configure.ac | 2 +- 2 files changed, 4 insertions(+), 1 deletions(-) commit 99689e2849a9df78980c9d25d9ddabc1e95f1252 Author: John (J5) Palmieri Date: Thu Mar 24 12:08:10 2011 -0400 Revert "dsextras.py: ensure eol characters are preserved when writing template files (so \n does not become \r\n)" This reverts commit 27496e0e86e7d8798caf019fd09af5c6a30ec633. dsextras.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 27496e0e86e7d8798caf019fd09af5c6a30ec633 Author: Dieter Verfaillie Date: Tue Mar 22 20:47:51 2011 +0100 dsextras.py: ensure eol characters are preserved when writing template files (so \n does not become \r\n) dsextras.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit b7449d63e0c1bdfb5acbd8c5ec073711441301b9 Author: Dieter Verfaillie Date: Tue Mar 22 11:35:44 2011 +0100 dsextras.py: remove \r as wel as \n character dsextras.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 075ead0533ba311120b3ca9ac9ae75ca84ace8fb Author: John (J5) Palmieri Date: Wed Mar 23 10:39:19 2011 -0400 fix a typo when converting objects to strings gvalues gobject/pygtype.c | 4 ++-- tests/test_properties.py | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) commit a904f0dea4b7f04aac7c9ddd3b01ffbbd808375e Author: John (J5) Palmieri Date: Tue Mar 22 21:56:14 2011 -0400 prep 2.28.2 release NEWS | 6 ++++++ configure.ac | 2 +- 2 files changed, 7 insertions(+), 1 deletions(-) commit c1ee6642d4b69a8c417cf92534ba091f89c7f68c Author: John (J5) Palmieri Date: Tue Mar 22 18:46:28 2011 -0400 fix static ABI for setting string gvalues from python objects * the static bindings used to be able to set a string gvalue to any python object that implemented __str__, for instance when setting a treemodel column * this restores that code while still keeping unicode and python 3 compatability gobject/pygtype.c | 28 +++++++++++++++++++--------- 1 files changed, 19 insertions(+), 9 deletions(-) commit cd38572b9781502d3228e74c017cb7cc39a07b3d Author: Martin Pitt Date: Tue Mar 22 15:04:01 2011 +0100 Fix GSchema tests for separate build tree When using a separate build tree, the compiled GSettings schema will be in the build tree, but as the test scripts are only in the source tree they won't find the compiled schema. Pass the build dir as environment variable and prefer it over test_overrides.py's directory. tests/Makefile.am | 3 ++- tests/test_overrides.py | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) commit be81ea00d6cd92a5ae77c5bb301b6f6baeb6d89a Author: Martin Pitt Date: Tue Mar 22 14:02:46 2011 +0100 GIO tests: Fix remaining test case for separate build tree tests/test_gio.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 178df3e438835bec9b40dea243867784dee35815 Author: Martin Pitt Date: Tue Mar 22 13:21:27 2011 +0100 GIO tests: Fix for separate build tree When using a separate build tree, "test_gio.py" is not in the current working dir (which is the build tree), but in the srcdir. Use __file__ instead. tests/test_gio.py | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) commit 27dcb9b1963be0c0d18e19a0b108a4a64d5e048b Author: John (J5) Palmieri Date: Mon Mar 21 12:42:36 2011 -0400 prep for 2.28.1 release NEWS | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) commit 072d45cbfa7b360a0e616c4c56ba75d4dc08e7df Author: John Stowers Date: Sun Mar 6 23:41:30 2011 +1300 pygi-convert.sh remove gobject tests, GObject works now https://bugzilla.gnome.org/show_bug.cgi?id=644347 pygi-convert.sh | 28 ---------------------------- 1 files changed, 0 insertions(+), 28 deletions(-) commit 205fee1622e461c0bcbe50e8befe30f01aac81eb Author: John Stowers Date: Sun Mar 6 23:41:01 2011 +1300 pygi-convert.sh add GObject.xxx and webkit https://bugzilla.gnome.org/show_bug.cgi?id=644347 pygi-convert.sh | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) commit f5ee2924af489c17b64e56be5d2bd1c39d1293d1 Author: John (J5) Palmieri Date: Wed Mar 16 17:34:18 2011 -0400 [gi] marshal raw closures * before we were able to marshal python callables into methods that took GClosures but we had no way to take a GClosure returned from one method and pass it to another - this enables that usecase https://bugzilla.gnome.org/show_bug.cgi?id=644757 gi/pygi-argument.c | 15 ++++++++++----- tests/test_gi.py | 4 ++++ 2 files changed, 14 insertions(+), 5 deletions(-) commit ac11dc70b34fe077be18f7e605c9f3cce03ad3fa Author: Martin Pitt Date: Mon Mar 21 13:25:12 2011 +0100 Revert "Deduce PYTHON_LIBS in addition to PYTHON_INCLUDES" This reverts commit fc7d7f7f153d57ff3866b7bfd5e6479d702cc4d9. This introduces additional libpython dependencies, which breaks distributions which support multiple Python versions, and also causes the python interpreter to be in memory twice in some cases. https://bugzilla.gnome.org/show_bug.cgi?id=620215 gi/Makefile.am | 4 +--- gio/Makefile.am | 2 +- glib/Makefile.am | 2 +- m4/python.m4 | 7 ++----- tests/Makefile.am | 2 +- 5 files changed, 6 insertions(+), 11 deletions(-) commit aed7582de1c0623042601c8038a7631fa41d087d Author: Dieter Verfaillie Date: Fri Mar 18 17:06:08 2011 +0100 setup.py: fix user_access_control option setup.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 6f0d33101a2451854f216291813951349d5ac471 Author: John (J5) Palmieri Date: Wed Mar 16 15:20:43 2011 -0400 [gi-overrides] fix marshalling pygobjects in treemodels * PyGObjects wern't being marshalled correctly as python objects when a treemodel column was set to take pyobjects * Fix this by explicetly marshalling all PyObjects as boxed gvalue types in the overrides gi/overrides/Gtk.py | 9 +++++---- tests/test_overrides.py | 34 ++++++++++++++++++++++++++-------- 2 files changed, 31 insertions(+), 12 deletions(-) commit adb6f0320bed9a00a96c99424d4982199dc85af2 Author: Martin Pitt Date: Wed Mar 16 10:22:35 2011 +0100 [gi] Respect the MessageType for Gtk.MessageDialog Don't just ignore the type argument, actually pass it on. Thanks to Tualatrix Chou for spotting this! gi/overrides/Gtk.py | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 115c4750f071270b648218c9678931a65a4b3e3d Author: Martin Pitt Date: Tue Mar 15 10:22:39 2011 +0100 [gi] Do not require signature for D-BUS methods without arguments Calling methods on DBusProxy objects usually requires specifying the signature as first argument. However, if the D-BUS method does not take any arguments, specifying the empty '()' signature does not give any additional information, so allow the caller to just call the proxy method without any arguments. Also ensure that passing a non-string signature raises a comprehensible exception, instead of crashing deep in the GVariant leaf constructor. https://bugzilla.gnome.org/show_bug.cgi?id=644260 gi/overrides/Gio.py | 16 +++++++++++++++- tests/test_gdbus.py | 13 +++++++++++++ 2 files changed, 28 insertions(+), 1 deletions(-) commit 0df9e153812e1e5077bb906449e211ecb0af8736 Author: John (J5) Palmieri Date: Fri Mar 11 14:09:02 2011 -0500 [gi-demos] add pickers demo demos/gtk-demo/demos/pickers.py | 74 +++++++++++++++++++++++++++++++++++++++ 1 files changed, 74 insertions(+), 0 deletions(-) commit 419bfdd44b566ffb88f71165c00728872987dc5e Author: John (J5) Palmieri Date: Thu Mar 10 18:12:50 2011 -0500 [gi-demos] add menu demo demos/gtk-demo/demos/menus.py | 122 +++++++++++++++++++++++++++++++++++++++++ 1 files changed, 122 insertions(+), 0 deletions(-) commit 0877670e184a591866cbf3ab14284fcb217b540b Author: John Stowers Date: Sun Mar 6 23:05:33 2011 +1300 [gi-overrides] TreeViewColumn.set_cell_data_func func_data can be None https://bugzilla.gnome.org/show_bug.cgi?id=644343 gi/overrides/Gtk.py | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit 1f69c520d95fec30094fac47cb0efa31c79da81c Author: John Stowers Date: Sun Mar 6 17:48:04 2011 +1300 [gi-demos] dont try and run demos that represent directories demos/gtk-demo/gtk-demo.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit f06ad511725b28d821532acae45a25d0a186fc9f Author: John (J5) Palmieri Date: Wed Mar 9 13:02:50 2011 -0500 [gi-overrides] fix exception block so it works in Python 2.5 gi/overrides/Gio.py | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) commit a784350b6e76c6c66fb2856dd597238f4ac992e9 Author: John (J5) Palmieri Date: Tue Mar 8 13:25:57 2011 -0500 post release version bump configure.ac | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit aa745352bb99862c360dc56e2fececc4b2968cbc Author: John (J5) Palmieri Date: Tue Mar 8 13:20:31 2011 -0500 prep 2.28.0 release NEWS | 25 +++++++++++++++++++++++++ configure.ac | 4 ++-- 2 files changed, 27 insertions(+), 2 deletions(-) commit d3bafc0a8bacf99e22b18c978012ab719e70954e Author: John (J5) Palmieri Date: Mon Mar 7 18:09:18 2011 -0500 [gi-demos] some python 3 compat fixes demos/gtk-demo/demos/Icon View/iconviewbasics.py | 6 ++++++ demos/gtk-demo/demos/Tree View/liststore.py | 2 +- demos/gtk-demo/demos/rotatedtext.py | 4 ++-- demos/gtk-demo/gtk-demo.py | 4 ++-- 4 files changed, 11 insertions(+), 5 deletions(-) commit eaafff23d397852b08384b4e15d68e3888e99b48 Author: John (J5) Palmieri Date: Mon Mar 7 18:08:40 2011 -0500 [gi-demos] catch the correct error class demos/gtk-demo/demos/images.py | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-) commit b113540b452638601945f63297e68b7564c3d4df Author: Steve Frécinaux Date: Mon Mar 7 01:58:36 2011 +0100 Try not to sink objects returned by C functions. When creating a wrapper around an object to call a python function, we try to avoid calling pygobject_sink() when the object was not created by pygobject or the static bindings because otherwise we can end up leaking one reference for GInitiallyUnowned subclasses if the object was already owned by someone else. https://bugzilla.gnome.org/show_bug.cgi?id=644067 gobject/pygobject-private.h | 1 + gobject/pygobject.c | 7 +++++++ gobject/pygtype.c | 6 +++--- 3 files changed, 11 insertions(+), 3 deletions(-) commit 7bece91e83e3c72a7bd04d2096dcf9b31aa9d366 Author: Steve Frécinaux Date: Sun Mar 6 21:18:36 2011 +0100 Do not leak python references when using the gobject.property() helper. Since this helper was storing plain references in a long-lived dict, the refcount for the instances would never drop to zero, and so they would never get finalized. https://bugzilla.gnome.org/show_bug.cgi?id=644039 gobject/propertyhelper.py | 5 ++--- tests/test_properties.py | 23 +++++++++++++++++++++++ 2 files changed, 25 insertions(+), 3 deletions(-) commit 030695cb4306d915044aea4fae7c7122ccde31b4 Author: John (J5) Palmieri Date: Mon Mar 7 11:13:12 2011 -0500 [gi] fix try except blocks so they work in Python 2.5 * use etype, e = sys.exc_info[:2] to extract error details instead of except Exception as e or except Exception, e tests/test_gdbus.py | 27 ++++++++++++++++++++------- 1 files changed, 20 insertions(+), 7 deletions(-) commit 7e6d833c7f74031b010b45b635214cde5d85f7ae Author: John (J5) Palmieri Date: Fri Mar 4 12:25:49 2011 -0500 handle uchar as bytes, not strings in python 3 * This worked in Python2 because bytes and strings are equivilant and the macro PYGLIB_PyString_FromStringAndSize evaluated to a PyString * In Python 3 PYGLIB_PyString_FromStringAndSize evaluates to a PyUnicode * PYGLIB_PyBytes_FromStringAndSize evaluates to a PyString in Python 2 and a PyBytes object in Python 3 gobject/pygtype.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit aae4ce5d9e9b7747bf5847071a72a6cdd1371a3e Author: John (J5) Palmieri Date: Fri Mar 4 12:24:35 2011 -0500 [gi-overrides] handle unichar gvalues when setting treemodels gi/overrides/Gtk.py | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) commit 0d65223992abec46eee7b2b3c76f68da67de4905 Author: John (J5) Palmieri Date: Fri Mar 4 11:43:51 2011 -0500 [gi-overrides] special case python 2 keywords that crept in gi/overrides/Gtk.py | 6 +++++- tests/test_overrides.py | 8 ++++---- 2 files changed, 9 insertions(+), 5 deletions(-) commit 094b355a785fbe7ebc776cbbd059e6a3d9241ce2 Author: John (J5) Palmieri Date: Fri Mar 4 11:10:16 2011 -0500 check for the py3 _thread module in configure.ac if thread is not found configure.ac | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) commit b0d537c58e6997b546a9a367860abb3b93ce3440 Author: John (J5) Palmieri Date: Fri Mar 4 00:39:23 2011 -0500 [gi-demos] add iconview demo demos/gtk-demo/demos/Icon View/iconviewbasics.py | 212 ++++++++++++++++++++++ 1 files changed, 212 insertions(+), 0 deletions(-) commit e5aa7268c2a0fc285d60b30e135fd79d039b9ae5 Author: John (J5) Palmieri Date: Thu Mar 3 18:39:16 2011 -0500 [gi] wrap the keyword argument in a dict so we don't break Python 2.5 * python < 2.6 does not allow sending in keyword litterals after sending in *args. You can only send in **kwds. gi/types.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 79d03b40b2395874556860e7e39e0c607b6a676a Author: John (J5) Palmieri Date: Thu Mar 3 18:30:40 2011 -0500 [gi-demos] add the combobox with string ids section to the demos demos/gtk-demo/demos/combobox.py | 49 +++++++++++++++++++++++++++++++++++++- 1 files changed, 48 insertions(+), 1 deletions(-) commit 1b4ac8bef90ed1d3d51d45dafa61bfd70c6f9eb7 Author: John (J5) Palmieri Date: Thu Mar 3 16:47:51 2011 -0500 [gi-overrides] add an override for Gdk.RGBA gi/overrides/Gdk.py | 18 ++++++++++++++++++ tests/test_overrides.py | 10 ++++++++++ 2 files changed, 28 insertions(+), 0 deletions(-) commit c1c491c8cb4684a10404fee59b2706bec6b8606b Author: John (J5) Palmieri Date: Thu Mar 3 16:10:17 2011 -0500 [gi-demos] fix up search-entry to reflect annotations fixed in Gtk+ master demos/gtk-demo/demos/Entry/search_entry.py | 23 +++++++++-------------- 1 files changed, 9 insertions(+), 14 deletions(-) commit 9687fbcf75582986e95188c5b2a24d0fe6b855db Author: John (J5) Palmieri Date: Wed Mar 2 18:13:43 2011 -0500 [gi-demos] add search entry demo demos/gtk-demo/demos/Entry/search_entry.py | 257 ++++++++++++++++++++++++++++ 1 files changed, 257 insertions(+), 0 deletions(-) commit 28fbd6a11bda726fecfd7322f4acf41d06c54ec3 Author: John (J5) Palmieri Date: Wed Mar 2 15:37:27 2011 -0500 [gi] wrap map in a list for Python 3 compat gi/types.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit d71224aa5b329cbb7116d35b8f98027fc27e630d Author: John (J5) Palmieri Date: Tue Mar 1 14:52:00 2011 -0500 [gi-demos] fix up the validation combobox demos/gtk-demo/demos/combobox.py | 21 +++++++++++++++------ 1 files changed, 15 insertions(+), 6 deletions(-) commit d7d2f9c185773b35a6b89379be9bd96d04be79fb Author: John (J5) Palmieri Date: Tue Mar 1 12:31:35 2011 -0500 add overridesdir variable in the .pc file for 3rd party overrides pygobject-2.0.pc.in | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit c2cfdfa6c08b9da6bff9fc9d479e441a83cbf60a Author: John (J5) Palmieri Date: Tue Mar 1 12:19:28 2011 -0500 [gi] remove unref for closures since they are floating objects that get sunk * right now we trust that the containers we send the closures into will sink them * we should research this a bit more to see if there is a better way to handle floating closures once we are free to break static binding ABI * for now this is the least invasive of all the options * don't assert on transfer != GI_TRANSFER_NONE since the behavior for closures is always the same (and should actually be GI_TRANSFER_FULL) gi/pygi-argument.c | 6 ------ tests/test_overrides.py | 8 ++++++++ 2 files changed, 8 insertions(+), 6 deletions(-) commit e016486cbb24f696ebfc0cf1f457ec4e37a123cb Author: Dieter Verfaillie Date: Fri Feb 11 17:14:11 2011 +0100 setup.py: Set bdist_wininst user-access-control property setup.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 2923f26c7850d12ece67b3ef96054721d38f888f Author: Martin Pitt Date: Wed Mar 2 16:29:00 2011 +0100 Fix uninitialized variable in gi.require_version() gi/__init__.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit aaaa00bb4027432503efee88622d9289319b1983 Author: Martin Pitt Date: Tue Mar 1 23:26:07 2011 +0100 Run tests with LC_MESSAGES="C" Some tests, such as tests/test_gdbus.py check parts of error messages or other visible strings. Ensure that these do not get translated in the test suite. tests/runtests.py | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit 3aa089668f9ff3de86d2ca28e72c206c16c3403a Author: John (J5) Palmieri Date: Mon Feb 28 18:21:43 2011 -0500 [gi-overrides] override Gtk.stock_lookup to not return success demos/gtk-demo/demos/combobox.py | 2 +- gi/overrides/Gtk.py | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletions(-) commit 9614680269a267f8cf32a2d5534c50fb76ec48ec Author: John (J5) Palmieri Date: Mon Feb 28 14:23:04 2011 -0500 post release bump configure.ac | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 093334ee29b5846ff57b4e9f74380efc9ed591e7 Author: John (J5) Palmieri Date: Mon Feb 28 14:16:00 2011 -0500 prep for 2.27.91 release NEWS | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 50 insertions(+), 0 deletions(-) commit 4b49a4f6123f0bbd5a36eba65b00142e3df7e595 Author: John (J5) Palmieri Date: Mon Feb 28 14:08:05 2011 -0500 [gi-tests] use Gdk.test_simulate_button instead of emitting event ourselves * this function is available specifically so we can test events so use this instead of creating our own button press event tests/test_overrides.py | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) commit baa9865e6ff8b4eee4b16235b8dcc5dc48d2634d Author: Laszlo Pandy Date: Thu Feb 24 19:30:32 2011 +0100 [gi-tests] tests for EventButton override. * John (J5) Palmieri - fixed up original patch so that we actually emit the event instead of just creating a Gdk.ButtonEvent object https://bugzilla.gnome.org/show_bug.cgi?id=642554 tests/test_overrides.py | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) commit 6366307ba020a40f6dfa22e64fd6345b118fd2e5 Author: Tomeu Vizoso Date: Wed Feb 16 09:44:12 2011 +0100 Skip interfaces when checking for conflicts in the MRO https://bugzilla.gnome.org/show_bug.cgi?id=642437 gi/types.py | 40 ++++++++++++++++++++++++++++++++++++++++ gobject/gobjectmodule.c | 9 +++++++-- tests/test_gi.py | 16 ++++++++++++++++ 3 files changed, 63 insertions(+), 2 deletions(-) commit 14c787541966be8f497905d33d554343dabf8b73 Author: John (J5) Palmieri Date: Wed Feb 23 18:43:27 2011 -0500 [gi-overrides] Add event methods to all event union members https://bugzilla.gnome.org/show_bug.cgi?id=642554 gi/overrides/Gdk.py | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 70 insertions(+), 0 deletions(-) commit 7f013383063c1d1e5a95cf4c056ff152d4aa2645 Author: John (J5) Palmieri Date: Wed Feb 23 14:14:16 2011 -0500 [gi] check to see if object is a member of a union when validating paramaters * union members are not subclasses of the union they belong to so if an inteface requires you pass a union but you pass one of its members there will be a type error * this patch checks to see if the type you are passing is a member of the union and passes the checks if it is * this works in python 3 but in python 2 methods do their own isinstance check on the instance parameter (e.g. self) so we need to figure out how to override that for union methods (e.g. Gdk.Event.get_state) https://bugzilla.gnome.org/show_bug.cgi?id=642554 gi/pygi-argument.c | 38 ++++++++++++++++++++++++++++++++++++++ 1 files changed, 38 insertions(+), 0 deletions(-) commit 284e775b6caa86ef6465d17c87ec77376e66931c Author: Laszlo Pandy Date: Thu Feb 24 18:46:15 2011 +0100 [gi] Remove DyanmicModule.load() to _load() to prevent overriding GI attrs. gi/importer.py | 2 +- gi/module.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 6d6d4fcf4678b512558c2c0e44c0c2e235c810f4 Author: Laszlo Pandy Date: Wed Feb 23 12:05:03 2011 +0100 Test case with John's fix for crash with C arrays and a GError is set. I have added a test case, and made a few fixes to John's patch, but the solution is the same his. Workaround a bug when freeing C array types * This is a hack and there is really no way around it without ripping out the current array handling code which spans between pygi-invoke.c and pygi-argument.c and completely rewriting it. * The is no time before our stable release * This patch trades a segfault for a leak in the very unusual case where an error occures inside an interface that takes one or more C arrays. Since we wrap C arrays in GArrays internally but have to unwrap them to send them to the introspected C function, there is a period of time where an error can occure with the C array in an unknown state (some being true C arrays and others still wrapped in a GArray) * This patch adds a c_arrays_are_wrapped state to signal that it is safe to free them. However since c_arrays_are_wrapped can only track arrays as a group, not individually, if it is set to FALSE we can not assume that every array is a pure C array, so instead we will simply leak them to avoid incorrectly freeing one and causing a segfault. * This issue is fixed in the invoke rewrite branch as it treats C arrays and GArrays separately, however that branch is not yet ready to be merged and won't be until the next release. https://bugzilla.gnome.org/show_bug.cgi?id=642708 gi/pygi-invoke.c | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++---- tests/test_gi.py | 9 +++++++++ 2 files changed, 59 insertions(+), 4 deletions(-) commit 3534c1d4babefd4ee63e46119b279126058b7a71 Author: John (J5) Palmieri Date: Wed Feb 23 15:11:59 2011 -0500 [gi-overrides] fix setting rows in treeview to accept None as a value * as done in PyGTK None indicates the column should not be set gi/overrides/Gtk.py | 3 +++ tests/test_overrides.py | 18 +++++++++++++----- 2 files changed, 16 insertions(+), 5 deletions(-) commit ecbfaf60914a87f29ff0529614db9b6afca94c82 Author: Laszlo Pandy Date: Wed Feb 23 14:23:19 2011 +0100 [gi] Add value_name for enum and flags from introspection "c:identifier" (if attr is available). gi/gimodule.c | 22 ++++++++++++++++++---- tests/test_gi.py | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+), 4 deletions(-) commit e5ae620ad772f62cb14ab7c049ba0ce00cc501f2 Author: Laszlo Pandy Date: Tue Feb 22 21:37:33 2011 +0100 Don't force loading of DynamicModule until set in sys.modules This fixes Tomeu's previous commit, which removed lazy loading. Forcing the loading of a module before it is installed in sys.modules prevents some overrides from being registered (namely Gtk.main_quit). https://bugzilla.gnome.org/show_bug.cgi?id=642305 gi/importer.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 992c0c1096c77bc299a40a34ec30a2ac0c562ed4 Author: Laszlo Pandy Date: Wed Feb 23 11:40:55 2011 +0100 Fix flags with multiple names for the same value. Flags constructs a dict __flags_values__ and uses it to cache instances. However some flags in Glib such as G_IO_FLAG_MASK and G_IO_FLAG_GET_MASK are aliases for the same int value, and will override each other's place in the dictionary. The dict length check is not necessary. It only reduces the number of duplicate instances we keep, because if an instance is not found in the dict, a new one is created anyway. gobject/pygflags.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 8bf3f6ed075994eb3e29950670395bcf1b9dc2a0 Author: John (J5) Palmieri Date: Tue Feb 22 15:07:40 2011 -0500 [gi-demos] add liststore demo demos/gtk-demo/demos/Tree View/liststore.py | 205 +++++++++++++++++++++++++++ 1 files changed, 205 insertions(+), 0 deletions(-) commit 788fc96771046fc64cede392e748b2d1b6b3aa1c Author: John (J5) Palmieri Date: Tue Feb 22 14:35:44 2011 -0500 [gi-demos] run through the demos and remove the FIXMEs that have been fixed demos/gtk-demo/demos/appwindow.py | 18 ++++++------------ demos/gtk-demo/demos/assistant.py | 3 --- demos/gtk-demo/demos/builder.py | 3 --- demos/gtk-demo/demos/button_box.py | 10 +++------- demos/gtk-demo/demos/clipboard.py | 8 ++------ demos/gtk-demo/demos/colorselector.py | 2 -- demos/gtk-demo/demos/combobox.py | 4 +--- demos/gtk-demo/demos/drawingarea.py | 3 --- 8 files changed, 12 insertions(+), 39 deletions(-) commit adf7aec853878681b450c3ef1f89bfe9ba85fec1 Author: Tomeu Vizoso Date: Wed Feb 16 11:53:18 2011 +0100 Load typelibs at import time, add gi.require_version() also adds Repository.get_loaded_namespaces() https://bugzilla.gnome.org/show_bug.cgi?id=642305 gi/__init__.py | 29 ++++++++++++++++++++++++++++- gi/importer.py | 1 + gi/module.py | 21 ++++----------------- gi/pygi-repository.c | 23 +++++++++++++++++++++++ 4 files changed, 56 insertions(+), 18 deletions(-) commit 6fe7783b96366f380f9168909932a87e35d994b3 Author: John (J5) Palmieri Date: Mon Feb 21 17:20:57 2011 -0500 use GValue support to marshal GtkTreeModel values correctly * needs patch from https://bugzilla.gnome.org/show_bug.cgi?id=642914 https://bugzilla.gnome.org/show_bug.cgi?id=642921 gi/overrides/Gtk.py | 37 ++++++++++++++++++-- tests/test_overrides.py | 87 ++++++++++++++++++++++++++++++++++++++++------- 2 files changed, 107 insertions(+), 17 deletions(-) commit bc4a570bcc0a02029d746fbbcfdf4cc14c37f2ad Author: John (J5) Palmieri Date: Mon Feb 21 16:14:20 2011 -0500 [gi] pass raw GValues instead of trying to marshal them * Right now GValues are transparent to the user but this leave us no way to describe fundimental types other than those supported directly by python (e.g. int, str, etc) * If an interface is expecting a uint or other GValue type a user can now use the raw GValue interfaces and expect paramaters that take GValues to marshal them correctly e.g.: value = GObject.Value() value.int(GObject.TYPE_UINT) value.set_uint(1234) * The objective here is to not for users to use this API but for overrides to be able to utilize them. For instance in the TreeModel API we can get the expected type for a column and them create a GValue with the correct type so that he underlying python object is marshalled correctly. https://bugzilla.gnome.org/show_bug.cgi?id=642914 gi/pygi-argument.c | 24 ++++++++++++++++++------ tests/test_gi.py | 9 ++++++++- 2 files changed, 26 insertions(+), 7 deletions(-) commit 428fc90eb12f26ceb7c868879ad05788890d32a3 Author: John (J5) Palmieri Date: Sat Feb 19 19:42:41 2011 -0500 [gi-demos] add icon view edit and drag-and-drop demo demos/gtk-demo/demos/Icon View/iconviewedit.py | 101 ++++++++++++++++++++++++ 1 files changed, 101 insertions(+), 0 deletions(-) commit eb0e179bff167303db1c20412f4bc9c8baa94582 Author: Laszlo Pandy Date: Sat Feb 19 23:11:25 2011 +0100 [gi] Register GType for non-GType enums and flags at runtime. Note: rebuild of gobject-introspection is required for new tests. Previously non-GType enums used a separate type implemented in Python, and non-GType flags had no implementation at all. This removes the separate type for enums, and registers a new GType at runtime if there isn't one. This allows non-GType enums and flags to use the same Python type as GType enums and flags. This removes duplication of code, and make both kinds behave identically. https://bugzilla.gnome.org/show_bug.cgi?id=642607 gi/gimodule.c | 117 ++++++++++++++++++++++++++++++++++++++++++++++++++++ gi/module.py | 24 +++++++---- gi/pygi-info.c | 15 +++++++ gi/types.py | 16 ------- gobject/pygflags.c | 13 ++++-- tests/test_gi.py | 35 +++++++++++++++ 6 files changed, 191 insertions(+), 29 deletions(-) commit d5e67257361609036d2bbfa47ea85a6c759b332a Author: John (J5) Palmieri Date: Sat Feb 19 17:26:42 2011 -0500 [gi-demos] add info bars demo demos/gtk-demo/demos/infobars.py | 99 ++++++++++++++++++++++++++++++++++++++ 1 files changed, 99 insertions(+), 0 deletions(-) commit 372f480b078d1befb30532a0ebe0ad9c90e78df0 Author: Martin Pitt Date: Sat Feb 19 15:44:52 2011 +0100 tests/runtests.py: Add missing "import sys" master already has this. tests/runtests.py | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit c1b35fc49680ad25e996de57e3e020bd43d9186c Author: Martin Pitt Date: Tue Feb 8 15:38:21 2011 +0100 [gi] Add Pythonic gdbus method invocation Provide a wrapper for Gio.DBusProxy for calling D-Bus methods like on a normal Python object. This will handle the Python object <-> GVariant conversion, and optional keyword arguments for flags, timeout, and a result handler for asynchronous calls. Require specifying the input argument signature as the first argument of each method call. This ensures that the types of e. g. integers are always correct, and avoids having to do expensive D-Bus introspection for each call. https://bugzilla.gnome.org/show_bug.cgi?id=640181 gi/overrides/Gio.py | 99 +++++++++++++++++++++++++++++++++++++++++++++++++ tests/test_gdbus.py | 102 ++++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 199 insertions(+), 2 deletions(-) commit 2737e1c2c506cd324a0aa2abfdfeb3ad4f08e678 Author: Laszlo Pandy Date: Fri Feb 18 22:48:59 2011 +0100 Skip GError out parameters in Python closure. Python code should have never have to explicitely return a GError. Once we are able to marshal exceptions the Python code should throw an exception instead. Until then, set GError to NULL, and don't complain if a Python function doesn't return an arg for it. https://bugzilla.gnome.org/show_bug.cgi?id=642715 gi/pygi-closure.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) commit 93677502c12a3ee123dd565bf1b404ef47ec1c47 Author: John (J5) Palmieri Date: Thu Feb 17 19:46:49 2011 -0500 [gi-demos] added rotate text demo * needs some Pango Attr fixes to be 100% done, See FIXME demos/gtk-demo/demos/rotatedtext.py | 196 +++++++++++++++++++++++++++++++++++ 1 files changed, 196 insertions(+), 0 deletions(-) commit 8495ab57f49fb507a8004a9cf967d6fe91bb4ef0 Author: John (J5) Palmieri Date: Thu Feb 17 17:25:00 2011 -0500 [gi-demos] add images demo * needs annotation fix from GdkPixbuf for ImageLoader to work demos/gtk-demo/demos/images.py | 311 ++++++++++++++++++++++++++++++++++++++++ 1 files changed, 311 insertions(+), 0 deletions(-) commit 60b9dd8d021e550089f44dc489ffeb77af6976ee Author: John (J5) Palmieri Date: Thu Feb 17 14:48:24 2011 -0500 [gi-demos] add pixbuf demo demos/gtk-demo/demos/pixbuf.py | 183 ++++++++++++++++++++++++++++++++++++++++ 1 files changed, 183 insertions(+), 0 deletions(-) commit f57153dd6786858ff2ab79c28227cd021755d693 Author: John (J5) Palmieri Date: Thu Feb 17 14:47:12 2011 -0500 [gi-demos] remove fixmes from print demo, fixed in pango demos/gtk-demo/demos/printing.py | 10 +++------- 1 files changed, 3 insertions(+), 7 deletions(-) commit b8345be15c7f65e97f6bc148ad6c35ff80ff3870 Author: John (J5) Palmieri Date: Wed Feb 16 19:39:30 2011 -0500 [gi-demos] add printing demo * needs some annotations for pango before it is 100% useful demos/gtk-demo/demos/printing.py | 177 ++++++++++++++++++++++++++++++++++++++ 1 files changed, 177 insertions(+), 0 deletions(-) commit 123877715145038a5877b8c538a48a1285f1ed54 Author: John (J5) Palmieri Date: Wed Feb 16 17:52:38 2011 -0500 [gi-overrides] add cursor overrides https://bugzilla.gnome.org/show_bug.cgi?id=635947 gi/overrides/Gdk.py | 41 +++++++++++++++++++++++++++++++++++++++++ tests/test_overrides.py | 23 +++++++++++++++++++++++ 2 files changed, 64 insertions(+), 0 deletions(-) commit 68d72e015997da8d5732527c7ab96dd8c61fa664 Author: John (J5) Palmieri Date: Wed Feb 16 16:18:24 2011 -0500 [gi-demos] add the links demo demos/gtk-demo/demos/links.py | 74 +++++++++++++++++++++++++++++++++++++++++ 1 files changed, 74 insertions(+), 0 deletions(-) commit 00505a9a5445b85a091650a777a47f632ddc9d6d Author: John (J5) Palmieri Date: Wed Feb 16 15:48:40 2011 -0500 [gi-demos] add expander demo demos/gtk-demo/demos/expander.py | 60 ++++++++++++++++++++++++++++++++++++++ 1 files changed, 60 insertions(+), 0 deletions(-) commit ed8710c7aa05cc0c919366536c94bf43955f1b71 Author: John (J5) Palmieri Date: Wed Feb 16 15:14:35 2011 -0500 [gi-overrides] use pop instead of del and add extra tests for Gtk.Table kwargs gi/overrides/Gtk.py | 6 ++---- tests/test_overrides.py | 8 ++++++++ 2 files changed, 10 insertions(+), 4 deletions(-) commit 888675f85c895a60d4432b992961ec3067da6e20 Author: Laszlo Pandy Date: Tue Feb 15 20:07:42 2011 +0100 [tests] Separate processes for GI and static binding tests. Importing and using both static gobject bindings and introspection GObject bindings in the same process can cause conflicts with types which otherwise wouldn't be there. This patch changes "make check" to call runtests.py twice -- once for each set of tests. In the case of a test failure, runtests.py now sets the exit code so that make does not continue. Otherwise you might miss the failures from the first batch of tests in the scrollback. tests/Makefile.am | 29 ++++++++++++----------------- tests/runtests.py | 4 +++- 2 files changed, 15 insertions(+), 18 deletions(-) commit 71b0dd93d524afce9f4a4b0b393c8a16a1f70e2f Author: Laszlo Pandy Date: Tue Feb 15 16:26:24 2011 +0100 [GI] Remove implicit loading of gi module preserve the code path for static bindings. Previously type lookups (as well as property accesses and signal connects would trigger an import of the gi module). Now we make those paths fail, and fallback to the old static binding code paths *unless* the gi module is already in sys.modules. So if Python code calls: from gi.repository import Gtk or even just: import gi then everything will work just like it did without this patch. If gi is not explicitly imported, the code skips the introspection code and acts like the old static bindings did. https://bugzilla.gnome.org/show_bug.cgi?id=642387 gi/pygi.h | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) commit 97e78181813f15f693e650df5a8901bd2fe71541 Author: John (J5) Palmieri Date: Tue Feb 15 14:47:10 2011 -0500 [gi-demos] add dialogs demo demos/gtk-demo/demos/dialogs.py | 153 +++++++++++++++++++++++++++++++++++++++ 1 files changed, 153 insertions(+), 0 deletions(-) commit a23a48edafb9d08fec5411b828d1e0c6763e84af Author: John (J5) Palmieri Date: Tue Feb 15 14:46:41 2011 -0500 [gi-overrides] fix typo in GtkTable constructor gi/overrides/Gtk.py | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) commit bcccff3b2ad9c8054a4d5462c62cde566587eba6 Author: John (J5) Palmieri Date: Tue Feb 15 13:26:38 2011 -0500 [gi-demos] keep popup menu from destroying itself by holding a ref in app class demos/gtk-demo/demos/clipboard.py | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) commit 9dc0979ba7d35b6ff9bb219a21926c2fd88451c7 Author: John (J5) Palmieri Date: Tue Feb 15 13:25:13 2011 -0500 [gi-overrides] add a Gtk.Menu override for the popup method gi/overrides/Gtk.py | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) commit 317278a3ddf15f1f9da53051295a0b533b1b1a11 Author: John (J5) Palmieri Date: Tue Feb 15 13:24:33 2011 -0500 [gi-demos] fix the about dialog in appwindow demo demos/gtk-demo/demos/appwindow.py | 22 +++++++++------------- 1 files changed, 9 insertions(+), 13 deletions(-) commit cb2d2aad023789991b20036e22cae5ad3eee9b36 Author: John (J5) Palmieri Date: Tue Feb 15 11:21:13 2011 -0500 [gi-demos] fix clipboard demo so DnD works * menu popups don't work because the API takes a callback without a destroy notify demos/gtk-demo/demos/clipboard.py | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) commit 5434b7aac323170ea9469afbda520b801462c246 Author: John (J5) Palmieri Date: Tue Feb 15 10:18:53 2011 -0500 [gi-demos] fix clipboard demo to reflect new API demos/gtk-demo/demos/clipboard.py | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit b6c97de9680f3d5d629132415c1f7a9c42e558f8 Author: John (J5) Palmieri Date: Mon Feb 14 18:17:20 2011 -0500 [gi-demo] Fix color dialog demo to run with new draw, style and color apis demos/gtk-demo/demos/colorselector.py | 44 ++++++++++++-------------------- 1 files changed, 17 insertions(+), 27 deletions(-) commit 7147bd635fb03439a5f9edbce56c5558d092428c Author: John (J5) Palmieri Date: Mon Feb 14 17:58:25 2011 -0500 [gi-demos] fix most of the combobox app * Still having some issues with filtering the ComboBoxText widget demos/gtk-demo/demos/combobox.py | 17 ++++++++--------- 1 files changed, 8 insertions(+), 9 deletions(-) commit a64b8fe89492ae47172979f1900686455cd1f9a8 Author: Laszlo Pandy Date: Mon Feb 14 19:36:27 2011 +0100 Use PyGI type conversion (to fix foreign types) for signal callbacks. First attempt at patch to fix foreign types in signal callbacks. Tests are not implemented yet. https://bugzilla.gnome.org/show_bug.cgi?id=637601 gi/Makefile.am | 2 + gi/gimodule.c | 1 + gi/pygi-argument.c | 91 +++++++++++++++++ gi/pygi-argument.h | 2 + gi/pygi-private.h | 1 + gi/pygi-signal-closure.c | 245 ++++++++++++++++++++++++++++++++++++++++++++++ gi/pygi-signal-closure.h | 46 +++++++++ gi/pygi.h | 28 +++++ gobject/pygobject.c | 24 ++++- 9 files changed, 436 insertions(+), 4 deletions(-) commit 36ddad6af4a579c070171fd0522d7ffd93d5d73e Author: John (J5) Palmieri Date: Mon Feb 14 16:47:03 2011 -0500 [gi-demos] fix drawingarea app to use the new draw api demos/gtk-demo/demos/drawingarea.py | 144 ++++++++++++----------------------- 1 files changed, 50 insertions(+), 94 deletions(-) commit ddde83ebd4dbb179aa5388057a14faf32ece26ae Author: John (J5) Palmieri Date: Mon Feb 14 16:43:35 2011 -0500 [gi-overrides] for Gtk 3 alias Gdk.Rectangle to cairo.RectangleInt * note this is the introspected gobject-cairo boxed type not the static cairo bindings * we alias this so people do not get confused gi/overrides/Gdk.py | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) commit 8617d0e2a63771eba04983c7319f18638aa6d81e Author: John (J5) Palmieri Date: Mon Feb 14 15:07:11 2011 -0500 [gi-overrides] let user set the proper property names in Gtk.Table * the old override added a columns and rows parameters to the Table constuctor to be in sync with PyGtk. * The GTK properties are n_columns and n_rows * support both gi/overrides/Gtk.py | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) commit 09c0534e4ac673ffdbfb41bc0aa34353be3b88e2 Author: John (J5) Palmieri Date: Mon Feb 14 15:06:38 2011 -0500 [gi-demos] get appwindow demo working again demos/gtk-demo/demos/appwindow.py | 24 ++++-------------------- 1 files changed, 4 insertions(+), 20 deletions(-) commit 1944349cc59ddaf4fd7308ffce10b521c885c88b Author: John (J5) Palmieri Date: Mon Feb 14 15:05:44 2011 -0500 [gi-demos] fixed use of tree_iter_get demos/gtk-demo/gtk-demo.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 29efc5a31c2879cefcf31d1d9bdbab65052d3b24 Author: John (J5) Palmieri Date: Fri Feb 11 11:18:24 2011 -0500 pre-release version bump configure.ac | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 5dae6386ef74b6334daa3d0baf7c2e43d93a7e40 Author: John (J5) Palmieri Date: Fri Feb 11 11:05:04 2011 -0500 bump version and edit NEWS for release NEWS | 289 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ configure.ac | 2 +- 2 files changed, 290 insertions(+), 1 deletions(-) commit e12097a3fc006f435ae01156e55cacd7622a6e06 Author: John (J5) Palmieri Date: Thu Feb 10 16:46:08 2011 -0500 fix build to correctly use python-config autogen.sh | 3 +++ configure.ac | 6 ------ m4/python.m4 | 9 +++++---- tests/runtests.py | 1 + 4 files changed, 9 insertions(+), 10 deletions(-) commit 5ec107f805e32d4183b3c1a015d411992fc46a48 Author: Martin Pitt Date: Wed Feb 9 18:00:34 2011 +0100 Run gio tests separately when enabled As we can't load both gio and gi.repository.Gio at the same time, run the gio tests separately when gio is enabled. tests/Makefile.am | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-) commit 02ac041ba001bdda506f749e90aebc86a414d7c1 Author: Martin Pitt Date: Wed Feb 2 13:33:55 2011 +0100 Revert "Remove gio static bindings" This reverts commit bca5834fc8fa342149e0eec7b396877a2abe6d33. We still need the static gio bindings for now. https://bugzilla.gnome.org/show_bug.cgi?id=638899 Makefile.am | 2 +- configure.ac | 22 +- gio/.gitignore | 3 + gio/Makefile.am | 117 + gio/__init__.py | 40 + gio/gappinfo.override | 213 ++ gio/gapplaunchcontext.override | 99 + gio/gbufferedinputstream.override | 70 + gio/gcancellable.override | 38 + gio/gdatainputstream.override | 250 ++ gio/gdrive.override | 347 ++ gio/gfile.override | 2215 +++++++++++ gio/gfileattribute.override | 153 + gio/gfileenumerator.override | 184 + gio/gfileinfo.override | 121 + gio/gfileinputstream.override | 68 + gio/gfileiostream.override | 68 + gio/gfileoutputstream.override | 68 + gio/gicon.override | 310 ++ gio/ginputstream.override | 344 ++ gio/gio-types.defs | 807 ++++ gio/gio.defs | 7465 +++++++++++++++++++++++++++++++++++++ gio/gio.override | 409 ++ gio/giomodule.c | 208 + gio/giostream.override | 68 + gio/gmemoryinputstream.override | 91 + gio/gmemoryoutputstream.override | 45 + gio/gmount.override | 454 +++ gio/goutputstream.override | 292 ++ gio/gresolver.override | 312 ++ gio/gsocket.override | 575 +++ gio/gvolume.override | 237 ++ gio/gvolumemonitor.override | 94 + gio/pygio-utils.c | 236 ++ gio/pygio-utils.h | 49 + gio/unix-types.defs | 55 + gio/unix.defs | 475 +++ gio/unix.override | 62 + gio/unixmodule.c | 52 + tests/Makefile.am | 9 + tests/runtests-windows.py | 3 + tests/test_gcancellable.py | 15 + tests/test_gicon.py | 112 + tests/test_gio.py | 1138 ++++++ tests/test_gresolver.py | 68 + tests/test_gsocket.py | 126 + 46 files changed, 18187 insertions(+), 2 deletions(-) commit a535e4af7c38fd7917d804470e8c46da4c2a86ea Author: Steve Frécinaux Date: Wed Feb 9 17:32:03 2011 +0100 Decrease the refcount for GInitiallyUnowned constructors. This mimicks the weird legacy pygtk behaviour and makes all the tests pass despite the proper fixes having been reverted. https://bugzilla.gnome.org/show_bug.cgi?id=641525 gi/pygi-invoke.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) commit 657d113c766c5ff9c5e7285ff5309283333983e4 Author: Steve Frécinaux Date: Wed Feb 9 17:03:30 2011 +0100 Ensure the sink functions are only ran once. This mitigates in a not-so-clean way the leak experienced in pygobject for wrappers created multiple times, without breaking pygtk. https://bugzilla.gnome.org/show_bug.cgi?id=641525 gobject/pygobject.c | 23 +++++++++++++++-------- 1 files changed, 15 insertions(+), 8 deletions(-) commit d32c0ecc6cde743047054e65355cbbfbf808d5ce Author: Steve Frécinaux Date: Wed Feb 9 17:15:41 2011 +0100 Revert "Fix wrong refcount when calling introspected widget constructors" This reverts commit 7bc4122897d9d05172a2bd5b56bded87e2afaec4. https://bugzilla.gnome.org/show_bug.cgi?id=641525 gobject/pygobject.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) commit 4c9715b29f8883e23027cca10157ea96013b0dbc Author: Steve Frécinaux Date: Wed Feb 9 16:33:42 2011 +0100 Revert "Fix reference leaks for GInitiallyUnowned objects" This reverts commit f0a0b6c2eda89622de2b1e5ebb6a48103ad72a42. The test cases have been kept. https://bugzilla.gnome.org/show_bug.cgi?id=641525 gobject/gobjectmodule.c | 2 -- gobject/pygobject.c | 14 +++++++------- 2 files changed, 7 insertions(+), 9 deletions(-) commit 14c4cf8e6edae893538680964380d543bde4a14d Author: Martin Pitt Date: Wed Feb 9 11:34:59 2011 +0100 Run test suite under dbus-launch When available, run the test suite in dbus-launch, so that the GDBus tests succeed even when building this in an environment without a running session D-BUS (such as distribution package builds). tests/Makefile.am | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 0858f550e2b6f75e3f583f963f5952f5ddae4e0e Author: Martin Pitt Date: Tue Feb 8 15:46:36 2011 +0100 Fix test_gdbus.py to be Python3 friendly - TestCase.assert_() has been deprecated by assertTrue(). - Exceptions don't have a message attribute any more, use str(e) tests/test_gdbus.py | 34 +++++++++++++++------------------- 1 files changed, 15 insertions(+), 19 deletions(-) commit b7f32e4cca0cef201489b55653f96ac64a8f9ab9 Author: Martin Pitt Date: Sat Jan 29 12:20:50 2011 +0100 [gi] Provide comfortable GSettings API Make Gio.Settings behave like a dictionary, with transparent conversion from/to GVariants. Also provide a more comfortable constructor. https://bugzilla.gnome.org/show_bug.cgi?id=640838 gi/overrides/Gio.py | 54 ++++++++++++++++++++++++++++ tests/org.gnome.test.gschema.xml | 9 +++++ tests/test_overrides.py | 73 ++++++++++++++++++++++++++++++------- 3 files changed, 122 insertions(+), 14 deletions(-) commit 8dad0eaed60a9de26e9a729a48a1f6bc74be486e Author: Laszlo Pandy Date: Fri Feb 4 16:36:07 2011 +0100 Fix vfunc search bug when using GInterfaces and a do_* method. If a class inherits from a GInterface, as well as implements a do_* method (which is not in a super class), all the base interfaces will be searched for an __info__ attribute. GInterface doesn't have one, causing an error on class creation. https://bugzilla.gnome.org/show_bug.cgi?id=641493 gi/types.py | 4 +++- tests/test_gi.py | 8 ++++++++ 2 files changed, 11 insertions(+), 1 deletions(-) commit 2660be1f227be7a53092483bc9d8ead1bd1fb266 Author: Laszlo Pandy Date: Thu Feb 3 15:31:42 2011 +0100 [GI] Add tests for Gtk.Widget.drag_* methods. Previously all the drag_* methods were accessible as Gtk.drag_*. Now that the (method) attribute has been included for these methods in Gtk+, this test checks that they are included as class methods when using pygobject introspection. https://bugzilla.gnome.org/show_bug.cgi?id=639945 tests/test_overrides.py | 40 ++++++++++++++++++++++++++++++++++++++++ 1 files changed, 40 insertions(+), 0 deletions(-) commit 09acaff29dfaabc77477cffca2c7137f68991e7f Author: Ignacio Casal Quinteiro Date: Wed Feb 2 21:00:48 2011 +0100 [python 3] use the right syntaxis to raise exceptions codegen/argtypes.py | 8 ++++---- codegen/definitions.py | 14 +++++++------- gi/overrides/Gtk.py | 2 +- 3 files changed, 12 insertions(+), 12 deletions(-) commit 36094e5982d3e05d5662843b6d401f0974f5235f Author: Ignacio Casal Quinteiro Date: Wed Feb 2 20:50:12 2011 +0100 [gi] return PYGLIB_MODULE_ERROR_RETURN on error and use pygobject_init tests/testhelpermodule.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit c913c1789296310c2cf27554ce719d7f6e9c94cd Author: Ignacio Casal Quinteiro Date: Wed Feb 2 20:37:21 2011 +0100 [gi] return PYGLIB_MODULE_ERROR_RETURN on error This is to avoid some warnings when building with python 3 gi/gimodule.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit 7bc4122897d9d05172a2bd5b56bded87e2afaec4 Author: Steve Frécinaux Date: Sat Jan 29 00:16:50 2011 +0100 Fix wrong refcount when calling introspected widget constructors 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 gobject/pygobject.c | 4 +++- tests/test_everything.py | 9 ++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) commit afeaaa126f7cd6556fb855ecd0facc174c0f946c Author: Simon Schampijer Date: Wed Jan 19 16:19:46 2011 +0100 Gdk.Window: Map the standard constructor to the *new* constructor Gdk.Window had to be made abstract (see c4a36d875235e0bf1e52dbf2fa14d08bfc8bd4ec in gtk), this override allows using the standard constructor This commit adds as well a testcase. https://bugzilla.gnome.org/show_bug.cgi?id=639936 gi/overrides/Gdk.py | 6 ++++++ tests/test_overrides.py | 8 ++++++++ 2 files changed, 14 insertions(+), 0 deletions(-) commit 858669f92c9907dd70b4966d6a8521ed122225be Author: Martin Pitt Date: Mon Jan 31 17:38:52 2011 +0100 Ship tests/org.gnome.test.gschema.xml in dist tarballs tests/Makefile.am | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 69207910209ebfe450df616aeb8fa4cc2e7eccf3 Author: Martin Pitt Date: Fri Jan 28 17:14:19 2011 +0100 [gi] Add GSettings tests Ryan Lortie proposed an override for more convenient GSettings access, so let's first make sure that the canonical GLib API works. tests/Makefile.am | 7 +++++-- tests/org.gnome.test.gschema.xml | 16 ++++++++++++++++ tests/test_overrides.py | 31 +++++++++++++++++++++++++++++++ 3 files changed, 52 insertions(+), 2 deletions(-) commit 488478a83640d50baee963337fcc870fec76b784 Author: Martin Pitt Date: Fri Jan 28 07:20:26 2011 +0100 [gi] Provide GtkTextBuffer.insert_with_tags_by_name() Provide an actual insert_with_tags_by_name() instead of overloading insert_with_tags() to handle both types. This keeps the overrides consistent with the actual GTK API. gi/overrides/Gtk.py | 19 ++++++++++++++----- tests/test_overrides.py | 4 ++-- 2 files changed, 16 insertions(+), 7 deletions(-) commit dace1a553793fb7fb054b60760f02c9e5cf00b38 Author: Martin Pitt Date: Thu Jan 27 13:37:18 2011 +0100 [gi] Support tag names in GtkTextBuffer.insert_with_tags() Neither insert_with_tags() nor insert_with_tags_by_name() are introspectable due to using varargs. As both are useful, support both cases in the override. gi/overrides/Gtk.py | 5 +++++ tests/test_overrides.py | 9 +++++++++ 2 files changed, 14 insertions(+), 0 deletions(-) commit 91d34124b2a5128e93e13c7fee8693d5edc4e9bb Author: Ignacio Casal Quinteiro Date: Thu Jan 27 12:23:18 2011 +0100 Add MAINTAINERCLEANFILES This var behaves like .gitignore and allows us to skip some specific files. Makefile.am | 27 +++++++++++++++++++++++++++ 1 files changed, 27 insertions(+), 0 deletions(-) commit 8a98d26981ce68809a21c64cac4962e58c927905 Author: Ignacio Casal Quinteiro Date: Thu Jan 27 12:15:30 2011 +0100 Remove .gitignore files and use git.mk git.mk is a script maintained in pango. From time to time we must check if it was updated and update it here. .gitignore | 46 ---------- Makefile.am | 2 + codegen/.gitignore | 2 - codegen/Makefile.am | 2 + docs/.gitignore | 7 -- docs/Makefile.am | 2 + examples/Makefile.am | 2 + gi/.gitignore | 40 --------- gi/Makefile.am | 2 + gi/overrides/Makefile.am | 2 + gi/repository/Makefile.am | 2 + gi/tests/Makefile.am | 2 + git.mk | 200 +++++++++++++++++++++++++++++++++++++++++++++ glib/Makefile.am | 2 + gobject/.gitignore | 3 - gobject/Makefile.am | 2 + tests/.gitignore | 2 - tests/Makefile.am | 2 + 18 files changed, 222 insertions(+), 100 deletions(-) commit 331c42b63bc60a3b906fa21e1c0a7c1b9428f347 Author: Martin Pitt Date: Thu Jan 27 12:04:19 2011 +0100 pygi-convert.sh: Convert Pango.TabAlign.* pygi-convert.sh | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit be1a2959fa0a3d8682e0e8aef389d73dacab0689 Author: Martin Pitt Date: Thu Jan 27 12:02:39 2011 +0100 pygi-convert.sh: Drop window -> get_window() conversion It is doing more harm than good for projects which use things like self.window. pygi-convert.sh | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) commit dd7deb4b658c56857c26b1a278a3d688f2ea6a2a Author: Martin Pitt Date: Thu Jan 27 11:58:26 2011 +0100 pygi-convert.sh: Don't convert self.window assignments pygi-convert.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 975341a26772966d4afc87a88a6a566d61237fa0 Author: Steve Frécinaux Date: Fri Jan 21 18:41:54 2011 +0100 Fix leaked python reference in python-defined subclasses https://bugzilla.gnome.org/show_bug.cgi?id=640184 gobject/gobjectmodule.c | 1 + tests/test_gobject.py | 4 ++++ 2 files changed, 5 insertions(+), 0 deletions(-) commit a59e2d58bdb3f31a4f415dbe14b7d9988ac28ce3 Author: Steve Frécinaux Date: Fri Jan 21 15:54:43 2011 +0100 Add some tests for the number of python refs held at creation time https://bugzilla.gnome.org/show_bug.cgi?id=640184 tests/test_gobject.py | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) commit 7d70105eb324ea4b6a58c2d3fb3f2dda36e7ab33 Author: Steve Frécinaux Date: Fri Jan 21 17:24:49 2011 +0100 Factor out parameter marshalling from construction functions. https://bugzilla.gnome.org/show_bug.cgi?id=640197 gobject/gobjectmodule.c | 35 ++------------------- gobject/pygobject-private.h | 5 +++ gobject/pygobject.c | 71 +++++++++++++++++++++++++----------------- 3 files changed, 50 insertions(+), 61 deletions(-) commit a3e0cfe8924887ecd1e07cedd2cfb999c853ac62 Author: John (J5) Palmieri Date: Wed Jan 26 15:34:24 2011 -0500 [gi] in python 3 an array of uint8 can be bytes but not string tests/test_gi.py | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) commit 843553ea958eddec185bb660851a310dc050a14b Author: John (J5) Palmieri Date: Wed Jan 26 15:30:06 2011 -0500 [gi] fix Gio.FileEnumerator to reflect the Python 3 iter protocol gi/overrides/Gio.py | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) commit 6ff357839feb39930a5f3175de3d0ed35f24d3f4 Author: John (J5) Palmieri Date: Wed Jan 26 15:17:03 2011 -0500 [gi] python 3 fixes Patches need to work in Python 3 - here are some of the issues I fixed up. Patch submitters should keep this in mind. When I note to only use something in tests it means that there is a compat module that is only available to the tests. Actuall code should either add the workaround to the top of their module or try not to have a distinction between things such as unicode and longs which no longer exist in Python 3 * use range instead of xrange - loss of performance in Python 2 but Python 3 i treats range similarly to python 2's xrange * use dict.items() instead of dict.iteritems() - same as the xrange issue * callable does not exist in 3.x, use hasattr(obj, '__call__') or if sys.version_info > (3, 0): def callable(obj): return hasattr(obj, '__call__') * using unicode in tests is tricky, you can't use u'' even in a versioned conditional as python3's parser chokes on it. Do this in tests (and only i in tests): from compathelper import _unicode unicode_string = _unicode('this is a unicode string') * exception caching changed in 2.7, instead of except Exception, e we now use except Exception as e. Do this to be compatible with older versions: except Exception: etype, e = sys.exc_info()[:2] * Unbound methods with an im_func attribute no longer exits in 3.x. Unbound methods are now just functions so class.method in 3.x is equivalent to class.method.im_func in 2.x. If you have to go this low level do this: func = class1.method if sys.version_info < (3,0): func = func.im_func * all numbers are long in 3.x so 42L is invalid in 3.x. In tests (and only in tests) do this: from compathelper import _long l = _long(42) gi/overrides/GLib.py | 16 ++++++++-------- gi/types.py | 5 ++++- tests/compathelper.py | 19 +++++++++++++++++++ tests/test_gdbus.py | 12 ++++++++---- tests/test_gi.py | 19 ++++++++++++------- tests/test_overrides.py | 8 +++++--- 6 files changed, 56 insertions(+), 23 deletions(-) commit 832d662b9f90f5762bbf28b3cca73f947c1f83ce Author: John (J5) Palmieri Date: Wed Jan 26 14:00:08 2011 -0500 [gi] fix try/except blocks using depricated raise format gi/overrides/GLib.py | 4 ++-- gi/overrides/Gdk.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) commit d3e30e240fed6ef1dd40fd29fd13dc2effc6c7b1 Author: Martin Pitt Date: Wed Jan 26 19:03:48 2011 +0100 [gi] Add docstring to GLib.Variant constructor gi/overrides/GLib.py | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) commit 963cd52fec26f7a4fb34414f8ac6662932ede322 Author: Martin Pitt Date: Wed Jan 26 18:45:38 2011 +0100 [gi] update gdbus test cases for previous GVariant change tests/test_gdbus.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 27e3a6276ff5f2cdc03ddf69ee80d44c3bf2c094 Author: Martin Pitt Date: Wed Jan 26 18:39:17 2011 +0100 [gi] Accept only a single object in GLib.Variant constructor We previously allowed flat arguments for tuple signatures, e. g. GLib.Variant('(ii)', 1, 2) However, that's not how GVariant is supposed to work. Remove the special case to handle flat argument lists, and only accept a single value, i. e. GLib.Variant('(ii)', (1, 2)) Note that this breaks the current API, but as it is not used widely yet, let's better fix it now. Thanks to Ryan Lortie for pointing this out! gi/overrides/GLib.py | 25 ++++++++++--------------- tests/test_overrides.py | 32 +++++++++++++------------------- 2 files changed, 23 insertions(+), 34 deletions(-) commit b15e8e2c0c933d0f827a70280faf875ac383d81b Author: Laszlo Pandy Date: Wed Jan 26 00:40:49 2011 +0100 Speed up _setup_native_vfuncs() This changes _setup_native_vfuncs() to only install native vfunc wrappers from the current class on the current class. Native vfuncs will not be propogated up or down the class hierarchy as this is unnecessary and wastes CPU and memory. Since the normal process in python to retrieve a method or attribute recurses to the base classes if an attribute is not found in the subclass, there is no need to setup all base class virtual functions on a subclass. This patch removes the recursion in _setup_native_vfuncs() and lets Python find them in the base classes like a normal Python class would work. This significantly increases the speed of any class which is or inherits from a C class which includes virtual methods. https://bugzilla.gnome.org/show_bug.cgi?id=640629 gi/types.py | 26 +++++++++++++------------- tests/test_gi.py | 13 +++++++++++++ 2 files changed, 26 insertions(+), 13 deletions(-) commit 569d42ac2f50fb706ef289ff631db743483f40ee Author: Laszlo Pandy Date: Thu Jan 20 16:26:18 2011 +0100 Speed up class creation: rewrite _setup_vfuncs() to be much more efficient. This patch rewrites the _setup_vfuncs() method to remove recursion and make the running time linear in the number of virtual functions to hook up (ie. methods starting with "do_") instead of linear in the number of virtual functions in the base class which could possibly be overridden. Since most classes do not override all of the virtual functions in the base class (and many override none), this runs much faster. It is possible to not recurse on all base classes because non-interface base classes will have the virtual function installed as an attribute. Thus getattr() can be called, which recurses to the base classes much faster than a custom implementation in Python. If the method cannot be found with getattr(), all interface bases classes are searched manually. The function is_function_in_classes() has been deleted. Because of the above changes, it is not used anymore. https://bugzilla.gnome.org/show_bug.cgi?id=640073 gi/types.py | 104 +++++++++++++++++++++++++++++++++--------------------- tests/test_gi.py | 13 +++++++ 2 files changed, 77 insertions(+), 40 deletions(-) commit 8f4e6536f3c2edf38a45632d1c23eb7c6681c3be Author: Sebastian Pölsterl Date: Mon Jan 24 19:23:19 2011 +0100 pygi-convert.sh: Convert gtk.UI_MANAGER_* pygi-convert.sh | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 1f473b5164407a178203eb8cc7f3c786e0d0e5c2 Author: Sebastian Pölsterl Date: Fri Jan 21 18:41:54 2011 +0100 pygi-convert.sh: Convert gdk.GRAB_* pygi-convert.sh | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit f5d0b7b9d189f65503c0bf66d8bda4186ca3223a Author: Ignacio Casal Quinteiro Date: Fri Jan 21 16:45:07 2011 +0100 [gi] set the gtype GValue correctly gi/pygi-property.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit ce521011d7f6d7f082aaea76fa05c5af9f6e93f5 Author: Ignacio Casal Quinteiro Date: Fri Jan 21 16:20:23 2011 +0100 [gi] use the right argument type for callback gi/pygi-foreign-cairo.c | 8 ++++---- gi/pygi-foreign-gvariant.c | 4 ++-- gi/pygi-foreign-gvariant.h | 2 +- gi/pygi-foreign.c | 2 +- gi/pygi.h | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) commit a060287d1a6d190acb9d344f08fd5662e3296da5 Author: Martin Pitt Date: Fri Jan 21 11:00:27 2011 +0100 [gi] Add test cases for GDBus client operations tests/Makefile.am | 1 + tests/test_gdbus.py | 94 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 95 insertions(+), 0 deletions(-) commit e97e28048efb966ecc1a03277d36cbaa81b8db7d Author: Martin Pitt Date: Fri Jan 21 09:54:14 2011 +0100 [gi] Add Variant construction/unpack support for boxed Variants Construction uses a GVariantBuilder for now, as the new_variant() constructor currently does not work (see https://bugzilla.gnome.org/show_bug.cgi?id=639952) gi/overrides/GLib.py | 18 +++++++++++++++++- tests/test_overrides.py | 26 ++++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 1 deletions(-) commit 71dd03261fc06b8180c14cd31b54d8e4b200be3a Merge: bc29600 bd002c7 Author: Dieter Verfaillie Date: Fri Jan 21 09:33:16 2011 +0100 Merge branch 'windows-setup-fixes' commit bc29600a2a04c972ceab7ef8d3292e8633977591 Author: Thomas Hindoe Paaboel Andersen Date: Thu Jan 20 19:48:23 2011 +0100 pygi-convert.sh: GdkPixbuf methods GNOME bug #639880 pygi-convert.sh | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit d1b0fa501cc431baa530d96fb50f4c35590890ac Author: Thomas Hindoe Paaboel Andersen Date: Thu Jan 20 19:45:01 2011 +0100 pygi-convert.sh: Gdk.COLORSPACE_RGB GNOME bug #639880 pygi-convert.sh | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 6d8ff4d5bdda5480089543869535cc3ee83da2f5 Author: Martin Pitt Date: Wed Jan 19 11:41:11 2011 +0100 [gi] Support nested objects and empty sequences in GLib.Variant building The GVariant constructor (in the overrides) previously did not support empty arrays/dictionaries or nested structures. Rewrite the VariantCreator class to be fully recursive and determine the element types of arrays/dictionaries. This now also allows you to use actual tuples as input values for GVariant tuple types. Taking values from the flat argument list is still supported for convenience, though. https://bugzilla.gnome.org/show_bug.cgi?id=639939 gi/overrides/GLib.py | 229 +++++++++++++++++++++++++---------------------- tests/test_overrides.py | 159 +++++++++++++++++++++++++++++++-- 2 files changed, 273 insertions(+), 115 deletions(-) commit ac095f5435f106e175fa3297cb273e63c85d2809 Author: Tomeu Vizoso Date: Thu Jan 20 15:55:45 2011 +0100 Uncomment test_gi.TestInterfaceClash tests/test_gi.py | 22 +++++++++++----------- 1 files changed, 11 insertions(+), 11 deletions(-) commit f0a0b6c2eda89622de2b1e5ebb6a48103ad72a42 Author: Steve Frécinaux Date: Thu Jan 20 14:14:15 2011 +0100 Fix reference leaks for GInitiallyUnowned objects References were leaked for GInitiallyUnowned objects which got their wrappers created several times, because someone else holds reference on it and it got out of python scope at some point. https://bugzilla.gnome.org/show_bug.cgi?id=639949 gobject/gobjectmodule.c | 2 + gobject/pygobject.c | 14 +++++----- tests/test-floating.c | 36 ++++++++++++++++++++++++++ tests/test-floating.h | 21 +++++++++++++++ tests/test_gobject.py | 63 ++++++++++++++++++++++++++++++++++++++++++++++ tests/testhelpermodule.c | 50 ++++++++++++++++++++++++++++++++++++ 6 files changed, 179 insertions(+), 7 deletions(-) commit cae2cf3d4fb049c94389bf8f84d7d97a544d7a3f Author: Steve Frécinaux Date: Wed Jan 19 16:57:57 2011 +0100 Add tests for refcount of a GObject owned by a library When the object is constructed, its refcount is 2 because the library refs it once. It should remain around until we ask the library to release its reference. https://bugzilla.gnome.org/show_bug.cgi?id=639949 tests/test-floating.c | 30 ++++++++++++++++++++++ tests/test-floating.h | 20 +++++++++++++++ tests/test_gobject.py | 62 ++++++++++++++++++++++++++++++++++++++++++++++ tests/testhelpermodule.c | 51 +++++++++++++++++++++++++++++++++++++ 4 files changed, 163 insertions(+), 0 deletions(-) commit b6737b91938d527872eff1d645a205cacf94e15d Author: Steve Frécinaux Date: Wed Jan 19 14:52:41 2011 +0100 Add a test to check for regular object reference count https://bugzilla.gnome.org/show_bug.cgi?id=639949 tests/test_gobject.py | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) commit 2b0f1ede820414ef1cfd6b37569fcb946d2031fc Author: Martin Pitt Date: Thu Jan 20 14:15:52 2011 +0100 [gi] Update TreeView.enable_model_drag_{source,dest} to current GTK GTK master now landed a lot of annotation fixes which also correctly marks the array length argument of Gtk.TreeView.enable_model_drag_{source,dest}(). Thus drop the explicit array length argument from the call in the override. gi/overrides/Gtk.py | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) commit b59edf4f0f7cab44033f9d704d476e10ee0d0c0a Author: Steve Frécinaux Date: Wed Jan 19 18:04:10 2011 +0100 Fix a typo in a private symbol name. gobject/gobjectmodule.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit 6447688e283a8fb22de3ab68cbc06e34ad23d198 Author: Martin Pitt Date: Thu Jan 20 11:49:08 2011 +0100 pygi-convert.sh: Convert glib.source_remove() pygi-convert.sh | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 84ee8de4bc00a8f901926cc6386d73c12dbd0b0b Author: Martin Pitt Date: Thu Jan 20 11:42:34 2011 +0100 Fix typo in previous commit to actually convert glib.GError pygi-convert.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit b238cb614338f46e6feb7935cca0a55c7a929418 Author: Martin Pitt Date: Thu Jan 20 11:40:14 2011 +0100 pygi-convert.sh: Move some glib bits which are better handled by gobject pygi-convert.sh | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) commit 21c09a7ee294b59abb3eca6f64f13bf5c8a2fa0e Author: Laszlo Pandy Date: Wed Jan 19 12:00:02 2011 +0100 Modify override for Gtk.Adjustment to allow position or keyword arguments in __init__(). Previously passing no arguments was not working, because the default value for each parameter was None, and GObject.__init__() refuses to allow None for integer properties. This patch does not pass None up to GObject.__init__. Instead it does not pass the parameter at all, and uses the class's default values. https://bugzilla.gnome.org/show_bug.cgi?id=639934 gi/overrides/Gtk.py | 14 ++++++++++++-- tests/test_overrides.py | 34 +++++++++++++++++++++++++++------- 2 files changed, 39 insertions(+), 9 deletions(-) commit d465e25297ad6589ff2cd0c00e11e8bd8ffe3f78 Author: Martin Pitt Date: Wed Jan 19 22:52:51 2011 +0100 [gi] Fix small typo in previous commit The GVariant signature of the self test had a trailing 'i'. The current GVariant builder doesn't mind, but the new implementation proposed in bug 639939 does. tests/test_overrides.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 2b8e1d0531dcb8f57dc9f2fddf25970bee3daa90 Author: Martin Pitt Date: Wed Jan 19 20:18:19 2011 +0100 [gi] Add pythonic iterator and indexing for string GVariants This extends commit b1a98083c to also work for strings. gi/overrides/GLib.py | 8 +++++++- tests/test_overrides.py | 13 +++++++++++++ 2 files changed, 20 insertions(+), 1 deletions(-) commit 7c2f48bb6d67ec9a1ee5ac03a5aee34b54c6ebdd Author: Tomeu Vizoso Date: Wed Jan 19 18:09:23 2011 +0100 Construct structs using default API constructor If the struct has something that looks like a default constructor, use it instead of trying to directly allocate it, as it will fail if the struct fields are not exposed. https://bugzilla.gnome.org/show_bug.cgi?id=627444 gi/pygi-info.c | 37 +++++++++++++++++++++++++++++++++++++ gi/types.py | 7 +++++++ 2 files changed, 44 insertions(+), 0 deletions(-) commit db7300e173388d9557dcd2333781bfaa6b021605 Author: Martin Pitt Date: Wed Jan 19 18:54:39 2011 +0100 pygi-convert.sh: Migrate Gdk.Cursor constructor, and some cursor names pygi-convert.sh | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit 4c1d4faddf1c9cb233c484da3eadd8e31c231f70 Author: Martin Pitt Date: Wed Jan 19 18:43:29 2011 +0100 pygi-convert.sh: Handle .window attributes In general, convert them to .get_window(). For some of them, prefer calling the GtkWidget methods instead. pygi-convert.sh | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) commit b1049b947d073fb569ba900a4d5c8519482d831e Author: Tomeu Vizoso Date: Wed Jan 19 17:35:09 2011 +0100 Also deal with foreign boxed structs cairo.Context has been boxed and our tests started failing https://bugzilla.gnome.org/show_bug.cgi?id=639967 gi/pygi-argument.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 25b69ae257a12b6dc97ed3f2f7ea54b166ddbba1 Author: Laszlo Pandy Date: Wed Jan 19 17:45:11 2011 +0100 [gi] Convert GErrors to GObject.GError exceptions, and throw them upon returning from calling the C function. This changes gi to make use of pyglib_error_check() which already exists in pyglib. The included tests make use of the other patch attached to this bug, to check that the right exception is thrown from the new function in GIMarshallingTests. two Gtk C functions. https://bugzilla.gnome.org/show_bug.cgi?id=639834 gi/Makefile.am | 3 ++- gi/pygi-invoke.c | 12 +++--------- tests/test_gi.py | 10 ++++++++++ 3 files changed, 15 insertions(+), 10 deletions(-) commit e6fcafc6179e963cbae7774e7ee50415bde2c523 Author: Martin Pitt Date: Wed Jan 19 17:03:06 2011 +0100 pygi-convert.sh: Don't convert glib -> GLib for now This currently leads to a load of crashes, MemoryErrors, etc, as GLib is not very well introspectable, due to the low-level operations that it performs. John Palmieri confirms that using the static "glib" binding is preferred for now, so disable the replacement rules. pygi-convert.sh | 19 ++++++++++--------- 1 files changed, 10 insertions(+), 9 deletions(-) commit 167261d556eab0d2e448c7ed28eef540a024ba1d Author: Tomeu Vizoso Date: Wed Jan 19 16:47:08 2011 +0100 Link libregress.so to GIO_LIBS again configure.ac | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) commit d143afa6da4f5b5f47be8df11fa41d7b47ab1794 Author: Laszlo Pandy Date: Wed Jan 19 16:14:42 2011 +0100 Fix attributes 2BUTTON_PRESS and 3BUTTON_PRESS of Gdk.EventType. This puts an underscore in front of 2BUTTON_PRESS and 3BUTTON_PRESS because in Python attributes starting with a numeral causes a syntax error. gi/overrides/Gdk.py | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) commit 614b6ca7f45c4acbee088fe74fecf279ed50cc0c Author: Sebastian Pölsterl Date: Wed Jan 19 15:27:33 2011 +0100 [gi] Fixed typo in exception gi/overrides/Gtk.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit b2189424f9dd6d3a4a5b9792f0d5843fc27657d1 Author: Sebastian Pölsterl Date: Wed Jan 19 15:12:25 2011 +0100 [gi] Enable handling of Gdk.EventType.2BUTTON_PRESS and 3BUTTON_PRESS gi/overrides/Gdk.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 5eca5ff2c9509ec96158fe43b29f0fd951243efe Author: Martin Pitt Date: Wed Jan 19 14:54:57 2011 +0100 Revert "Fix Pango FontDescription override" According to http://library.gnome.org/devel/pango/1.28/pango-Fonts.html#pango-font-description-new the default constructor actually does take no arguments; we should actually fix the MemoryError. Add a test case for this. Remove the FIXME though, as pango_font_description_from_string() is not a FontDescription constructor, but a static factory method. Thanks to Paolo Borelli for pointing this out! This reverts commit 8878c57676091c08e66bc6cbe735d898cb420582. gi/overrides/Pango.py | 5 ++++- tests/test_overrides.py | 5 +++++ 2 files changed, 9 insertions(+), 1 deletions(-) commit 9e7b95b3676a1b502662523a9bd4ebe40ccb4845 Author: Tony Young Date: Thu Dec 16 23:39:33 2010 +0000 Python iterator interface support for GFileEnumerator. gi/overrides/Gio.py | 41 +++++++++++++++++++++++++++++++++++++++++ gi/overrides/Makefile.am | 1 + tests/test_overrides.py | 20 ++++++++++++++++++++ 3 files changed, 62 insertions(+), 0 deletions(-) commit bca5834fc8fa342149e0eec7b396877a2abe6d33 Author: Tomeu Vizoso Date: Fri Jan 7 12:10:37 2011 +0100 Remove gio static bindings https://bugzilla.gnome.org/show_bug.cgi?id=638899 Makefile.am | 2 +- configure.ac | 25 - gio/.gitignore | 3 - gio/Makefile.am | 117 - gio/__init__.py | 40 - gio/gappinfo.override | 213 -- gio/gapplaunchcontext.override | 99 - gio/gbufferedinputstream.override | 70 - gio/gcancellable.override | 38 - gio/gdatainputstream.override | 250 -- gio/gdrive.override | 347 -- gio/gfile.override | 2215 ----------- gio/gfileattribute.override | 153 - gio/gfileenumerator.override | 184 - gio/gfileinfo.override | 121 - gio/gfileinputstream.override | 68 - gio/gfileiostream.override | 68 - gio/gfileoutputstream.override | 68 - gio/gicon.override | 310 -- gio/ginputstream.override | 344 -- gio/gio-types.defs | 807 ---- gio/gio.defs | 7465 ------------------------------------- gio/gio.override | 409 -- gio/giomodule.c | 208 - gio/giostream.override | 68 - gio/gmemoryinputstream.override | 91 - gio/gmemoryoutputstream.override | 45 - gio/gmount.override | 454 --- gio/goutputstream.override | 292 -- gio/gresolver.override | 312 -- gio/gsocket.override | 575 --- gio/gvolume.override | 237 -- gio/gvolumemonitor.override | 94 - gio/pygio-utils.c | 236 -- gio/pygio-utils.h | 49 - gio/unix-types.defs | 55 - gio/unix.defs | 475 --- gio/unix.override | 62 - gio/unixmodule.c | 52 - tests/Makefile.am | 9 - tests/runtests-windows.py | 3 - tests/test_gcancellable.py | 15 - tests/test_gicon.py | 112 - tests/test_gio.py | 1138 ------ tests/test_gresolver.py | 68 - tests/test_gsocket.py | 126 - 46 files changed, 1 insertions(+), 18191 deletions(-) commit 09f7ca7e2378e6679002677ac3f4802f4cc7d9d5 Author: Ignacio Casal Quinteiro Date: Wed Jan 19 12:04:15 2011 +0100 [gi] set length when marshalling guint8 erases gi/pygi-argument.c | 1 + tests/test_gi.py | 4 ++++ 2 files changed, 5 insertions(+), 0 deletions(-) commit 22eee43e50a150ace80694213fb87be9f0c72f51 Author: Sebastian Pölsterl Date: Wed Jan 19 10:27:47 2011 +0100 Convert Gdk.Pixbuf to GdkPixbuf.Pixbuf pygi-convert.sh | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit a4b210d69c832629894090b7154ae194209b0c60 Author: Arnaud Charlet Date: Tue Jan 18 18:31:29 2011 +0100 Disable calls to PyGILState_* when threads are disabled Since threads may also be disabled in Python too, those symbols may not be resolved. https://bugzilla.gnome.org/show_bug.cgi?id=374603 glib/pyglib.c | 12 ++++++++++++ gobject/pygobject-private.h | 6 ++++++ 2 files changed, 18 insertions(+), 0 deletions(-) commit a000627ec3904b9414ce375aec8d144fc0c26248 Author: Martin Pitt Date: Tue Jan 18 18:29:50 2011 +0100 pygi-convert.sh: Do not comment out set_cell_data_func() calls; these should be ported properly pygi-convert.sh | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) commit 99ff4610fb5ece2fc8d2f9eba13e661968adf3f0 Author: Martin Pitt Date: Tue Jan 18 18:26:01 2011 +0100 pygi-convert.sh: Fix match for adding missing imports pygi-convert.sh | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) commit 3aa95011fad67df20370e92bf25236a34d7d08d3 Author: Martin Pitt Date: Tue Jan 18 18:09:30 2011 +0100 pygi-convert.sh: Fix Gtk.Label handling to be idempotent As we are not replacing line by line, but the whole file at once, this is a bit hackish unfortunately. We can't use a match test or a lookahead/behind assertion. pygi-convert.sh | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) commit 36bc1c17e7d4189059337cc6a73c64edd819ec12 Author: Laszlo Pandy Date: Tue Jan 18 17:29:52 2011 +0100 Remove trailing whitespace from gi/overrides/Gtk.py gi/overrides/Gtk.py | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) commit 8878c57676091c08e66bc6cbe735d898cb420582 Author: Martin Pitt Date: Tue Jan 18 16:47:10 2011 +0100 Fix Pango FontDescription override Trying to call __new__() on a record crashes with a MemoryError, so just call the intended static factory method for a None argument as well (which works just fine now). gi/overrides/Pango.py | 7 +------ 1 files changed, 1 insertions(+), 6 deletions(-) commit efbbe71634037fa100b17327389b883b259cca54 Author: Martin Pitt Date: Tue Jan 18 16:23:39 2011 +0100 tests: Respect existing $GI_TYPELIB_PATH This allows us to run the test suite against local typelibs. tests/Makefile.am | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit f56d85a7f39c2088bf9fd50b1b1e5b67c03104d3 Merge: 84d6142 7d997b6 Author: Sebastian Pölsterl Date: Tue Jan 18 13:14:45 2011 +0100 Merge branch 'value' commit 7d997b6fe88343776c4d67a9f3437ba0c4122da0 Author: Sebastian Pölsterl Date: Tue Jan 18 13:12:36 2011 +0100 GTK overrides: Do type conversion to column types of ListStore and TreeStore in set_value gi/overrides/Gtk.py | 28 ++++++++++++++++++---------- tests/test_overrides.py | 12 +++++++++++- 2 files changed, 29 insertions(+), 11 deletions(-) commit 84d6142c14a7ebfb7284d3db52e14d3393f93905 Author: Steve Frécinaux Date: Mon Jan 17 18:57:58 2011 +0100 Always register a new GType when a GObject class is subclassed This patch makes the GType <-> python mapping much more predictible, and fixes the bug caused by overriding methods without specifying a __gtype_name__ member in the subclass, and makes type_register useless for real :-) It is still possible to provide an explicit __gtype_name__ member in the subclass as it allows having a predictible GType name, which is handy for some of our tests. There is also an explicit special case for overrides because we obviously do not want to register new GTypes for those ones as it would clearly defeat the purpose of overrides. https://bugzilla.gnome.org/show_bug.cgi?id=543056 gobject/__init__.py | 6 +++--- tests/test_gi.py | 21 ++------------------- 2 files changed, 5 insertions(+), 22 deletions(-) commit 30750ccef31e6c864628f418fc00e8c573d29a1b Author: Simon van der Linden Date: Tue Jan 18 12:57:13 2011 +0100 Raise required versions of GLib and GObject-Introspection https://bugzilla.gnome.org/show_bug.cgi?id=612126 configure.ac | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit 761e98d32729f5894f4c75a54c65ed11329dc9d5 Author: Martin Pitt Date: Tue Jan 18 12:52:32 2011 +0100 pygi-convert.sh: Handle keysyms pygi-convert.sh | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit d62cdfa38a675c1daf3bc12d5cd769434eea5dc8 Author: Martin Pitt Date: Tue Jan 18 12:14:09 2011 +0100 GLib overrides: Add test case for array variant building tests/test_overrides.py | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) commit 69a78307f3762e3f54d28d98514cec7d31ff20db Author: Tomeu Vizoso Date: Tue Jan 18 10:21:03 2011 +0100 Remove cairo.RectangleInt from the foreign module https://bugzilla.gnome.org/show_bug.cgi?id=639824 gi/pygi-foreign-cairo.c | 96 ----------------------------------------------- 1 files changed, 0 insertions(+), 96 deletions(-) commit 017680c9a5e163021628bf29543598861a3b600a Author: Tomeu Vizoso Date: Tue Jan 18 10:20:25 2011 +0100 Dont try to guess the transfer if its a boxed https://bugzilla.gnome.org/show_bug.cgi?id=639823 gi/pygi-invoke.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) commit 771ef76574690eb98926249f38661d741d1ebbb0 Author: Ignacio Casal Quinteiro Date: Tue Jan 18 12:02:01 2011 +0100 The tags can be Empty not None. gi/overrides/Gtk.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit b1a98083cdc50653e1d7bfb809bdf089f833df3d Author: Martin Pitt Date: Tue Jan 18 12:01:28 2011 +0100 Add Pythonic iterators and indexing to GVariant Add the usual set of iterators and index accessors to GLib.Variant objects which are containers. Add corresponding test cases. gi/overrides/GLib.py | 50 ++++++++++++++++++++++++++++++++++++++++++ tests/test_overrides.py | 55 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 105 insertions(+), 0 deletions(-) commit ecb9f824c503c529d43e585b4cdb4c1c9ab14593 Author: Martin Pitt Date: Tue Jan 18 10:48:03 2011 +0100 Add GLib.Variant.unpack() This method decomposes a GLib.Variant into a native Python object, i. e. the counterpart of _VariantCreator. This makes it a lot nicer for application developers to use e. g. return values from gdbus calls. Add appropriate test case. gi/overrides/GLib.py | 45 +++++++++++++++++++++++++++++++++++++++++++++ tests/test_overrides.py | 33 ++++++++++++++++++++++++++++++++- 2 files changed, 77 insertions(+), 1 deletions(-) commit 31c73dee34a52fd22b5ff3a23adce92cea5ddc3d Author: Ignacio Casal Quinteiro Date: Tue Jan 18 10:56:18 2011 +0100 Add override for gtk_text_buffer_insert_with_tags gi/overrides/Gtk.py | 12 ++++++++++++ tests/test_overrides.py | 6 ++++++ 2 files changed, 18 insertions(+), 0 deletions(-) commit fc7d7f7f153d57ff3866b7bfd5e6479d702cc4d9 Author: Simon van der Linden Date: Mon Jan 17 14:35:14 2011 +0100 Deduce PYTHON_LIBS in addition to PYTHON_INCLUDES https://bugzilla.gnome.org/show_bug.cgi?id=620215 gi/Makefile.am | 6 ++++-- gio/Makefile.am | 2 +- glib/Makefile.am | 2 +- m4/python.m4 | 7 +++++-- tests/Makefile.am | 2 +- 5 files changed, 12 insertions(+), 7 deletions(-) commit bceec758b27e6c396d17a79424633b5dc9116f54 Author: Simon van der Linden Date: Mon Jan 17 14:20:55 2011 +0100 Kill JD_CHECK_PYTHON_HEADERS Use AM_CHECK_PYTHON_HEADERS instead, which is identical. https://bugzilla.gnome.org/show_bug.cgi?id=620215 configure.ac | 2 +- m4/python.m4 | 31 +------------------------------ 2 files changed, 2 insertions(+), 31 deletions(-) commit e2dea065da94d17a915abe1ce4671b1dc48e02c0 Author: Sebastian Pölsterl Date: Mon Jan 17 19:09:27 2011 +0100 Revert "Override Gtk.Box.pack_start and pack_end to set default values to be compliant with pygtk" This reverts commit a8c727b9c4195d8085a45661683a18614ae84485. Conflicts: gi/overrides/Gtk.py gi/overrides/Gtk.py | 10 ---------- 1 files changed, 0 insertions(+), 10 deletions(-) commit 4fbae9629adc166627de05bb0946b71485343d69 Author: Sebastian Pölsterl Date: Mon Jan 17 19:08:23 2011 +0100 Revert "Override Gtk.CellLayout.pack_start and pack_end to add default values to be compliant with pygtk" This reverts commit 232841148f35684be83a2f47b5b18da4fb74f63a. gi/overrides/Gtk.py | 13 ++----------- 1 files changed, 2 insertions(+), 11 deletions(-) commit c054f0aca67952876b3519bb75ddc62c5517f7cb Author: Sebastian Pölsterl Date: Mon Jan 17 19:08:06 2011 +0100 Revert "Override Gtk.TreeViewColumn.pack_start, pack_end and set_cell_data_func to add default values to be compliant with pygtk" This reverts commit ed7e7a8f22b1481acf78c0c2e4c489dbad72f599. gi/overrides/Gtk.py | 9 --------- 1 files changed, 0 insertions(+), 9 deletions(-) commit 2d9534f347505573da46743b47318e08bf073aef Author: Martin Pitt Date: Mon Jan 17 18:54:10 2011 +0100 pygi-convert.sh: Handle gtk.combo_box_new_text() pygi-convert.sh | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 914d3a0a29680f4d3aa0e1f8afdd625b017b013a Author: Sebastian Pölsterl Date: Mon Jan 17 16:57:53 2011 +0100 Override TreeSortable.set_sort_func and set_default_sort_func to add default values to be pygtk compliant gi/overrides/Gtk.py | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) commit ed7e7a8f22b1481acf78c0c2e4c489dbad72f599 Author: Sebastian Pölsterl Date: Mon Jan 17 16:29:28 2011 +0100 Override Gtk.TreeViewColumn.pack_start, pack_end and set_cell_data_func to add default values to be compliant with pygtk gi/overrides/Gtk.py | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) commit 232841148f35684be83a2f47b5b18da4fb74f63a Author: Sebastian Pölsterl Date: Mon Jan 17 16:28:51 2011 +0100 Override Gtk.CellLayout.pack_start and pack_end to add default values to be compliant with pygtk gi/overrides/Gtk.py | 13 +++++++++++-- 1 files changed, 11 insertions(+), 2 deletions(-) commit 1dec12826753756fcadefc8ef8c756fc902c320b Author: Sebastian Pölsterl Date: Mon Jan 17 15:54:32 2011 +0100 Override Gtk.Paned pack1 and pack2 to add default values to be compliant with pygtk gi/overrides/Gtk.py | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) commit a8c727b9c4195d8085a45661683a18614ae84485 Author: Sebastian Pölsterl Date: Mon Jan 17 15:46:25 2011 +0100 Override Gtk.Box.pack_start and pack_end to set default values to be compliant with pygtk gi/overrides/Gtk.py | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) commit 7cc8ac35bb0d8dbf7d66f014f8cd7ff070b3acb8 Author: Steve Frécinaux Date: Wed Aug 4 00:30:05 2010 +0200 Handle GObject subclasses in the property helper. https://bugzilla.gnome.org/show_bug.cgi?id=625982 gobject/propertyhelper.py | 26 +++++++++++++------------- tests/test_properties.py | 9 +++++++++ 2 files changed, 22 insertions(+), 13 deletions(-) commit 7a0548dbfbdfe481f75315b6bc7824a9f1a8a87b Author: Martin Pitt Date: Mon Jan 17 17:52:15 2011 +0100 Fix handling of unicode for GtkTreeModels The code previously converted an unicode object into unicode, but in Python 2.X models actually have to specify 'str' (GTK expects a gchararray). So encode to UTF-8 instead to get what GTK expects. Add corresponding test case. gi/overrides/Gtk.py | 2 +- tests/test_overrides.py | 12 +++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) commit 09c21c79fb6063c8451f53d4588363d2be7239f4 Author: Laszlo Pandy Date: Mon Jan 17 16:46:08 2011 +0100 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. gi/module.py | 26 +++++++++++++------------- gi/overrides/GIMarshallingTests.py | 2 +- gi/overrides/GLib.py | 2 +- gi/overrides/Gdk.py | 10 +++++----- gi/overrides/Gtk.py | 2 +- gi/overrides/Pango.py | 2 +- gi/overrides/__init__.py | 2 +- tests/test_everything.py | 2 +- 8 files changed, 24 insertions(+), 24 deletions(-) commit 2c70beca9e76e4dc253453c556e6985ce59a3dd9 Author: Laszlo Pandy Date: Mon Jan 17 16:17:25 2011 +0100 Amend previous enum wrapping commit to remove redundant setting of __info__ attribute. gi/module.py | 2 +- gi/types.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) commit 6fbb6be5a5d0d9cd43e1504b8dda5aa75feb95ca Author: Martin Pitt Date: Mon Jan 17 16:16:45 2011 +0100 pygi-convert.sh: Handle GdkPixbuf.InterpType pygi-convert.sh | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit 66a5784f4ab5de5b6d8d51eb4ce869fa26f6a601 Author: Laszlo Pandy Date: Mon Jan 17 15:43:34 2011 +0100 Fix wrapping of enums: Create new Python type for each non-gtype enum. Previously non-gtype enums used the same class, which meant they were all the same type. This caused another problem that since they were all the same class, attributes from different enums were available from each other. A new test case is created to check for this bug. It requires a new enum from the GIMarshallingTests (updating gobject-introspection will be required). gi/module.py | 2 +- gi/types.py | 2 ++ tests/test_gi.py | 10 ++++++++++ 3 files changed, 13 insertions(+), 1 deletions(-) commit da50d5620a42046d4fc905bb28a0890d73533cb1 Author: Tomeu Vizoso Date: Mon Dec 13 18:03:51 2010 +0100 Use g_vfunc_info_invoke for chaining up in vfuncs https://bugzilla.gnome.org/show_bug.cgi?id=637165 gi/pygi-info.c | 4 +- gi/pygi-invoke.c | 72 +++++++++++++++++++++++++++++++++++++++++------------ gi/pygi-invoke.h | 3 +- gi/types.py | 28 ++++++++++++++++++++- tests/test_gi.py | 5 ++- 5 files changed, 89 insertions(+), 23 deletions(-) commit 8ceef79c98a1c2e22ed8ab655ef1169f1763dd23 Author: Simon van der Linden Date: Fri Dec 31 18:38:04 2010 +0100 Move pyglib_{main_context, option_context, option_group}_new into _PyGLib_API _PyG{MainContext, OptionContext, and OptionGroup_Type} were not be initialized when used inside the glib module, since pyglib_init is not called. pyglib.c is compiled as a stand-alone library loaded by the _glib module that declares the above-mentioned types. Hence, they cannot be accessed by the former. This patch moves the functions that need those symbols into the glib._glib module and exports them to the pyglib library through _PyGLib_API. https://bugzilla.gnome.org/show_bug.cgi?id=636656 glib/glibmodule.c | 5 +++- glib/pyglib-private.h | 3 ++ glib/pyglib.c | 48 ++-------------------------------------------- glib/pygmaincontext.c | 22 +++++++++++++++++++++ glib/pygmaincontext.h | 2 +- glib/pygmainloop.c | 2 +- glib/pygoptioncontext.c | 21 ++++++++++++++++++++ glib/pygoptioncontext.h | 2 + glib/pygoptiongroup.c | 26 +++++++++++++++++++++++++ glib/pygoptiongroup.h | 2 + glib/pygsource.c | 2 +- 11 files changed, 86 insertions(+), 49 deletions(-) commit 17caffe4eeefeaf33a56ececbc6c7454f60b9d76 Author: Martin Pitt Date: Mon Jan 17 14:51:26 2011 +0100 pygi-convert.sh: Handle Gdk.DragAction pygi-convert.sh | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit aa390aa80f06ac83ec89e5c5ee143d21ace97917 Author: Martin Pitt Date: Mon Jan 17 14:46:58 2011 +0100 pygi-convert.sh: Generalize Gtk.Settings migration There are other GSettings.get_* functions like get_for_screen(). pygi-convert.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 2e6d5bb49425e6087ca61765ecb72e7a760f2ab2 Author: Martin Pitt Date: Mon Jan 17 11:22:46 2011 +0100 pygi-convert.sh: Don't change the name of "glib" submodules This particular affects dbus.mainloop.glib.* pygi-convert.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 3887b030fc19d25e0cd7b4ed504f4ed23363c3d6 Author: Paolo Borelli Date: Sun Jan 16 22:09:56 2011 +0100 Plug another memory leak Do not leak interface info in (g|s)_et_property. gi/pygi-property.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) commit a4950b4cbb3c7567a8586061bb361adb7d9afb98 Author: Paolo Borelli Date: Sun Jan 16 21:43:30 2011 +0100 Plug a small memory leak. Do not leak type_info in find_vfunc_info gi/gimodule.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) commit d0cbcc45366d40702c69cef207d3c0f361260c02 Author: Paolo Borelli Date: Sun Jan 16 12:16:31 2011 +0100 Override Table.attach() to behave like pygtk It is fairly common and even gtk itself still has attach_defaults. gi/overrides/Gtk.py | 3 +++ tests/test_overrides.py | 4 ++++ 2 files changed, 7 insertions(+), 0 deletions(-) commit 6409d659326bf3cefdf6051379e8bc2031f16733 Author: Martin Pitt Date: Sat Jan 15 11:20:23 2011 -0600 pygi-convert.sh: Convert Pango.WrapMode pygi-convert.sh | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 6aaa6a38198e84a189ca1e8d26b1871d5b6bb711 Author: Martin Pitt Date: Sat Jan 15 11:17:09 2011 -0600 pygi-convert.sh: Don't change the name of "gtk" submodules Some projects have local modules like "myproject.ui.gtk". Avoid changing those, just change module names which start with "gtk" or "gdk". pygi-convert.sh | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit c36fbf4918c8557a8e274a12004a412da3b22b2c Author: Laszlo Pandy Date: Tue Jan 11 21:41:47 2011 +0100 Fix the __dir__() methods on DynamicModule and IntrospectionModule Previously the __dir__() methods did not list all attributes. A simple test case is included. It does not test to see if every attribute is listed, it just tests a few of each kind: - (wrapped) typelib attributes - class attributes and methods - instance attributes A set() is used to avoid returning duplicate attributes. The test case checks for this as well. https://bugzilla.gnome.org/show_bug.cgi?id=639229 gi/module.py | 28 +++++++++++++++++++++------- tests/test_everything.py | 18 ++++++++++++++++++ 2 files changed, 39 insertions(+), 7 deletions(-) commit 1679e6af3f212e4d4644e048dc3c6177ed3fac6b Author: Paolo Borelli Date: Thu Jan 13 00:02:20 2011 +0100 pygi-convert.sh: handle ReliefStyle pygi-convert.sh | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit bd002c72675d35b5e60ab773181e7c36c30d2625 Author: Dieter Verfaillie Date: Tue Jan 11 22:21:18 2011 +0100 setup.py: fix the provides keyword argument setup.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 59dac72d0fa8e1d68bbbc13d76c2747f1cb11857 Author: Dieter Verfaillie Date: Tue Jan 11 22:19:18 2011 +0100 setup.py: use the same spaces-less format for all setup() parameters setup.py | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) commit 4992dca9f5cea68d85eb2ed86105c9c6b8311d79 Author: Laszlo Pandy Date: Tue Jan 11 19:30:38 2011 +0100 Add a __repr__() method to DynamicModule. This patch adds a __repr__() method to DynamicModule so that modules provide a meaningful string with the typelib path included: >>> from gi.repository import Gtk >>> Gtk https://bugzilla.gnome.org/show_bug.cgi?id=639232 gi/module.py | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) commit 2ffaec59e7349c145a0e2a5edba2ffb7d8628369 Author: Tomeu Vizoso Date: Tue Jan 11 19:40:19 2011 +0100 Go back to using getattr() in DynamicModule.__getattr__ Breaks marshalling of some types gi/module.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 52a298cc0f05ceec96457f17f9a801e9838fb757 Author: Laszlo Pandy Date: Tue Jan 11 19:26:50 2011 +0100 Change __dir__() to report all the attributes that __getattr__ supports Change DynamicModule.__dir__() to return the local class members as well as the typelib attributes. Change DynamicModule.__getattr__() to call IntrospectionModule.__getattr__() directly, so that it won't inadvertently return class attributes from IntrospectionModule. https://bugzilla.gnome.org/show_bug.cgi?id=639229 gi/module.py | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) commit 202a268db7f98f5a3c525c6e65ec4bff1917257e Author: Emilio Pozuelo Monfort Date: Sat Jan 8 02:19:52 2011 +0000 Bump the minimum gio dependency Needed for G_TYPE_CONVERTER_FLAGS and others. configure.ac | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit c3aa36151fdef9ed9884d93114786bbe86387983 Author: Tomeu Vizoso Date: Fri Jan 7 12:58:11 2011 +0100 Add test for incorrect attributes in Gdk.Event tests/test_overrides.py | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) commit 204b45c7e95eb50d9e3843127fb10e13b1b17fee Author: Simon van der Linden Date: Sun Jan 2 19:25:55 2011 +0100 Don't call getattr again in gi.overrides.Gdk.Event.__getattr__ __getattr__ is only called when the attribute is not found through the normal mechanism, so getattr must not be called again in __getattr__ (which would create an infinite loop). Another possibility would be to implement __getattribute__ instead, which is called in place of the normal mechanism. In that case, calling getattr would be needed for normal attributes. https://bugzilla.gnome.org/show_bug.cgi?id=638523 gi/overrides/Gdk.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 6cf298ca5565d0eb99824f050ff47407e50a5c01 Author: Mike Gorse Date: Fri Jan 7 09:08:31 2011 +0100 Release allocated array of arguments when handling closures https://bugzilla.gnome.org/show_bug.cgi?id=638847 gi/pygi-closure.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) commit 1be76d5e006efa24598ff7bf26153660dbe0a890 Author: Mike Gorse Date: Fri Jan 7 09:07:35 2011 +0100 Release GIValueInfo when checking an enum argument https://bugzilla.gnome.org/show_bug.cgi?id=638847 gi/pygi-argument.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 8d5a7857876669f56bb03bf618bcfdcc290721c0 Author: Eitan Isaacson Date: Wed Dec 22 12:34:10 2010 -0800 Respect different type lengths when assigning out-argument pointers. https://bugzilla.gnome.org/show_bug.cgi?id=637832 gi/pygi-closure.c | 66 +++++++++++++++++++++++++++++++++++++++++++++-------- 1 files changed, 56 insertions(+), 10 deletions(-) commit f14976ffabec28f6cafe1e37dc81d207a947d4ca Author: Tomeu Vizoso Date: Tue Dec 28 18:34:25 2010 +0100 Fix stupid name clash gi/module.py | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) commit 01b2a193d403beb861eab524300b4f1af63157ce Author: Tomeu Vizoso Date: Tue Dec 28 13:49:18 2010 +0100 Add /usr/share to XDG_DATA_DIRS when running the tests tests/Makefile.am | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) commit efc186f692f9eac781cc47456be74a3da7f14dcd Author: Tomeu Vizoso Date: Tue Dec 28 13:25:34 2010 +0100 Comment out tests that require SRV lookups tests/test_gresolver.py | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) commit d2462cc1ab51d76fb4625c47c3d34de1d5d0dee8 Author: Tomeu Vizoso Date: Tue Dec 28 13:00:16 2010 +0100 Use suppresion file when running valgrind tests/Makefile.am | 2 +- tests/python.supp | 387 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 388 insertions(+), 1 deletions(-) commit 0ee58113ecbea72784c52de928c041fc8fc88984 Author: Ignacio Casal Quinteiro Date: Thu Dec 23 00:10:41 2010 +0100 Fix warnings. gi/pygi-argument.c | 16 +++++++--------- gi/pygi-foreign-cairo.c | 13 ++----------- gio/gfile.override | 5 ++--- glib/pyglib-python-compat.h | 3 +++ glib/pyglib.c | 2 +- glib/pygmainloop.c | 3 ++- 6 files changed, 17 insertions(+), 25 deletions(-) commit 78ea84cd91392400ebac5a361ef8793bfe928fd0 Author: Jesse van den Kieboom Date: Sun Dec 19 23:10:57 2010 +0100 Allow comparing Gtk.TreePath to None https://bugzilla.gnome.org/show_bug.cgi?id=637615 gi/overrides/Gtk.py | 12 ++++++------ tests/test_overrides.py | 6 ++++++ 2 files changed, 12 insertions(+), 6 deletions(-) commit 046cc5915286e042d1040271a90676b77632409e Author: John (J5) Palmieri Date: Thu Dec 16 15:41:10 2010 -0500 handle unicode objects in properties * There are still some cavets in Python 2: - properties are returned as String objects with the unicode code points - you must add # coding=utf-8 to the top of your python file or python will error out if it sees embeded unicode charaters (such as when supporting python 3 and python 2 from the same source) https://bugzilla.gnome.org/show_bug.cgi?id=620579 gobject/pygtype.c | 35 ++++++++++++++++++++++++++--------- tests/test_properties.py | 16 ++++++++++++++++ 2 files changed, 42 insertions(+), 9 deletions(-) commit 7aa783d5cd674f34da318f826bd5f4a0e09d24cb Author: Dieter Verfaillie Date: Tue Dec 14 12:29:54 2010 +0100 dsextras.py: check if gcc is there when platform is win32 and compiler is mingw32 dsextras.py | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) commit cebf5f09a6c5018ced64f35e7747fc81b93b823e Author: Dieter Verfaillie Date: Tue Dec 14 12:29:01 2010 +0100 dsextras.py: be consistent in how distutils imports are done dsextras.py | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit 35e590d48c78f2e76c47c2b4eaf0f7e8d1ed5c93 Author: Dieter Verfaillie Date: Tue Dec 14 12:25:07 2010 +0100 dsextras.py: add have_gcc() function dsextras.py | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) commit 637c2c287cfb0e89365026531c651111f5593ac7 Author: Dieter Verfaillie Date: Tue Dec 14 12:24:41 2010 +0100 dsextras.py: use distutils.spawn.find_executable for have_pkgconfig() dsextras.py | 8 ++------ 1 files changed, 2 insertions(+), 6 deletions(-) commit 020d00bc0ce7b77006b4d4f42d63122d79bcbf89 Author: Dieter Verfaillie Date: Tue Dec 14 12:22:54 2010 +0100 setup.py: fix another case of use True/False instead of 1/0 setup.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit b03cc9e0d66d8caea3cd6a63db198c43de9267e9 Author: Paolo Borelli Date: Mon Dec 13 10:21:52 2010 +0100 pygi-convert.sh: improve GtkSourceView conversion pygi-convert.sh | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) commit fbc12cd7c09a67de9e28b7b0b28de9dc0e0e3418 Author: Paolo Borelli Date: Mon Dec 13 10:27:56 2010 +0100 pygi-convert.sh: Gtk.DialogFlags conversion pygi-convert.sh | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 73e933d2429aea4d14e15350a538da1c5c3f71eb Author: José Alburquerque Date: Sun Dec 12 20:38:46 2010 -0500 Doc Extractor: Print the gtk-doc blocks sorted by function name. * codegen/docextract_to_xml.py: Print the xml of the gtk-doc block in alphabetical order according to the identifier (function name) so that the generation of xml files in the C++ bindings is deterministic. Thanks to Krzesimir Nowak for suggesting this in a gtksourceviewmm recent commit. codegen/docextract_to_xml.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit db7ffa75b007074cb6b33b547c6d8140da300a3e Author: Paolo Borelli Date: Mon Dec 13 00:17:26 2010 +0100 pygi-convert.sh: add more Gtk conversions and sort pygi-convert.sh | 50 ++++++++++++++++++++++++++------------------------ 1 files changed, 26 insertions(+), 24 deletions(-) commit f4bfe73d0ccedf7f671d3acd6d9e262d5383b733 Author: Paolo Borelli Date: Mon Dec 13 00:01:40 2010 +0100 pygi-convert.sh: convert Atk pygi-convert.sh | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) commit e55ce3667eb1d352bf96f265bf018ffe8aea75f9 Author: Paolo Borelli Date: Sun Dec 12 23:48:48 2010 +0100 pygi-convert.sh: convert a few more Gio types pygi-convert.sh | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) commit acc9f84bc6e13d76c6516cefe393d4a4f868aa24 Author: Paolo Borelli Date: Sun Dec 12 14:19:00 2010 +0100 pygi-convert.sh: more GLib conversion pygi-convert.sh | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) commit c903390814bebdc62d530472f6f94feecc59b8b3 Author: Paolo Borelli Date: Sun Dec 12 14:00:34 2010 +0100 pygi-convert.sh: remove two cases handled by overrides pygi-convert.sh | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) commit d33c987e505ec8ddffa2b8cb5526f05b9b5f62be Author: Paolo Borelli Date: Sun Dec 12 13:38:56 2010 +0100 Override Gtk.ScrolledWindow constructor gi/overrides/Gtk.py | 7 +++++++ tests/test_overrides.py | 7 +++++++ 2 files changed, 14 insertions(+), 0 deletions(-) commit 1c24bb089fcd69e3104ae72a0e7560a8c5a3f05b Author: Paolo Borelli Date: Sun Dec 12 12:32:39 2010 +0100 pygi-convert.sh: Fix 'find' syntax pygi-convert.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit f0a1d6b6bb53d0fa2788d8b9027d737b0aef8dfc Author: Paolo Borelli Date: Sun Dec 12 12:29:38 2010 +0100 pygi-convert.sh: start handling Gio and GLib pygi-convert.sh | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) commit 365bf3251af3498dc797a58cce071805451b49b1 Author: Paolo Borelli Date: Sat Dec 11 23:05:31 2010 +0100 pygi-convert.sh: convert Gdk.ScrollDirection. pygi-convert.sh | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit bca603de0f217fb290189a0ea330f82961c46d5d Author: Paolo Borelli Date: Sat Dec 11 15:03:21 2010 +0100 Override Pango.Layout constructor. I must take a Pango.Context argument. Unfortumately the context is not a gobject property so we need to jump through some oops. gi/overrides/Pango.py | 13 +++++++++++++ tests/test_overrides.py | 6 ++++++ 2 files changed, 19 insertions(+), 0 deletions(-) commit df233301802e3f7f9ce338cde015ca2a2fc648ab Author: Paolo Borelli Date: Sat Dec 11 14:18:53 2010 +0100 Remove Pango.FontDescription() conversion. It is now properly handled by an override. pygi-convert.sh | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) commit d8abcc9463542af9cd43d71849d0ad4c183b570b Author: Paolo Borelli Date: Fri Dec 10 14:05:20 2010 +0100 Override GtkAction and GtkRadioAction constructors. gi/overrides/Gtk.py | 20 +++++++++++++++++--- tests/test_overrides.py | 18 ++++++++++++++++++ 2 files changed, 35 insertions(+), 3 deletions(-) commit 7924b18a99a0680c04aca46be4b64a7aa507dfe5 Author: Dmitrijs Ledkovs Date: Sat Dec 4 22:13:28 2010 +0000 Override Adjustment constructor to behave like pygtk https://bugzilla.gnome.org/show_bug.cgi?id=636486 gi/overrides/Gtk.py | 7 +++++++ tests/test_overrides.py | 9 +++++++++ 2 files changed, 16 insertions(+), 0 deletions(-) commit e76352dd83c8706e68ad57d00d185da9afea99c4 Author: John (J5) Palmieri Date: Thu Dec 9 13:23:10 2010 -0500 add secondary_text apis to MessageDialog gi/overrides/Gtk.py | 8 ++++++++ tests/test_overrides.py | 8 ++++++++ 2 files changed, 16 insertions(+), 0 deletions(-) commit de682b2d36c362140ab7d43c0743b01ec0865a74 Author: John (J5) Palmieri Date: Wed Dec 8 16:39:27 2010 -0500 [gi] get rid of some debug prints and fix error messages gi/overrides/Gtk.py | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) commit dbb16571803bf51f497768bf80944514f4290ee5 Author: Paolo Borelli Date: Wed Dec 8 18:25:15 2010 +0100 Fix demo for override changes. demos/gtk-demo/gtk-demo.py | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) commit 2adcd95762944a4e27123093d3c8d080e49be1ea Author: Paolo Borelli Date: Wed Dec 8 18:06:01 2010 +0100 Override Pango.FontDescription. demos/gtk-demo/gtk-demo.py | 2 +- gi/overrides/Makefile.am | 1 + gi/overrides/Pango.py | 40 ++++++++++++++++++++++++++++++++++++++++ tests/test_overrides.py | 7 +++++++ 4 files changed, 49 insertions(+), 1 deletions(-) commit 769da968c9187414d0420412d8fb8c833d12042a Author: Tomeu Vizoso Date: Wed Dec 8 17:38:11 2010 +0100 Stop checking that all vfuncs are implemented Because some methods are optionally implementable but g-i won't tell us. https://bugzilla.gnome.org/show_bug.cgi?id=619606 gi/gimodule.c | 4 +++- gi/types.py | 12 ++---------- tests/test_gi.py | 10 ---------- 3 files changed, 5 insertions(+), 21 deletions(-) commit 167a01c46b3fa0b3c8339502c875d32bd2bca974 Author: Paolo Borelli Date: Wed Dec 8 17:37:00 2010 +0100 Fix usage of TreeIter api that is now an override. demos/gtk-demo/gtk-demo.py | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit d2cfd6e9250d40de7c715ac74e299deddf137683 Author: Paolo Borelli Date: Wed Dec 8 17:34:54 2010 +0100 Fix Gtk.Label(label="Foo") Use 'label' as an argument name instead of 'str', otherwise we may end up up with two 'label' in the kwds dict. Besides 'str' is a reserved keyword. gi/overrides/Gtk.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit c0c684c9bb4e2bc08d7cb6ac246705e8a3b77656 Author: Paolo Borelli Date: Wed Dec 8 14:16:39 2010 +0100 Fix typo when raising an exception gi/types.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 88c9a3ad49d9fcf779c3523672d8bf4767910301 Author: Sebastian Pölsterl Date: Wed Dec 8 10:46:27 2010 +0100 pygi-convert.sh: Added more conversions pygi-convert.sh | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) commit 4d8d96326b2cac91e6d75e6601b92e202d1918ff Author: Paolo Borelli Date: Tue Dec 7 20:39:15 2010 +0100 Override LinkButton constructor to make 'uri' mandatory gi/overrides/Gtk.py | 7 +++++++ tests/test_overrides.py | 6 ++++++ 2 files changed, 13 insertions(+), 0 deletions(-) commit f4f7fb35af1b41598dc050f5df155a01c370a920 Author: Dmitry Morozov Date: Sat Dec 4 19:19:19 2010 +0600 Container should be iterable. gi/overrides/Gtk.py | 9 +++++++++ tests/test_overrides.py | 6 +++++- 2 files changed, 14 insertions(+), 1 deletions(-) commit d2ad05d6d8d53b941e0ad33fcb200f1245a2d308 Author: Paolo Borelli Date: Tue Dec 7 14:13:00 2010 +0100 No need to import Gdk gi/overrides/Gtk.py | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) commit b6a40badf0b2b59e690ce818efb03c7c816b8a04 Author: Paolo Borelli Date: Tue Dec 7 14:07:53 2010 +0100 Remove semicolumns gi/overrides/Gtk.py | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) commit cdc9c26553bf47ea488676e7bdc5f8ab0a2c906b Author: John (J5) Palmieri Date: Mon Dec 6 16:05:30 2010 -0500 [gi] make sure Gtk.Button override passes all keywords to parent constructor gi/overrides/Gtk.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit cede81ad65db017e95543d8d35715751aa202fed Author: Paolo Borelli Date: Sun Dec 5 13:31:20 2010 +0100 Fix cut&paste error in the Label override gi/overrides/Gtk.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 607c59b74ebbc1e39cb4121c870b689e1888c106 Author: Paolo Borelli Date: Sat Dec 4 16:03:27 2010 +0100 pygi-convert.sh: handle TextWindowType pygi-convert.sh | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit dfeabe0b68938e27da2e65903983b5113dc422f1 Author: Paolo Borelli Date: Sat Dec 4 15:49:15 2010 +0100 Override Label constructor to behave like pygtk gi/overrides/Gtk.py | 7 +++++++ tests/test_overrides.py | 4 ++++ 2 files changed, 11 insertions(+), 0 deletions(-) commit da4e045e5abbed2796cc4ed39df35a0dde2de31b Author: Paolo Borelli Date: Sat Dec 4 15:40:35 2010 +0100 Override GtkTable constructor to behave like pygtk gi/overrides/Gtk.py | 7 +++++++ tests/test_overrides.py | 12 ++++++++++++ 2 files changed, 19 insertions(+), 0 deletions(-) commit 81452c23ab1befa59ff375692e582791432796a5 Author: Paolo Borelli Date: Sat Dec 4 12:59:43 2010 +0100 pygi-convert.sh: convert MovementStep pygi-convert.sh | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 4d097eea94258eda0c328711491fd456cbd6741b Author: Paolo Borelli Date: Sat Dec 4 11:57:02 2010 +0100 Update Gdk overrides to work with latest Gtk+ 3 For now added consitionals on version == 2.0, but maybe at some point we shuld just clean up the old stuff. gi/overrides/Gdk.py | 22 ++++++++++++++++------ 1 files changed, 16 insertions(+), 6 deletions(-) commit cda317195566711d66190145b545e26ed7226172 Author: Johan Dahlin Date: Thu Dec 2 23:47:40 2010 -0200 Gtk: add an override for Gtk.main_quit Override gtk.main_quit so that it can be used as a callback to signals, most importantly to the destroy signal of a widget: widget.connect('destroy', gtk.main_quit) This is compatible with what PyGTK does. https://bugzilla.gnome.org/show_bug.cgi?id=636336 gi/overrides/Gtk.py | 5 ++++- gi/overrides/__init__.py | 27 +++++++++++++++++++++++++-- 2 files changed, 29 insertions(+), 3 deletions(-) commit 82689cbf53d92b1b951a459fe3de0e1d3a91791a Author: John (J5) Palmieri Date: Thu Dec 2 16:27:04 2010 -0500 [gi] handle subtypes when inserting into tree models * Often modules will give back basic types wrapped in a subtype. This is the case with D-Bus where you may want to keep some of the metadata around. More often than not, the developer is just looking to use the basetype. * This override checks the column type and handles basic types such as gchararrays, ints, longs, floats and doubles, converting them to their base types before sending them to the generic GI type marshaller. * More types may need to be supported but these are the common cases where apps break. https://bugzilla.gnome.org/show_bug.cgi?id=635172 gi/overrides/Gtk.py | 38 ++++++++++++++++++++++++++++++++++++-- tests/test_overrides.py | 8 +++++++- 2 files changed, 43 insertions(+), 3 deletions(-) commit 677490e9402bad7b7c2a832345ef54f7f0c5fc7f Author: Paolo Borelli Date: Fri Dec 3 23:39:50 2010 +0100 Override TreeSelection.select_path and TreeView.scroll_to_cell The "path" argument may also be a string or a tuple gi/overrides/Gtk.py | 10 ++++++++++ tests/test_overrides.py | 29 +++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 0 deletions(-) commit dacfe618fa244445c979f1a5efa80c1f9a5a4ae9 Author: Paolo Borelli Date: Fri Dec 3 23:29:00 2010 +0100 Override TreePath.__new__ Instead of having a private _tree_path_from_string it is cleaner to override __new__ and it will be useful for all the api that take a TreePath or a string or a tuple. gi/overrides/Gtk.py | 33 +++++++++++++++------------------ tests/test_overrides.py | 18 ++++++++++++++++++ 2 files changed, 33 insertions(+), 18 deletions(-) commit 7a8af9e220ee48aa28f6b025c5dae324b14fe128 Author: Paolo Borelli Date: Sun Nov 28 13:02:30 2010 +0100 Override Container to behave like a sequence gi/overrides/Gtk.py | 6 ++++++ tests/test_overrides.py | 11 +++++++++++ 2 files changed, 17 insertions(+), 0 deletions(-) commit 94e8befc935d4a6c7f766e34195e10fc3fb3b93a Author: John (J5) Palmieri Date: Tue Nov 30 16:57:05 2010 -0500 refactor Jonathan Matthew recurse vfunc patch so it applys and clean up a bit * this patch does the recursion using the previous patche's support functions gi/types.py | 55 +++++++++++++++++++++++++++++++++++++++++++++---------- 1 files changed, 45 insertions(+), 10 deletions(-) commit 9c5aee4f06f92457f9ae987656c0c469f76d0ee8 Author: Jonathan Matthew Date: Thu Jul 22 23:19:51 2010 +1000 Recurse up through base classes when setting up vfuncs * this patch adds the support methods to do the recursion https://bugzilla.gnome.org/show_bug.cgi?id=625033 gi/gimodule.c | 130 +++++++++++++++++++++++++++++++++++++++--------------- tests/test_gi.py | 37 +++++++++++++++ 2 files changed, 131 insertions(+), 36 deletions(-) commit 78358e1ab54d02317f397276adee03ecb2187588 Author: John (J5) Palmieri Date: Mon Nov 29 18:29:57 2010 -0500 add a profiling torture test for when we fix up invoke tests/test_everything.py | 67 ++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 67 insertions(+), 0 deletions(-) commit 792e679c06df4357843fd310c7953a931172fc99 Author: John (J5) Palmieri Date: Mon Nov 29 16:41:38 2010 -0500 moved dynamic and base modules outside of gtk-2.0 directory * do not move header files yet as they are mostly used by static bindings * do not remove pygtk.pth and pygtk.py files yet - there is a debate on moving these back to pygtk but you might want to import gio static bindings without having to have pygtk installed * I have not tested this with pygtk, committing it so we can find out if it causes any issues with legacy modules and code gi/Makefile.am | 2 +- gi/overrides/Makefile.am | 2 +- gi/repository/Makefile.am | 2 +- glib/Makefile.am | 2 +- gobject/Makefile.am | 2 +- tests/test_gi.py | 2 -- tests/test_overrides.py | 3 --- 7 files changed, 5 insertions(+), 10 deletions(-) commit c587e1ace7429195ac6fd4db03d2f33e2af09838 Author: John (J5) Palmieri Date: Mon Nov 29 15:11:46 2010 -0500 add test for inout argument count tests/test_gi.py | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 5de88b4bcffdafcf8c7c20033cdf95dc690199ce Author: John (J5) Palmieri Date: Mon Nov 22 19:17:23 2010 -0500 [gi] add check for UNICHAR https://bugzilla.gnome.org/show_bug.cgi?id=623615 gi/pygi-argument.c | 27 ++++++++++++++++++++++++++- tests/test_everything.py | 17 +++++++++++++++-- 2 files changed, 41 insertions(+), 3 deletions(-) commit f129b3db2c78d3cce3614993fdd1619fb9eb9c79 Author: Paolo Borelli Date: Sun Nov 21 12:16:53 2010 +0100 Support gunichar https://bugzilla.gnome.org/show_bug.cgi?id=623615 gi/pygi-argument.c | 60 ++++++++++++++++++++++++++++++++++++++++++++++ gi/pygi-info.c | 5 ++++ tests/test_everything.py | 5 ++++ 3 files changed, 70 insertions(+), 0 deletions(-) commit fd2c0288eb67823fca1265348a27a9f8f147ae50 Author: Paolo Borelli Date: Sat Nov 27 23:01:42 2010 +0100 pygi-convert.sh: gtk.accel_map -> Gtk.AccelMap._ pygi-convert.sh | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 13d0ff1d9c129bb458e234b630ebe920b50e2e0f Author: Paolo Borelli Date: Sat Nov 27 22:34:13 2010 +0100 pygi-convert.sh: handle "from gtk import gdk" pygi-convert.sh | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit 63a97634031c3d159ad77fdaa1f6341d7656eb07 Author: Paolo Borelli Date: Sat Nov 27 22:23:24 2010 +0100 pygi-convert.sh: add some Pango special cases pygi-convert.sh | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) commit 57e42bf4230d1aa20a47e3b0df2e509602333892 Author: Paolo Borelli Date: Sat Nov 27 19:51:38 2010 +0100 Override TextIter (begins|ends|toggles)_tag() Make the tag argument optional. gi/overrides/Gtk.py | 9 +++++++++ tests/test_overrides.py | 17 +++++++++++++++++ 2 files changed, 26 insertions(+), 0 deletions(-) commit 828b698e47ee819a60d24a772a3cc51ff9cd6601 Author: Paolo Borelli Date: Sat Nov 27 19:32:48 2010 +0100 Override TextBuffer.set_text() to make length optional gi/overrides/Gtk.py | 3 +++ tests/test_overrides.py | 11 ++++++++++- 2 files changed, 13 insertions(+), 1 deletions(-) commit bf55dc862755a57bb1b998702d284fc460e88a30 Author: Paolo Borelli Date: Sat Nov 27 16:46:40 2010 +0100 Override TextBuffer.create_mark() Override create_mark to make the left_gravity argument optional gi/overrides/Gtk.py | 3 +++ tests/test_overrides.py | 3 +++ 2 files changed, 6 insertions(+), 0 deletions(-) commit 94c0e2f71636d055bdebe3ec378f3d339eea66c9 Author: Paolo Borelli Date: Sat Nov 27 16:10:33 2010 +0100 Fix TextBuffer.get_selection_bounds() override Fix the override and add unit test gi/overrides/Gtk.py | 8 +++++--- tests/test_overrides.py | 7 +++++++ 2 files changed, 12 insertions(+), 3 deletions(-) commit 0cd717e3926276540b9145e58a4a3368136b00de Author: John (J5) Palmieri Date: Mon Nov 22 18:35:09 2010 -0500 [gi] fix ActionGroup constructor to allow other keyword properties to be set gi/overrides/Gtk.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 226777cdb70fc72d206664ffd8b6737f7239d23f Author: John (J5) Palmieri Date: Mon Nov 22 18:32:28 2010 -0500 [gi] require the name parameter when creatin a Gtk.ActionGroup gi/overrides/Gtk.py | 3 +++ tests/test_overrides.py | 2 ++ 2 files changed, 5 insertions(+), 0 deletions(-) commit d0049fa9982d13b3553b05569fb0a227e48b6647 Author: Paolo Borelli Date: Sun Nov 21 15:20:58 2010 +0100 Override UIManager.insert_action_group https://bugzilla.gnome.org/show_bug.cgi?id=635437 gi/overrides/Gtk.py | 3 +++ tests/test_overrides.py | 34 +++++++++++++++++++++------------- 2 files changed, 24 insertions(+), 13 deletions(-) commit e1db544e46aeed984133896af34b671a6a5547df Author: Paolo Borelli Date: Sun Nov 21 23:03:25 2010 +0100 Override TreeModel.get() to return a tuple https://bugzilla.gnome.org/show_bug.cgi?id=635466 gi/overrides/Gtk.py | 15 +++++++++++++++ tests/test_overrides.py | 6 ++++++ 2 files changed, 21 insertions(+), 0 deletions(-) commit a5e806ad8a8b279402ff7adb1c1cdc04f9f3da76 Author: Paolo Borelli Date: Sun Nov 21 21:57:40 2010 +0100 Make TreeSelection.get_selected_rows compatible with PyGtk https://bugzilla.gnome.org/show_bug.cgi?id=635464 gi/overrides/Gtk.py | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) commit 1c537bc67107948c92b51ba6ba749747e84263e2 Author: John (J5) Palmieri Date: Mon Nov 22 15:04:00 2010 -0500 [gi] switch to using sequences/tuples when marshalling cairo_rectangle_int_t * Upstream pycairo didn't want to add a new wrapper for cairo_rectangle_int_t * this works around that issue by using 4 element squences instead which should be accepted by pycairo for any API that takes a rect gi/pygi-foreign-cairo.c | 85 +++++++++++++++++++++++++++++++++++----------- 1 files changed, 64 insertions(+), 21 deletions(-) commit 4cede8f12321bed6c3b71813a62c01b61853ba69 Author: John (J5) Palmieri Date: Fri Nov 19 16:46:53 2010 -0500 [gi] overrides for treeview Drag and Drop https://bugzilla.gnome.org/show_bug.cgi?id=627367 gi/overrides/Gdk.py | 7 +++++++ gi/overrides/Gtk.py | 25 +++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 0 deletions(-) commit 3fd51bb903724b752f72f49c7cb35652b819791d Author: John (J5) Palmieri Date: Fri Nov 19 16:44:32 2010 -0500 [gi] when encountering guint8 arrays treat them as byte arrays * In Python 2 this means returning a PyString object * In Python 3 we return a PyBytes object https://bugzilla.gnome.org/show_bug.cgi?id=627367 gi/pygi-argument.c | 65 ++++++++++++++++++++++++++++++++++++++++++--------- tests/test_gi.py | 6 +++- 2 files changed, 57 insertions(+), 14 deletions(-) commit 7ddb0f7fd8b1b9e8f691c6d42a83cb16c6561d26 Author: Martin Pitt Date: Fri Nov 19 18:19:38 2010 +0100 pygi-convert.sh: Add pynotify -> Notify pygi-convert.sh | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) commit bf03d4db03a7739ac16ddc4e614441557ede554d Author: Martin Pitt Date: Fri Nov 19 09:08:07 2010 +0100 pygi-convert.sh: Remove sugar specifics, and allow command line file list This script is generally useful for converting pygtk2 projects, not just for sugar. Remove the sugar specific bits, since they will just cause errors. Also allow the user to specify the files to convert as command line arguments. If not given, all *.py files will be processed. https://bugzilla.gnome.org/show_bug.cgi?id=635244 pygi-convert.sh | 25 +++++-------------------- 1 files changed, 5 insertions(+), 20 deletions(-) commit 18f5d229d3a4b9520c1c456be2635c8e36015c12 Author: Martin Pitt Date: Fri Nov 19 09:00:35 2010 +0100 pygi-convert.sh: Cover Message and Buttons types https://bugzilla.gnome.org/show_bug.cgi?id=635244 pygi-convert.sh | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit ef74273c2043944708515e59a654ebe4944b46ff Author: John (J5) Palmieri Date: Thu Nov 18 13:54:48 2010 -0500 [gi] fix actiongroup test since actions are hashed * when actions are listed they may not show up in the order they were entered since they reside in an unordered hash internally tests/test_overrides.py | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) commit 2c25886bf6710568d0646f82dce4770faa44c40d Author: John (J5) Palmieri Date: Wed Nov 17 14:38:09 2010 -0500 [gi] when converting to UTF-8 accept Python Unicode objects as input (Python 2) https://bugzilla.gnome.org/show_bug.cgi?id=620579 gi/pygi-argument.c | 14 ++++++++++++-- glib/pyglib-python-compat.h | 5 +++++ tests/test_gi.py | 3 +++ 3 files changed, 20 insertions(+), 2 deletions(-) commit 8c2d32c8205b971b4353e3d5d2ed1efa6ef0e06c Author: Damien Caliste Date: Fri Nov 12 10:20:32 2010 +0100 Correct a bug in the freeing of memory in pygi-invoke.c. When a method with inout arguments is called from Python with a wrong number of arguments, the system crashs because of an assertion fail. This patch corrects this behaviour. https://bugzilla.gnome.org/show_bug.cgi?id=634671 gi/pygi-invoke.c | 25 ++++++++++++++----------- 1 files changed, 14 insertions(+), 11 deletions(-) commit d9bab3b185bb59bd29e3c3f6225f3636f58ec45e Author: John (J5) Palmieri Date: Wed Nov 10 14:11:56 2010 -0500 update news for release NEWS | 73 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 73 insertions(+), 0 deletions(-) commit 1338a95339e21cc02b9df6d10166996c8b97a6bf Author: Jonathan Matthew Date: Tue Sep 28 13:44:13 2010 +1000 Implement richcompare for GIBaseInfo https://bugzilla.gnome.org/show_bug.cgi?id=625033 gi/pygi-info.c | 29 +++++++++++++++++++++++++++++ 1 files changed, 29 insertions(+), 0 deletions(-) commit 9ce3edf69824935aeca9e676eaa9782786c22a97 Author: John (J5) Palmieri Date: Tue Nov 9 22:57:41 2010 -0500 [gi] add the rectangle_int_t forign cairo type * the pycairo maintainer is not being responsive so you will need the patch at https://bugs.freedesktop.org/show_bug.cgi?id=31111 * added conditionals, if the api doesn't exist in PyCairo we will compile without the forign structs gi/pygi-foreign-cairo.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) commit 68b8211d8b014cf26ca7e9ab751fb3f61f228290 Author: John (J5) Palmieri Date: Mon Oct 25 18:28:36 2010 -0400 add a foreign type for cairo_rectangle_int_t and allow it to be caller-allocated * this is needed because Gdk and Gtk switched from returning a GdkRectangle to a CairoRectangleInt structure * the patch in https://bugs.freedesktop.org/show_bug.cgi?id=31111 is required for pycairo (however there is currently no patch for python 2) * added fix for foreign types to allow them to be caller allocated * in order for a type to be caller allocated it must be able to take a NULL and create an empty struct in foreign_struct_from_arg and it must be able to handle GI_TRANFER_EVERYTHING in foreign_struct_to_arg. https://bugzilla.gnome.org/show_bug.cgi?id=627545 gi/pygi-foreign-cairo.c | 57 +++++++++++++++++++++++++++++++++++++++++++++++ gi/pygi-invoke.c | 15 ++++++++++- 2 files changed, 70 insertions(+), 2 deletions(-) commit ce8b948310220288e9eef904eef4ec8f4e24a376 Author: John (J5) Palmieri Date: Tue Nov 9 22:11:51 2010 -0500 [gi] add overrides to Gtk.Editable gi/overrides/Gtk.py | 17 +++++++++++++++++ tests/test_overrides.py | 12 ++++++++++++ 2 files changed, 29 insertions(+), 0 deletions(-) commit 87dbc716f26cefc0e9427c3d6e8befe8eabd3d1e Author: John (J5) Palmieri Date: Tue Nov 9 21:12:54 2010 -0500 [gi] handle virtual invokers * right now we check to see if there is an method with the same name as the virtual method and assume that is the invoker * some invokers are named different so we now ask the VFuncInfo if the vfunc has an invoker * this is still not completly correct, gi needs to support telling us which vfuncs must be overridden. * this keeps the old way of checking vfuncs while adding the edge case where vfunc is named differently from their invoker gi/pygi-info.c | 16 ++++++++++++++++ gi/types.py | 2 +- 2 files changed, 17 insertions(+), 1 deletions(-) commit 540e9f1f349ba3625e28b7673c92210eb8974098 Author: John (J5) Palmieri Date: Tue Nov 9 12:17:05 2010 -0500 add overrides for the insert* apis of list_store and tree_store * add set_row to tree_model as convinience method for both list and tree stores https://bugzilla.gnome.org/show_bug.cgi?id=634423 gi/overrides/Gtk.py | 80 ++++++++++++++++++++++++++++++++++++---------- tests/test_overrides.py | 53 ++++++++++++++++++++++++++++++- 2 files changed, 114 insertions(+), 19 deletions(-) commit 0bcb58b9541d9ae52e1d96e6239e9dbe0698872a Author: John (J5) Palmieri Date: Fri Nov 5 13:56:12 2010 -0400 fix dialogs overrides which were relying on broken inheritance behavior gi/overrides/Gtk.py | 14 ++++++++++++-- 1 files changed, 12 insertions(+), 2 deletions(-) commit 89c104d17d79d7b935cd76101cba19d49390f7be Author: John (J5) Palmieri Date: Thu Nov 4 12:00:14 2010 -0400 Add a overrides registry so we can refrence overrides inside the module * Overrides have a reentrancy issue when doing inheritance. If an override inherits from another override down the stack it won't see the override because the module is not finished loading and will inherit from the non-overriden object instead. This causes type errors later. * By adding the overrides to a registry outside of the module we can order registration and make the override available as soon as the class is parsed, not when the whole module is parsed. https://bugzilla.gnome.org/show_bug.cgi?id=633347 gi/module.py | 12 +++++++++- gi/overrides/GIMarshallingTests.py | 2 +- gi/overrides/Gdk.py | 2 +- gi/overrides/Gtk.py | 2 +- gi/overrides/__init__.py | 43 ++++++++++++++++++++++++++++++++++++ gi/types.py | 8 ------ tests/test_overrides.py | 27 ++++++++++++++++++++++ 7 files changed, 84 insertions(+), 12 deletions(-) commit 878b8f630acd2146bee364054acd45cd33eea37a Merge: cdacaa9 e317838 Author: John Stowers Date: Fri Nov 5 11:40:22 2010 +1300 Merge remote branch 'dieterv/setup-fixes-for-merge' commit e317838178fba5f0590fb8bd323f49602d564b53 Author: Dieter Verfaillie Date: Thu Nov 4 11:16:43 2010 +0100 setup.py: ease maintenance burden for tests installation setup.py | 23 +++-------------------- 1 files changed, 3 insertions(+), 20 deletions(-) commit cdacaa9572893796e0f3aa3730d0191911cb29ee Author: John (J5) Palmieri Date: Wed Nov 3 09:51:09 2010 -0400 fix inheritence issues in overrides gi/overrides/Gtk.py | 79 ++++++++++++++++++++++++++------------------------- 1 files changed, 40 insertions(+), 39 deletions(-) commit 3d5955767d81f45e796ab2af0707533375681774 Author: Dieter Verfaillie Date: Wed Nov 3 09:38:56 2010 +0100 tests: add runtests-windows.py script Signed-off-by: Dieter Verfaillie tests/runtests-windows.py | 47 +++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 47 insertions(+), 0 deletions(-) commit 8cb3f2e78161639c568110aad6a807dcf59f3ae8 Author: Dieter Verfaillie Date: Wed Nov 3 09:35:52 2010 +0100 pygobject_postinstall.py: remove pygobject-2.0.pc treatment from postinstall as pkg-config on windows figures out the correct prefix at runtime Signed-off-by: Dieter Verfaillie pygobject_postinstall.py | 26 +++----------------------- 1 files changed, 3 insertions(+), 23 deletions(-) commit 63167574df53eb481cc11b6a097b2bfe7d5747f5 Author: Dieter Verfaillie Date: Wed Nov 3 09:34:38 2010 +0100 pygobject_postinstall.py: remove shortcut creation Signed-off-by: Dieter Verfaillie pygobject_postinstall.py | 35 +---------------------------------- 1 files changed, 1 insertions(+), 34 deletions(-) commit f7b12611f94fd8c27fb67a03746c10149ce6e0ef Author: Dieter Verfaillie Date: Wed Nov 3 09:31:14 2010 +0100 setup.py: formatting cleanup, makes things readable Signed-off-by: Dieter Verfaillie setup.py | 56 ++++++++++++++++++++++++++------------------------------ 1 files changed, 26 insertions(+), 30 deletions(-) commit a31b4196fbb4638a245430f2fdeafd7534b1d84d Author: Dieter Verfaillie Date: Wed Nov 3 09:28:36 2010 +0100 setup.py: build and install tests Signed-off-by: Dieter Verfaillie setup.py | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 61 insertions(+), 0 deletions(-) commit 7c3b0c20b83c05833d73c240690dce3daf43fde8 Author: Dieter Verfaillie Date: Wed Nov 3 09:26:59 2010 +0100 setup.py: install documentation when available on build system Signed-off-by: Dieter Verfaillie setup.py | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) commit 78533d851ee1314686f18cfa793613a9cf7d6686 Author: Dieter Verfaillie Date: Wed Nov 3 09:25:56 2010 +0100 setup.py: install pygobject-codegen script Signed-off-by: Dieter Verfaillie setup.py | 25 +++++++++++++++++++++++++ 1 files changed, 25 insertions(+), 0 deletions(-) commit ad40688df533dda0b1f7be8ea37c542b8796a26b Author: Dieter Verfaillie Date: Wed Nov 3 09:24:45 2010 +0100 setup.py: install fixxref.py script Signed-off-by: Dieter Verfaillie setup.py | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) commit 21ddfc66e4e18c002a33154eb4ab81170ed71ecc Author: Dieter Verfaillie Date: Wed Nov 3 09:23:05 2010 +0100 setup.py: rearrange constants Signed-off-by: Dieter Verfaillie setup.py | 37 ++++++++++++++++++++----------------- 1 files changed, 20 insertions(+), 17 deletions(-) commit 7d353d04892de67265bf693f591f37fd393de639 Author: Dieter Verfaillie Date: Wed Nov 3 09:18:11 2010 +0100 setup.py: check python version and pkgconig availability before anything else Signed-off-by: Dieter Verfaillie setup.py | 18 ++++++++++-------- 1 files changed, 10 insertions(+), 8 deletions(-) commit 286364ed39953e942e24d5911519bcac2f90975a Author: Dieter Verfaillie Date: Wed Nov 3 09:05:59 2010 +0100 setup.py: simplify sys.platform != 'win32' detection and error reporting Signed-off-by: Dieter Verfaillie setup.py | 29 +++++++++-------------------- 1 files changed, 9 insertions(+), 20 deletions(-) commit 3f70f92904c123e6cc40929c0affd3f75d061828 Author: Dieter Verfaillie Date: Wed Nov 3 09:02:30 2010 +0100 setup.py: rearrange imports Signed-off-by: Dieter Verfaillie setup.py | 31 ++++++++++++++++++++++--------- 1 files changed, 22 insertions(+), 9 deletions(-) commit 9aa54b65f729c0f3b0e96ab7ff797f87dad6a455 Author: Dieter Verfaillie Date: Wed Nov 3 08:58:00 2010 +0100 README.win32: update build instructions Signed-off-by: Dieter Verfaillie README.win32 | 13 +++++-------- 1 files changed, 5 insertions(+), 8 deletions(-) commit 5a33105f690ba84b2e4bb15d73d3467e92fa06e0 Author: Dieter Verfaillie Date: Wed Nov 3 07:59:18 2010 +0100 dsextras.py: formatting cleanup, makes things readable Signed-off-by: Dieter Verfaillie dsextras.py | 148 +++++++++++++++++++++++++++++++++++++---------------------- 1 files changed, 93 insertions(+), 55 deletions(-) commit d03503d0412d173acb383926ab3c2d640dad3e3f Author: Dieter Verfaillie Date: Wed Nov 3 07:00:40 2010 +0100 dsextras.py: add ggc4 to MSVC compatible struct packing comment Signed-off-by: Dieter Verfaillie dsextras.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 8c62968e9f8467e24870b8c4f61112676eef4630 Author: Dieter Verfaillie Date: Wed Nov 3 06:56:32 2010 +0100 dsextras.py: use the pkgc_ functions instead of repeating pgk-config incantations all over the place Signed-off-by: Dieter Verfaillie dsextras.py | 15 ++++++--------- 1 files changed, 6 insertions(+), 9 deletions(-) commit b98277afc24886bbda400e0ad360992bffa77b7c Author: Dieter Verfaillie Date: Wed Nov 3 06:49:48 2010 +0100 dsextras.py: add pkgc_get_version and pkgc_get_defs_dir functions Signed-off-by: Dieter Verfaillie dsextras.py | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) commit a565558652ebc3fa49d7aea40d399b06bbe376c4 Author: Dieter Verfaillie Date: Wed Nov 3 06:45:05 2010 +0100 dsextras.py: PEP8: Comparisons to singletons like None should always be done with 'is' or 'is not', never the equality operators. Signed-off-by: Dieter Verfaillie dsextras.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 4b1ff0c7f9953f925d2178069263cca67ca7db02 Author: Dieter Verfaillie Date: Wed Nov 3 06:44:21 2010 +0100 dsextras.py: use True/False instead of 1/0 Signed-off-by: Dieter Verfaillie dsextras.py | 25 +++++++++++++------------ 1 files changed, 13 insertions(+), 12 deletions(-) commit 819a21cea831c3892040390e9446b78a91d1cbbe Author: Dieter Verfaillie Date: Wed Nov 3 06:28:04 2010 +0100 dsextras.py: rearrange imports Signed-off-by: Dieter Verfaillie dsextras.py | 58 +++++++++++++++++++++++++++++++--------------------------- 1 files changed, 31 insertions(+), 27 deletions(-) commit d20edbfdde2819f8d4fee8cb3170c126fcd31d5f Author: Dieter Verfaillie Date: Wed Nov 3 06:16:21 2010 +0100 Add distutils generated build/dist directories and eclipse configuration files to .gitignore Signed-off-by: Dieter Verfaillie .gitignore | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) commit 268d6ed2b0b1d266c612da4453b6117d9e14437e Author: John (J5) Palmieri Date: Thu Oct 28 15:32:28 2010 -0400 [gi] add tests for calling dir on a dynamic module tests/test_gi.py | 24 ++++++++++++++++++++++++ 1 files changed, 24 insertions(+), 0 deletions(-) commit f6386a6e0d225c83cdbe1add4c4d3ea51d3ec2f0 Author: Deepankar Sharma Date: Wed Oct 27 18:28:11 2010 -0400 [gi] dir() now works for modules https://bugzilla.gnome.org/show_bug.cgi?id=625093 gi/module.py | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) commit 28ed01c34c503cfb4f14fe7af7912060ca70aba6 Author: Simón Pena Date: Mon Sep 20 23:10:14 2010 +0200 Don't check the inner type when comparing gpointers When using pyg_pointer_richcompare to compare two objects, don't check their inner types. As we can't compare their private fields, nor get a proper compare function, we can consider them gpointers and compare them that way. https://bugzilla.gnome.org/show_bug.cgi?id=629552 gobject/pygpointer.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 1731f89e4b5a20c33976963e12a1f39a21d33fde Author: John (J5) Palmieri Date: Thu Oct 28 14:21:12 2010 -0400 Release GIL when calling into C functions Author: Daniel P. Berrange https://bugzilla.gnome.org/show_bug.cgi?id=629042 gi/pygi-invoke.c | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) commit 783e2e351ec7470bda6b441e51f387dd61543c4b Author: José Aliste Date: Fri Oct 15 14:30:10 2010 -0300 _gi.Repository : Implement missing info bindings. https://bugzilla.gnome.org/show_bug.cgi?id=632185 gi/pygi-info.c | 91 +++++++++++++++++++++++++++++++++++++++++++++++-------- gi/pygi-info.h | 7 ++++ 2 files changed, 84 insertions(+), 14 deletions(-) commit 2ca897273f52ae38f5e06e72c773a048e199eee5 Author: John (J5) Palmieri Date: Thu Oct 28 13:49:15 2010 -0400 include Python.h so that PY_VERSION_HEX gets defined gi/pygi-foreign-cairo.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 8b28b1d713df33931e255600ab98feda37a8e02a Author: John (J5) Palmieri Date: Thu Oct 28 13:47:34 2010 -0400 [gi] make overrides work for python 3.x protocols and alias for python 2.x gi/overrides/Gtk.py | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) commit 3c09710d2f68af9c16ce39fd25656147656a486a Author: Sebastian Pölsterl Date: Sat Oct 23 14:24:24 2010 +0200 Override Gtk.Widget.translate_coordinates to not return success value gi/overrides/Gtk.py | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) commit 9d4443b3de8c327d8645ddde0a7a6dc5b977d7b4 Author: Sebastian Pölsterl Date: Sat Oct 23 14:22:36 2010 +0200 Override Gtk.TreeViewColumn.cell_get_position to not return success value gi/overrides/Gtk.py | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) commit 6679d39ace06294e98f9d6fc911ed6fb27656010 Author: Sebastian Pölsterl Date: Sat Oct 23 14:21:36 2010 +0200 Override get_path_at_pos and get_dest_row_at_pos of Gtk.TreeView to not return success value gi/overrides/Gtk.py | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) commit 80b1b266fa68a5c67106871502017166628f71e4 Author: Sebastian Pölsterl Date: Sat Oct 23 14:20:38 2010 +0200 Override Gtk.TreeSortable.get_sort_column_id to not return success value gi/overrides/Gtk.py | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) commit 17cd0fb3a2d2ca0c6109c41727ba0b8c42217cd5 Author: Sebastian Pölsterl Date: Sat Oct 23 14:19:20 2010 +0200 Override forward_search and backward_search of Gtk.TextIter to not return success value gi/overrides/Gtk.py | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) commit 95c86fa31da3d2fe84db0e2b5bc2a6dc896c9223 Author: Sebastian Pölsterl Date: Sat Oct 23 14:18:09 2010 +0200 Override Gtk.TextBuffer.get_selection_bounds to not return success value gi/overrides/Gtk.py | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) commit da6d87460b9392c29d025a7eed9249fb604204bc Author: Sebastian Pölsterl Date: Sat Oct 23 14:17:04 2010 +0200 Override Gtk.RecentInfo.get_application_info to not return success value gi/overrides/Gtk.py | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) commit 0ed2e8772bdc405b0d0c7e0b2803e0e141abcb6a Author: Sebastian Pölsterl Date: Sat Oct 23 14:16:21 2010 +0200 Override Gtk.IMContext.get_surrounding to not return success value gi/overrides/Gtk.py | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) commit b85b445f15421209c0b4adf676d7c8218d6437c5 Author: Sebastian Pölsterl Date: Sat Oct 23 14:15:24 2010 +0200 Override get_item_at_pos, get_visible_range, get_dest_item_at_pos of Gtk.IconView to not return success value gi/overrides/Gtk.py | 19 +++++++++++++++++++ 1 files changed, 19 insertions(+), 0 deletions(-) commit 684d716192d58c972083e579e909bcd97f8a5025 Author: Sebastian Pölsterl Date: Sat Oct 23 14:13:47 2010 +0200 Override Gtk.Container.get_focus_chain to not return success value gi/overrides/Gtk.py | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) commit 8ec830c57fafbfe50d9619c6caba3cb95a00d688 Author: Sebastian Pölsterl Date: Sat Oct 23 14:12:44 2010 +0200 Override Gtk.ComboBox.get_active_iter to not return success value gi/overrides/Gtk.py | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) commit b483852904468722230903989e3451c7c6a24c0f Author: John (J5) Palmieri Date: Tue Oct 12 12:18:33 2010 -0400 [gi] make parameter check less strict when dealing with GValue params * Some GValue API can store a pointer to a python object for later use but our parameter checking was too strict to allow this * Add pyg_type_from_object_strict API which takes a strict boolean and returns PY_TYPE_OBJECT if no other GType can be found * Since we don't have enough info to genrically check GValue parameters use the less strict type guessing when encountering a GValue param * Other API stays the same and continues to do strict testing https://bugzilla.gnome.org/show_bug.cgi?id=622987 gi/pygi-argument.c | 17 +++++--------- gobject/gobjectmodule.c | 4 +- gobject/pygobject-private.h | 1 + gobject/pygobject.h | 2 + gobject/pygtype.c | 37 ++++++++++++++++++++++++++++--- tests/test_gi.py | 1 - tests/test_overrides.py | 50 +++++++++++++++++++++++++++++++++++++++--- 7 files changed, 90 insertions(+), 22 deletions(-) commit 8c87d622dcc6d76a981edfc5818fe67bb2e114e2 Author: John Stowers Date: Fri Oct 22 13:28:31 2010 +1300 Shortcut removal is not needed on post-uninstall pygobject_postinstall.py | 14 ++------------ 1 files changed, 2 insertions(+), 12 deletions(-) commit a3ed97fe6f80548801739fe6b72771b9eb6d93f7 Author: John Stowers Date: Thu Oct 21 13:25:35 2010 +1300 Disable shortcut creation in windows installer pygobject_postinstall.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit a3d6212b0abccef58f05d454c091936776413d98 Author: John (J5) Palmieri Date: Thu Oct 7 11:43:27 2010 -0400 overrides for all subclasses of dialog https://bugzilla.gnome.org/show_bug.cgi?id=631634 gi/overrides/Gtk.py | 94 ++++++++++++++++++++++++++++++++++++++++++++--- tests/test_overrides.py | 64 +++++++++++++++++++++++++++++++- 2 files changed, 151 insertions(+), 7 deletions(-) commit a87e3ba64b54e6df0b5b96af47c34e3be790b58f Author: Sebastian Pölsterl Date: Thu Oct 7 19:37:53 2010 +0200 Make TreeModel behave like in GTK-2.x Moved stuff from __getitem__ to get_iter. Added TreePath.__cmp__ get_iter_from_string throws ValueError. iterchildren() does not return None. Adjusted tests to new TreeModel and added TestGtk.test_tree_model method Added support for negative row and column indices Use rich comparison methods instead of __cmp__ Added TreeModel.__bool__/__nonzero__ Raise Error if tree path string is empty https://bugzilla.gnome.org/show_bug.cgi?id=631547 gi/overrides/Gtk.py | 195 +++++++++++++++++++++++++++++++++++++++++++++++ tests/test_overrides.py | 160 +++++++++++++++++++++++++++++++++++++-- 2 files changed, 349 insertions(+), 6 deletions(-) commit acfcc29af727fb67d0dfbbcc7cc14963ef21f1ea Author: John Stowers Date: Sat Oct 16 18:59:25 2010 +1300 Correctly build GIO on windows setup.py | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit 33b59fd7437009b6c3ed43412e171d2cc91ee317 Author: John Stowers Date: Sat Oct 16 18:17:28 2010 +1300 Require Python >= 2.6.0 for Windows build setup.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 544e0e4de4f5f97b0584eaf72ae8a081eca28ab6 Author: John Stowers Date: Sat Oct 16 17:41:01 2010 +1300 Fix depreciation warning in dsextras.py dsextras.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 239ff961778e4e1587404d8a70dfbe8630ab0623 Author: John Stowers Date: Sat Oct 16 17:34:50 2010 +1300 Fix build on windows gi/pygi-foreign.c | 5 ++++- gi/pygi.h | 5 ++++- setup.py | 4 ++-- 3 files changed, 10 insertions(+), 4 deletions(-) commit 9a2f81d63012fef23fdde2b4d903bd69601c07c6 Author: Michael Culbertson Date: Sat Oct 16 17:08:11 2010 +1300 Support for GCC4 in Windows distutils build - bug 626548 dsextras.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 27367c8dc3a3a31fdd778505b319cd3f4afb9e27 Author: John Stowers Date: Fri Oct 15 09:39:02 2010 +1300 Remove obsolete comments in dsextras.py dsextras.py | 11 ++--------- 1 files changed, 2 insertions(+), 9 deletions(-) commit b5f383f854fb8f72677828b029589320c59006d1 Author: John Stowers Date: Fri Oct 15 09:21:03 2010 +1300 Broken dsextras.py pkg-config check error message * Fixes bug 631962 dsextras.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit e1981da105b574e273ae6500fc6d25caf6af6aae Author: John (J5) Palmieri Date: Tue Sep 28 15:31:03 2010 -0400 add compat functions for the deprecated PyCObject api * Moved to using the PyCapsule API for python >= 3 * PyCObject is removed from Python 3.2 * It has also been deprecated in 2.7 but since we use the API in header files which are consumed by static binding modules, appling this for python 2.7 causes crashes unless the modules are recompiled, breaking ABI. It is safe to rely on for 2.7 because it will never be removed and there is talk of undeprecating it upstream. * There is no issues with static bindings under python 3 because they are not supported yet and most likely never will be. * Even if PyCObject is brought back in 3.2, PyCapsule is a much safer API which adds a poorman's type check when unboxing. https://bugzilla.gnome.org/show_bug.cgi?id=630844 gi/gimodule.c | 2 +- gi/pygi.h | 5 ++++- glib/glibmodule.c | 2 +- glib/pyglib-python-compat.h | 28 ++++++++++++++++++++++++++++ glib/pyglib.c | 6 +++--- glib/pygoptioncontext.c | 2 +- gobject/gobjectmodule.c | 2 +- gobject/pygobject.h | 6 ++++++ gobject/pygtype.c | 10 +++++----- 9 files changed, 50 insertions(+), 13 deletions(-) commit 03d2e2924e27a9d6cae89e5748f70e0a51be91c6 Author: Damien Caliste Date: Tue Sep 28 12:44:42 2010 +0200 Add __path__ attributes. Add an attribute __path__ to DynamicModule and IntrospectionModule, using the path of the typelib. https://bugzilla.gnome.org/show_bug.cgi?id=630807 gi/module.py | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit 28f9366c9cb382801bad080864f667c867daa3c7 Author: Sebastian Pölsterl Date: Sat Oct 9 17:40:40 2010 +0200 Override Gtk.TreeSelection.get_selected to not return success value. https://bugzilla.gnome.org/show_bug.cgi?id=631765 gi/overrides/Gtk.py | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) commit f01a7d9e8222663ce52100e061033f2745a5e7af Author: Vincent Untz Date: Thu Oct 7 09:42:24 2010 +0200 Make row optional in Gtk.TreeStore/ListStore.append override https://bugzilla.gnome.org/show_bug.cgi?id=631548 gi/overrides/Gtk.py | 36 ++++++++++++++++++++++-------------- 1 files changed, 22 insertions(+), 14 deletions(-) commit 1e1357f5fa1a034b0b707040d664ac46be6e23f7 Author: John (J5) Palmieri Date: Mon Oct 4 12:50:55 2010 -0400 Revert "add compat functions for the deprecated PyCObject api" This reverts commit f25e763d53e5cdd4de08e90b04aea4b4c4720ac0. I ment to commit another patch and ended up comitting both gi/gimodule.c | 2 +- gi/pygi.h | 5 +---- glib/glibmodule.c | 2 +- glib/pyglib-python-compat.h | 19 ------------------- glib/pyglib.c | 6 +++--- glib/pygoptioncontext.c | 2 +- gobject/gobjectmodule.c | 2 +- gobject/pygobject.h | 6 ------ gobject/pygtype.c | 10 +++++----- 9 files changed, 13 insertions(+), 41 deletions(-) commit 97774cb149c5b03d5ef82a5af3f19e2ce4d79d0b Author: John (J5) Palmieri Date: Mon Oct 4 12:43:31 2010 -0400 return NULL instead of -1 which fixes crash when introspection is turned off * see https://bugzilla.gnome.org/show_bug.cgi?id=631158 gi/pygi.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit f25e763d53e5cdd4de08e90b04aea4b4c4720ac0 Author: John (J5) Palmieri Date: Tue Sep 28 15:31:03 2010 -0400 add compat functions for the deprecated PyCObject api * Moved to using the PyCapsule API for python >= 2.7 https://bugzilla.gnome.org/show_bug.cgi?id=630844 gi/gimodule.c | 2 +- gi/pygi.h | 5 ++++- glib/glibmodule.c | 2 +- glib/pyglib-python-compat.h | 19 +++++++++++++++++++ glib/pyglib.c | 6 +++--- glib/pygoptioncontext.c | 2 +- gobject/gobjectmodule.c | 2 +- gobject/pygobject.h | 6 ++++++ gobject/pygtype.c | 10 +++++----- 9 files changed, 41 insertions(+), 13 deletions(-) commit 80b8ccd450fe4e3ea77b27e58bb63cabc2a2bb2b Author: John (J5) Palmieri Date: Tue Sep 28 15:28:16 2010 -0400 fix commit 7fe83108 which didn't use the compat functions for string handling glib/glibmodule.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 9562842907a9d94f6adae2c1bb20d6b1f189abda Author: John (J5) Palmieri Date: Tue Sep 28 13:15:57 2010 -0400 Python 3 fixes for dsextras and the python.m4 distribution files dsextras.py | 13 +++++++------ m4/python.m4 | 4 ++-- 2 files changed, 9 insertions(+), 8 deletions(-) commit 98f69957ee9e3037b0a05a037098e4d2133ca256 Author: John (J5) Palmieri Date: Mon Sep 27 14:01:31 2010 -0400 post release bump to 2.27.0 unstable * update hacking to fill in some holes in the release instructions HACKING | 6 ++++-- configure.ac | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) commit fd38010101411e6bc1ca9314657f418de660fa13 Author: John (J5) Palmieri Date: Mon Sep 27 12:03:10 2010 -0400 update NEWS for release NEWS | 93 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 93 insertions(+), 0 deletions(-) commit 7072d56b6cba13da97a052c75d1ae0c2cc417fd1 Author: Tomeu Vizoso Date: Sun Sep 26 08:37:31 2010 +0200 Pre-release version bump 2.26.0 configure.ac | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit a549f429d2ced7a78d5baa5e2f28f6750b4788f2 Author: John Stowers Date: Fri Sep 24 22:44:03 2010 +1200 Wrap g_get_system_{config,data}_dirs () * Also tidy up g_get_{cache,config,data}_dir to share common code glib/glibmodule.c | 68 +++++++++++++++++++++++++++++++++++++++-------------- 1 files changed, 50 insertions(+), 18 deletions(-) commit 328aca600714bdca89dfdb531c222ee561ede27e Author: John (J5) Palmieri Date: Fri Sep 24 12:16:22 2010 -0400 fixed make check and make dist tests/Makefile.am | 31 ++++++++++++++++++------------- 1 files changed, 18 insertions(+), 13 deletions(-) commit 27023fd56148dd17b5576c1e81e0fe851d9b8727 Author: John Stowers Date: Fri Sep 24 21:20:53 2010 +1200 Disable GI tests when introspection disabled tests/Makefile.am | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit 7fe831081cdd2e26f5d948326b9f89ea0694e752 Author: Tomeu Vizoso Date: Sat Jul 18 19:35:08 2009 +0200 Wrap g_uri_list_extract_uris. Fixes bug #584431 glib/glibmodule.c | 38 ++++++++++++++++++++++++++++++++++++++ gobject/__init__.py | 2 +- tests/Makefile.am | 3 ++- tests/test_uris.py | 15 +++++++++++++++ 4 files changed, 56 insertions(+), 2 deletions(-) commit d6721a59c294f2471142b8c32de2f647b7084bca Author: Paul Bolle Date: Thu Sep 23 15:38:40 2010 -0400 Fix a few uses of TRUE and FALSE in the docs docs/reference/pygio-mount.xml | 5 +++-- docs/reference/pyglib-functions.xml | 18 +++++++++--------- docs/reference/pyglib-maincontext.xml | 12 ++++++------ docs/reference/pyglib-mainloop.xml | 6 +++--- docs/reference/pygobject-functions.xml | 6 +++--- docs/reference/pygobject.xml | 4 ++-- 6 files changed, 26 insertions(+), 25 deletions(-) commit a08c9fffb4262ae678e17f90bbfb2d5f880cfad0 Author: Damien Caliste Date: Tue Sep 21 17:52:14 2010 +0200 pygi: always free the invocation_state struct In pygi-invoke.c, the invocation_state struct is never freed in case of success. Thus, always call _free_invocation_state() before leaving. Modify _free_invocation_state to avoid double free in case of caller-allocated GValue, once as a released argument in the _process routine and another time in the _free as the special case. So move all argument releasing code from the _process routine to the _free one. Modify the tests for the callback routines to return an integer value as specified in the GIR file. Make check is as successful as before (already existing error related to GVariant is still there). https://bugzilla.gnome.org/show_bug.cgi?id=630271 gi/pygi-invoke.c | 83 ++++++++++++++++++++------------------------- tests/test_everything.py | 4 ++- 2 files changed, 40 insertions(+), 47 deletions(-) commit 9714d765a34e246899f11b6792eea3aecce0b7ec Author: Tomeu Vizoso Date: Mon Sep 13 16:36:47 2010 +0200 Start implementing something equivalent to g_variant_new https://bugzilla.gnome.org/show_bug.cgi?id=629367 gi/gimodule.c | 20 +++++++ gi/overrides/GLib.py | 131 +++++++++++++++++++++++++++++++++++++++++-- gi/pygi-foreign-gvariant.c | 2 +- tests/test_everything.py | 16 ----- tests/test_overrides.py | 25 ++++++++ 5 files changed, 170 insertions(+), 24 deletions(-) commit fc45abdd9b55ab63556798ab0f04715be79dba08 Author: John (J5) Palmieri Date: Thu Sep 23 10:49:36 2010 -0400 fixed typo - missing comma in glib.option module * https://bugzilla.gnome.org/show_bug.cgi?id=627449 glib/option.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 4ed100f3183c6325dd04461484e877bb7d4131b1 Author: John (J5) Palmieri Date: Fri Sep 17 12:08:09 2010 -0400 add checks so we can compile under python 3 by setting PYTHON=python3 * compile for python 3 * disables gio if compiling under python 3.x * runs only pertinant tests https://bugzilla.gnome.org/show_bug.cgi?id=615872 configure.ac | 32 +++++++++++++++++++++++++++++--- tests/Makefile.am | 35 ++++++++++++++++++++--------------- tests/runtests.py | 4 ++++ 3 files changed, 53 insertions(+), 18 deletions(-) commit 269ff8564eeb597dc06c27e293354b7ff7a71a82 Author: Tomeu Vizoso Date: Fri Sep 17 15:50:47 2010 +0200 Rename static methods as functions In recent gobject-introspection releases, static methods have been removed and placed as functions in the namespace level. In a future releases it's planned to become static methods again but for now let's fix the tests. tests/test_gi.py | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) commit 2da8da589644d6125101210712defb1272a8abb1 Author: John (J5) Palmieri Date: Thu Sep 9 13:52:14 2010 -0400 fix a couple of compiler warnings https://bugzilla.gnome.org/show_bug.cgi?id=629199 gi/pygi-argument.c | 4 ++-- gi/pygi-struct.c | 2 +- gobject/gobjectmodule.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) commit 6769a4704f0876ac3baacd4da03ff16d9f0906be Author: John (J5) Palmieri Date: Thu Sep 9 13:55:17 2010 -0400 remove unused code * we use richcompare now https://bugzilla.gnome.org/show_bug.cgi?id=629198 gobject/pygtype.c | 9 --------- 1 files changed, 0 insertions(+), 9 deletions(-) commit 98f54f9d33996baeaa8c8c1240310f5396d03a1d Author: John (J5) Palmieri Date: Tue Sep 14 14:10:49 2010 -0400 Check the type of the instance object * in python 2 methods were added to classes as unbound methods and they would check the instance type to make sure it was correct * in python 3 for perfomance reasons methods are added to classes as simple functions which treat the instance as an untyped argument so no checks are made. * this patch adds a type check so that the correct errors are thrown in python 3 (python 2 this just adds another layer of redundancy should something change with type checking in the future) * since GI handles regular args and the instance arg slightly differently we had to split out the interface checks in _pygi_g_type_info_check_object in order to not duplicate code https://bugzilla.gnome.org/show_bug.cgi?id=615872 gi/pygi-argument.c | 182 +++++++++++++++++++++++++++------------------------ gi/pygi-argument.h | 2 + gi/pygi-invoke.c | 14 ++++ 3 files changed, 112 insertions(+), 86 deletions(-) commit 5d79498d38b147b66ae72c1481e397160491e8d6 Author: John (J5) Palmieri Date: Wed Sep 15 10:26:20 2010 -0400 include the correct pycairo version https://bugzilla.gnome.org/show_bug.cgi?id=615872 gi/pygi-foreign-cairo.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) commit b855562e5c0019cd7e4982fe00c467ede9e3926d Author: John (J5) Palmieri Date: Thu Sep 9 22:16:58 2010 -0400 Use PyMapping_Keys to determine if an object is a dict (py3k fix) * in Py3k PyMapping_Check returns true for sequences such as strings and lists. Since we need to get the keys anyway, and it returns NULL if this is not a dict, this is a much better test, even in Py2 https://bugzilla.gnome.org/show_bug.cgi?id=615872 gi/pygi-argument.c | 10 +++------- 1 files changed, 3 insertions(+), 7 deletions(-) commit 0e72e28c6c5502c7db5103cf1299c9f0e6689fdd Author: John (J5) Palmieri Date: Thu Sep 9 18:44:11 2010 -0400 fix handling of UINT64 and INT64 arguments in py3k * decode to the right sized C long https://bugzilla.gnome.org/show_bug.cgi?id=615872 gi/pygi-argument.c | 20 ++++++++++++-------- 1 files changed, 12 insertions(+), 8 deletions(-) commit d5666d99a1c0396b7da0cb14f9f4ff8892da7e2e Author: John (J5) Palmieri Date: Thu Sep 9 17:35:10 2010 -0400 properly handle ulongs properties in py3k * If this is a PyLong object pull use AsUnsignedLong https://bugzilla.gnome.org/show_bug.cgi?id=615872 gobject/pygtype.c | 31 +++++++++++++++++-------------- 1 files changed, 17 insertions(+), 14 deletions(-) commit 3d431c7dd0de97db10cb0c00c39d9c1837bed2f2 Author: Tomeu Vizoso Date: Fri Sep 17 12:14:56 2010 +0200 Specify encoding of tests/test_gi.py tests/test_gi.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit a808bdabb9fa6f4a9b9ce42e1cce05fb37403f0f Author: John (J5) Palmieri Date: Thu Sep 9 13:24:30 2010 -0400 use actual unicode in the tests on py3k, not the byte representation https://bugzilla.gnome.org/show_bug.cgi?id=615872 tests/test_gi.py | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) commit 928f4485041d80d0c36ff2daeae4bcd09bd0bde4 Author: John (J5) Palmieri Date: Thu Sep 9 12:45:21 2010 -0400 s/METH_KEYWORDS/METH_VARARGS|METH_KEYWORDS/ when defining object methods * in Py3k the METH_KEYWORDS flag by itself is invalid. A method must be defined with both the METH_VARARGS and METH_KEYWORDS flags. https://bugzilla.gnome.org/show_bug.cgi?id=615872 glib/pygiochannel.c | 30 +++++++++++++++--------------- glib/pygsource.c | 4 ++-- gobject/pygobject.c | 2 +- 3 files changed, 18 insertions(+), 18 deletions(-) commit b5ee20afa4399c7689fbec8939fa20b927eeb782 Author: John (J5) Palmieri Date: Thu Sep 9 08:04:40 2010 -0400 fix subclassing PyLong by calling __new__ correctly https://bugzilla.gnome.org/show_bug.cgi?id=615872 glib/pygspawn.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit a499b2f0d622b671bd154544f66b73f1278e66ed Author: John (J5) Palmieri Date: Thu Sep 9 07:56:44 2010 -0400 minor py3k fixups for python modules * add _basestring and _bytes and _callable wrappers * use items instead of iteritems and range instead of xrange fix py3k modules https://bugzilla.gnome.org/show_bug.cgi?id=615872 gi/overrides/Gtk.py | 24 ++++++++++++++++-------- glib/option.py | 16 ++++++++++++---- 2 files changed, 28 insertions(+), 12 deletions(-) commit dec9001d26c97949e7b3578086cb35e98075c047 Author: John (J5) Palmieri Date: Thu Sep 9 07:36:04 2010 -0400 minor fixes in tests for py3k compat * 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 tests/compathelper.py | 18 ++++++++++++++++++ tests/test_everything.py | 5 +++-- tests/test_mainloop.py | 3 ++- tests/test_option.py | 6 ++++-- tests/test_overrides.py | 4 ++-- tests/test_properties.py | 6 +++--- 6 files changed, 32 insertions(+), 10 deletions(-) commit 09a0daeedf49eaf376c1288be5743b57fbc76d51 Author: Colin Walters Date: Thu Sep 9 16:25:51 2010 -0400 compilation: Fix syntax error gi/pygi-info.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 9f7afd6d5afd8c1a5f36bf1295814757b71c8cbc Author: Tomeu Vizoso Date: Thu Sep 9 22:17:00 2010 +0200 Add missing file gi/overrides/GLib.py | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 48 insertions(+), 0 deletions(-) commit 306b792ac97a458ddee59fb86d66453495117f3e Author: Tomeu Vizoso Date: Thu Jul 22 13:48:51 2010 +0100 Add override for GLib.Variant.new_tuple * gi/gimodule.c: Add _wrap_pyg_variant_new_tuple * gi/overrides/GLib.py: Override Variant.new_tuple and Variant.get_string * gi/pygi-type.[hc]: split _pygi_type_import_by_name out from _pygi_type_import_by_gi_info * gi/types.py: Never override gobject.TYPE_NONE * tests/test_everything.py: Add tests for GVariant tuples https://bugzilla.gnome.org/show_bug.cgi?id=625050 gi/gimodule.c | 38 ++++++++++++++++++++++++++++++++++++++ gi/overrides/Makefile.am | 1 + gi/pygi-type.c | 15 +++++++++------ gi/pygi-type.h | 2 ++ gi/types.py | 1 + tests/test_everything.py | 9 +++++++++ 6 files changed, 60 insertions(+), 6 deletions(-) commit 22e53aa2ed9cf6173a877b0af6928d5ab8da2f4f Author: John (J5) Palmieri Date: Wed Sep 8 13:08:48 2010 -0400 fix for changes in the gi test libraries tests/test_everything.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 246877074617b0e9c3b2ba2a5395a73e0ed9cd5d Author: John (J5) Palmieri Date: Wed Sep 8 13:08:07 2010 -0400 Gtk.DialogFlags.NO_SEPARATOR has been removed in Gtk 3.0 gi/overrides/Gtk.py | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) commit f92fc48e7e2ec50996e994ccb7d08a61e7374f22 Author: John (J5) Palmieri Date: Wed Sep 8 12:35:09 2010 -0400 no need to offset arg positions when is_method is true * The old GI libraries required we offset arg positions for the missing self argument. The new library fixes this so we don't have to offset anymore. https://bugzilla.gnome.org/show_bug.cgi?id=629087 gi/pygi-callbacks.c | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-) commit 8c517de2d278bdef641c72b8f2919a3924290ec1 Author: Tomeu Vizoso Date: Fri Aug 20 14:54:35 2010 +0200 gi: Add support for more property types https://bugzilla.gnome.org/show_bug.cgi?id=627494 gi/pygi-property.c | 156 +++++++++++++++++++++++++++++++++++----------- tests/test_everything.py | 34 ++++++++++ 2 files changed, 154 insertions(+), 36 deletions(-) commit 6d183d1fff55d54569ba3e1f90a10284df74fd40 Author: John (J5) Palmieri Date: Fri Sep 3 12:04:16 2010 -0400 use PyObject_SetAttrString, not PyDict_SetItemString when setting __gtype__ * When registering a gtype wrapper we used to set tp_dict directly. This works in python 2 but python 3 seems to handle attributes in a slightly different way where the tp_dict and attr get out of sync. By setting the attr directly we avoid this issue. * Note that there are many more places where we set __gtype__ using tp_dict however for objects which are not instantiated yet we have to set tp_dict directly. * Since this one change fixes a lot of failed tests, for now we ignore the other places where we set __gtype__. If we run into more issues dealing with __gtype__ we can take a closer look later. https://bugzilla.gnome.org/show_bug.cgi?id=627878 https://bugzilla.gnome.org/show_bug.cgi?id=615872 gobject/gobjectmodule.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit b7bf4269682a3335f5e0a52b46fa721af134d09a Author: Tomeu Vizoso Date: Wed Sep 1 11:03:40 2010 +0200 Rename GArgument to GIArgument gi/pygi-argument.c | 52 ++++++++++++++++++++++---------------------- gi/pygi-argument.h | 10 ++++---- gi/pygi-closure.c | 34 ++++++++++++++-------------- gi/pygi-foreign-cairo.c | 8 +++--- gi/pygi-foreign-gvariant.c | 4 +- gi/pygi-foreign-gvariant.h | 4 +- gi/pygi-foreign.c | 12 +++++----- gi/pygi-foreign.h | 8 +++--- gi/pygi-info.c | 8 +++--- gi/pygi-invoke.c | 28 +++++++++++----------- gi/pygi-property.c | 4 +- gi/pygi.h | 16 ++++++------ 12 files changed, 94 insertions(+), 94 deletions(-) commit 7197f85c9be2b03636639ac909ca2c3170653509 Author: John (J5) Palmieri Date: Wed Aug 18 10:29:19 2010 -0400 fix up tests so they run in py3k * add a compat helper that should only be used by tests * fix long notation to use the compat helper instead * add parens to print statements * use compatable try/except pattern https://bugzilla.gnome.org/show_bug.cgi?id=615872 gobject/propertyhelper.py | 16 +++++++++++----- tests/compathelper.py | 32 ++++++++++++++++++++++++++++++++ tests/test_option.py | 7 ++++++- tests/test_properties.py | 24 ++++++++++++++---------- tests/test_signal.py | 14 +++++++------- tests/test_source.py | 4 ++-- 6 files changed, 72 insertions(+), 25 deletions(-) commit 720e614acdbcf734d4bcccc403e639b5a5bcae24 Author: Colin Walters Date: Fri Aug 20 10:58:48 2010 -0400 tests: Port to new introspection tests 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 configure.ac | 5 +- gi/pygi-argument.c | 9 +-- gi/pygi-invoke.c | 147 +++++---------------------------------------- tests/Makefile.am | 42 ++++++++++++- tests/test_everything.py | 6 +- tests/test_gi.py | 151 +++++++++------------------------------------- 6 files changed, 93 insertions(+), 267 deletions(-) commit f6c4d9e58c8f05cb2d82e158c9eb8480308565bd Author: John (J5) Palmieri Date: Fri Aug 20 10:43:58 2010 -0400 we need to specify tp_hash since we overide tp_richcompare https://bugzilla.gnome.org/show_bug.cgi?id=615872 gobject/pygenum.c | 1 + gobject/pygflags.c | 1 + 2 files changed, 2 insertions(+), 0 deletions(-) commit c03e6b482548aee99362356807c804f8834fad2b Author: John Ehresman Date: Thu Apr 15 17:11:30 2010 -0400 working enum/flags/pid subclasses of long https://bugzilla.gnome.org/show_bug.cgi?id=615872 glib/pygspawn.c | 7 +++-- gobject/pygenum.c | 61 ++++++++++++++++++++++++------------------ gobject/pygflags.c | 76 ++++++++++++++++++++++------------------------------ 3 files changed, 71 insertions(+), 73 deletions(-) commit 0db676fd2296750a46ba0fb069e472da06ecc53a Author: John (J5) Palmieri Date: Wed Aug 18 11:03:32 2010 -0400 make vfuncs work in py3k * methods now export __func__ instead of im_func for getting the function out of a method closure * however classes no longer return unbound methods in py3k and instead return the actual function * in python 2 we use im_func when getting the function from the vfunc closure * in py3k we simply assign vfunc to the function https://bugzilla.gnome.org/show_bug.cgi?id=615872 gi/types.py | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) commit 286dcd0c6455961d818ac7f05f80f82435abc1dc Author: John (J5) Palmieri Date: Tue Aug 17 15:43:42 2010 -0400 make cairo module compile in py3k https://bugzilla.gnome.org/show_bug.cgi?id=615872 gi/Makefile.am | 2 +- gi/pygi-foreign-cairo.c | 17 +++++++---------- 2 files changed, 8 insertions(+), 11 deletions(-) commit bda58ec34fc443fe1108afc8532bec50f6fd0b44 Author: John (J5) Palmieri Date: Tue Aug 17 02:33:45 2010 -0400 fix exceptions so they work in python 3.x https://bugzilla.gnome.org/show_bug.cgi?id=615872 gi/module.py | 2 +- gi/types.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 427a3c8053feca35ccd746575760ac8a0ed50a12 Author: John (J5) Palmieri Date: Tue Aug 17 02:24:44 2010 -0400 make the gi module compile under 3.x * include the compat macros * use GLIB_MODULE_START/END to define module * add PyInit__gi to the exported symbols https://bugzilla.gnome.org/show_bug.cgi?id=615872 gi/Makefile.am | 2 +- gi/gimodule.c | 24 +++++++++--------------- 2 files changed, 10 insertions(+), 16 deletions(-) commit 1dee5dcd2b1747b4a4af438c0443d7930e4802db Author: John (J5) Palmieri Date: Tue Aug 17 02:14:14 2010 -0400 fix up testshelper module so it compiles in python 3.x * include the compat header * fix up PyInts to be PYGLIB_Long * Use PYGLIB_DEFINE_TYPE macros to define module objects * Use PYGLIB_MODULE_START/END to define modules https://bugzilla.gnome.org/show_bug.cgi?id=615872 tests/Makefile.am | 2 +- tests/testhelpermodule.c | 221 ++++++---------------------------------------- 2 files changed, 28 insertions(+), 195 deletions(-) commit 1ff83a2ccb7301c8f675913f1c4f6118ea50b9c7 Author: John (J5) Palmieri Date: Mon Aug 16 21:14:27 2010 -0400 convert to using PYGLIB_DEFINE_TYPE for module objects https://bugzilla.gnome.org/show_bug.cgi?id=615872 gi/pygi-boxed.c | 43 ++----------- gi/pygi-info.c | 171 ++++++++++++++++++++------------------------------ gi/pygi-repository.c | 39 ++--------- gi/pygi-struct.c | 45 ++----------- 4 files changed, 88 insertions(+), 210 deletions(-) commit 1efa2b12913b194d433c17014bc1077271a6ca32 Author: John (J5) Palmieri Date: Mon Aug 16 13:51:05 2010 -0400 some more p3k PyString and PyInt eradication in GI * add the glib dir to the includes list in the build * make sure we include the compat macros * add GLIB_PyBytes_FromString to compat macros * add GLIB_PyNumber_Long to compat macros * use RichCompare instead of Compare https://bugzilla.gnome.org/show_bug.cgi?id=615872 gi/Makefile.am | 2 +- gi/pygi-argument.c | 96 ++++++++++++++++++++++++++----------------- gi/pygi-boxed.c | 1 + gi/pygi-info.c | 13 ++++-- gi/pygi-private.h | 23 ++++++++++ gi/pygi-repository.c | 8 ++- gi/pygi-struct.c | 1 + glib/pyglib-python-compat.h | 6 +++ 8 files changed, 103 insertions(+), 47 deletions(-) commit 6b902c66200c1684513a9ef31bdef3f2ff64e4fa Author: Tomeu Vizoso Date: Fri Aug 20 09:28:57 2010 +0200 pyglib: Fix typo (Leo Singer) https://bugzilla.gnome.org/show_bug.cgi?id=627408 glib/option.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 3cefffecc1317b6ad77a5ed936bfb990d16bf9d3 Author: Gustavo Noronha Silva Date: Thu Aug 19 18:45:05 2010 -0300 Add defines for size_t and ssize_t conversion functions These missing defines cause the resulting module to have unresolved symbols, rendering it unusable. https://bugzilla.gnome.org/show_bug.cgi?id=627440 glib/pyglib-python-compat.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit d45c7031876f355e15409f00f3e50e77d18f8f4b Author: Colin Walters Date: Thu Aug 19 17:50:35 2010 -0400 pyglib: Fix a compiler warning glib/pyglib.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 0fe6828ddce187ac1897a1f02ca1c5480796d5b9 Author: Tomeu Vizoso Date: Wed Aug 18 20:36:51 2010 +0200 Don't force gtk 2.0 pygi-convert.sh | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) commit ac59c18a4f2bfff47c862b763aaf1d1cf136a4f5 Author: Steve Frécinaux Date: Tue Aug 17 14:49:30 2010 +0200 Fix some ref leaks in hook_up_vfunc_implementation() https://bugzilla.gnome.org/show_bug.cgi?id=627143 gi/gimodule.c | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) commit 18ee0db673c2fa42244ab85950bbf4840edb674b Author: John (J5) Palmieri Date: Thu Aug 12 12:16:31 2010 -0400 handle strings correctly in gio gio/gappinfo.override | 5 +++++ gio/pygio-utils.c | 42 +++++++++++++++++++++++++++++++++++------- 2 files changed, 40 insertions(+), 7 deletions(-) commit 45ab0c03110c911b47519941dfd753326891b5e0 Author: John (J5) Palmieri Date: Wed Aug 11 16:13:59 2010 -0400 make giomodule compile under py3k https://bugzilla.gnome.org/show_bug.cgi?id=615872 gio/giomodule.c | 153 ++++++++++++++++++++++++++++--------------------------- 1 files changed, 78 insertions(+), 75 deletions(-) commit c52f8ed3ae8cb66a03b5695e980770c3f467f755 Author: John (J5) Palmieri Date: Wed Aug 11 16:04:48 2010 -0400 for py3k we need to do some more processing to get bytes from a unicode string https://bugzilla.gnome.org/show_bug.cgi?id=615872 gi/pygi-argument.c | 31 +++++++++++++++++++++++++++---- 1 files changed, 27 insertions(+), 4 deletions(-) commit de9eae4dfcce856a42cc5c569a5b9683c28d0eeb Author: John (J5) Palmieri Date: Wed Aug 11 15:03:55 2010 -0400 use Bytes instead of Unicode when reading io https://bugzilla.gnome.org/show_bug.cgi?id=615872 glib/pygiochannel.c | 30 ++++++++++++++++++++++++------ 1 files changed, 24 insertions(+), 6 deletions(-) commit 5824ff98175b749dbcfa72d24b994230b6e05377 Author: John (J5) Palmieri Date: Mon Aug 9 15:16:51 2010 -0400 prefix compat macros with PYGLIB * refactor from John Ehresman py3k branch * fix up some extranious PyString calls * remove duplicate macros from pyglib.h that are in pyglib-python-compat.h * pygobject.h can't import pyglib-python-compat.h so add codepaths for both Py3k and legacy code instead of using macros https://bugzilla.gnome.org/show_bug.cgi?id=615872 glib/glibmodule.c | 48 +++++----- glib/pygiochannel.c | 46 +++++----- glib/pyglib-python-compat.h | 153 +++++++++++++++++++++++------- glib/pyglib.c | 22 ++-- glib/pyglib.h | 14 --- glib/pygoptioncontext.c | 4 +- glib/pygsource.c | 16 ++-- glib/pygspawn.c | 32 +++--- gobject/gobjectmodule.c | 216 +++++++++++++++++++++--------------------- gobject/pygboxed.c | 2 +- gobject/pygenum.c | 84 +++++++++--------- gobject/pygflags.c | 122 ++++++++++++------------ gobject/pygobject-private.h | 12 +- gobject/pygobject.c | 46 +++++----- gobject/pygobject.h | 23 +++++ gobject/pygparamspec.c | 24 +++--- gobject/pygpointer.c | 2 +- gobject/pygtype.c | 170 +++++++++++++++++----------------- 18 files changed, 563 insertions(+), 473 deletions(-) commit 231e934cc01d061e81bb60d35127a133cd0e1793 Author: John (J5) Palmieri Date: Mon Aug 16 10:14:04 2010 +0200 Gtk.Button unit tests https://bugzilla.gnome.org/show_bug.cgi?id=622606 tests/test_overrides.py | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) commit f07cfde377e42686c6b80f56cac62338ee333e61 Author: Johan Dahlin Date: Mon Aug 16 10:08:38 2010 +0200 [Gtk] Add overrides for Button https://bugzilla.gnome.org/show_bug.cgi?id=622606 gi/overrides/Gtk.py | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) commit 65a06a7216163c7e65b32c5b5f3388faa7fda5d6 Author: Simon van der Linden Date: Thu Aug 12 16:18:58 2010 +0200 Make Cairo an optional dependency Add the --enable-cairo configure argument. https://bugzilla.gnome.org/show_bug.cgi?id=616732 configure.ac | 15 ++++++++++++--- gi/Makefile.am | 20 ++++++++++++-------- 2 files changed, 24 insertions(+), 11 deletions(-) commit b83507263231d9bf47f6c8450583e3d03f0a3b5b Author: Tomeu Vizoso Date: Mon Aug 16 09:55:35 2010 +0200 Don't import again PyGObject (John Ralls) https://bugzilla.gnome.org/show_bug.cgi?id=626996 gi/pygi.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 0dc3656070f496431829c6e8441ca17129c569f8 Author: John (J5) Palmieri Date: Mon Aug 9 16:11:55 2010 -0400 move to using richcompare slot instead of compare https://bugzilla.gnome.org/show_bug.cgi?id=615872 glib/pygiochannel.c | 18 +++++++--- glib/pyglib.c | 85 +++++++++++++++++++++++++++++++++++++++++++++++ glib/pyglib.h | 3 ++ glib/pygmaincontext.c | 17 ++++++--- glib/pygmainloop.c | 17 ++++++--- glib/pygoptioncontext.c | 18 ++++++---- glib/pygoptiongroup.c | 22 +++++++----- gobject/pygboxed.c | 18 +++++++--- gobject/pygobject.c | 44 +++++++++++++++++------- gobject/pygparamspec.c | 19 +++++++--- gobject/pygpointer.c | 17 ++++++--- gobject/pygtype.c | 26 +++++++++++--- 12 files changed, 233 insertions(+), 71 deletions(-) commit b426e531dc53d4b50e572a2da19733479635e662 Author: Simon van der Linden Date: Thu Aug 12 18:09:33 2010 +0200 Replace autogen.sh by a newer version It pulls automake 1.10 or 1.11. Greatly inspired from GLib's. https://bugzilla.gnome.org/show_bug.cgi?id=625661 autogen.sh | 506 +++++++----------------------------------------------------- 1 files changed, 58 insertions(+), 448 deletions(-) commit 769645e00d6d055a4cd802454dbfc1bbfcbee691 Author: Simon van der Linden Date: Thu Aug 12 14:11:55 2010 +0200 Fix some warnings pyglib.c: In function ‘pyglib_gerror_exception_check’: pyglib.c:362: warning: format not a string literal and no format arguments pyglib.c:371: warning: format not a string literal and no format arguments gio.override: In function 'pygio_notify_allocate_buffer': gio.override:144:13: warning: format '%d' expects type 'int', but argument 3 has type 'gsize' https://bugzilla.gnome.org/show_bug.cgi?id=625437 gio/gio.override | 2 +- glib/pyglib.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) commit e4c4cccb588b258dbcd21702e6cddcfe9ebe4ffc Author: Simon van der Linden Date: Thu Aug 12 11:09:37 2010 +0200 Fix caller-allocates emergency free. In the state, args, args[i], arg_infos[i], and arg_type_infos[i] must not be NULL in order to be able caller-allocates. This patch adds those conditions. Moreover, the interface info needs to be freed afterwards. https://bugzilla.gnome.org/show_bug.cgi?id=626684 gi/pygi-invoke.c | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) commit 0ab967ca40ddcffc2834d4e656bb2010c6b9bdda Author: Simon van der Linden Date: Thu Aug 12 10:46:17 2010 +0200 Remove useless checks. No need to check for state->arg_infos, state->arg_type_infos, and state->args_is_auxiliary to be NULL, they are always allocated. https://bugzilla.gnome.org/show_bug.cgi?id=626684 gi/pygi-invoke.c | 14 +++----------- 1 files changed, 3 insertions(+), 11 deletions(-) commit e17be9cd288fee5d7cb174d9d577eb9279044c67 Author: Tomeu Vizoso Date: Tue Aug 10 17:40:16 2010 +0200 Call valgrind with G_SLICE=always-malloc G_DEBUG=gc-friendly tests/Makefile.am | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 8be59c37dd57acc51875c7189ca09d728b729013 Author: Ignacio Casal Quinteiro Date: Wed Aug 4 13:43:17 2010 +0200 Fix some warnings. gi/pygi-argument.c | 2 -- gi/pygi-invoke.c | 2 +- gi/pygi-struct.c | 1 - 3 files changed, 1 insertions(+), 4 deletions(-) commit 529eca6054e9a7e2267f1529e317c2373932762f Author: Simon van der Linden Date: Fri Jul 30 22:39:40 2010 +0200 Add myself as a maintainer MAINTAINERS | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) commit caac75a6ed6f671b37e38a78e71b87906a00ac1b Author: Tomeu Vizoso Date: Fri Jul 30 14:14:16 2010 +0200 Properly allocate boxed structs that are (caller-allocates) * gi/pygi-boxed.[hc]: Refactor out the allocation of boxed structs * gi/pygi-invoke.c: Don't use g_malloc0 for boxed structs that are (caller-allocates) * tests/test_overrides.py: Split the TreeView tests https://bugzilla.gnome.org/show_bug.cgi?id=625653 gi/pygi-boxed.c | 50 +++++++++++++++++++++++++++++++---------------- gi/pygi-boxed.h | 10 +++++--- gi/pygi-invoke.c | 16 +++++--------- tests/test_overrides.py | 39 +++++++++++++++++------------------ 4 files changed, 64 insertions(+), 51 deletions(-) commit 99c7322898c00a576c7319ea0a7c808446253133 Author: Toms Baugis Date: Fri Jul 30 15:44:21 2010 +0200 override gdk.Event to return attribute from the proper event object https://bugzilla.gnome.org/show_bug.cgi?id=620593 gi/overrides/Gdk.py | 48 +++++++++++++++++++++++++++++++++++++++++++++++ gi/pygi-invoke.c | 4 --- tests/test_overrides.py | 10 +++++++++ 3 files changed, 58 insertions(+), 4 deletions(-) commit 55814e722c2ae11310f346790c9221e4fad92b50 Author: John (J5) Palmieri Date: Fri Jul 30 06:30:48 2010 -0400 check if z# needs an int or Py_ssize_t https://bugzilla.gnome.org/show_bug.cgi?id=625438 gio/gio.override | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) commit 477315465d0a6d84b51e146e86e254873bc564ff Author: John (J5) Palmieri Date: Fri Jul 30 06:43:06 2010 -0400 make sure we parse parameters to python object vars not glib vars * py_flags was already set up but due to a typo &flags was being passed instead https://bugzilla.gnome.org/show_bug.cgi?id=625438 gio/gfile.override | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) commit faa7d4eece7ddb698725098970c2478a3b45c4d5 Author: Paul Bolle Date: Fri Jul 30 10:56:01 2010 +0200 Make an example and a demo work out of the box cairo-demo.py and gtk-demo.py need the two (kind of) magic lines regarding pygtk to work out of the box. So add those. Signed-off-by: Paul Bolle https://bugzilla.gnome.org/show_bug.cgi?id=625638 demos/gtk-demo/gtk-demo.py | 2 ++ examples/cairo-demo.py | 2 ++ 2 files changed, 4 insertions(+), 0 deletions(-) commit c9da5782e6c633d9af43ee85075e9ee65db09780 Author: John (J5) Palmieri Date: Fri Jul 9 13:14:42 2010 -0400 make sure caller allocated structs are freed when they go out of scope * Move struct transfer checks from pygi-arguments to pygi-invoke * add better warning if an unknown struct is fully transfered * only free GValues we create in the invoke cleanup. All other structs get cleaned up when they go out of scope in python * Fixes issues with caller allocated treeiters getting freed to early * this is a fix to crashes in the current test suite when API's returning TreeIters were annotated as out caller-allocates so no new tests are needed https://bugzilla.gnome.org/show_bug.cgi?id=623969 gi/pygi-argument.c | 13 +++++-------- gi/pygi-invoke.c | 46 ++++++++++++++++++++++++++++++++++++++++------ 2 files changed, 45 insertions(+), 14 deletions(-) commit e0a85305cd107aae5902e524afd074cd8c329927 Author: Tomeu Vizoso Date: Fri Jul 30 10:35:33 2010 +0200 Revert "override gdk.Event to return attribute from the proper event object." Pushed by mistake, we still need testcases This reverts commit e7bb3954880568884ca66e7751ede689dc2f24f6. gi/overrides/Gdk.py | 44 -------------------------------------------- 1 files changed, 0 insertions(+), 44 deletions(-) commit 61ffb8d6d08fcfe638f71ea97ceac3a366e5536d Author: Paul Bolle Date: Thu Jul 29 22:55:28 2010 +0200 PyGI: properly quit cairo-demo Signed-off-by: Paul Bolle https://bugzilla.gnome.org/show_bug.cgi?id=625619 examples/cairo-demo.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit e7bb3954880568884ca66e7751ede689dc2f24f6 Author: Toms Baugis Date: Tue Jul 27 21:37:16 2010 +0200 override gdk.Event to return attribute from the proper event object. https://bugzilla.gnome.org/show_bug.cgi?id=620593 gi/overrides/Gdk.py | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 44 insertions(+), 0 deletions(-) commit 0a9f1da052fd33dcef81d0e267fc7972f02c7888 Author: Simon van der Linden Date: Wed Jul 28 14:56:00 2010 +0200 Clean and improve the test infrastructure To run select tests, use for instance: % make check TEST_NAMES='test_everything test_gi.TestConstant' It works with check.gdb and check.valgrind too. https://bugzilla.gnome.org/show_bug.cgi?id=625488 Makefile.am | 5 --- tests/Makefile.am | 65 ++++++++++++++++++++----------------------- tests/common.py | 47 ------------------------------- tests/runtests.py | 43 +++++++++++------------------ tests/test_gcancellable.py | 4 +- tests/test_gi.py | 3 -- tests/test_gicon.py | 3 +- tests/test_gio.py | 3 +- tests/test_gobject.py | 3 +- tests/test_gresolver.py | 4 +- tests/test_gsocket.py | 4 ++- tests/test_interface.py | 6 +++- tests/test_mainloop.py | 11 +++----- tests/test_signal.py | 4 ++- tests/test_source.py | 4 +- tests/test_subprocess.py | 5 +--- tests/test_thread.py | 5 +++- tests/test_unknown.py | 5 +++- 18 files changed, 82 insertions(+), 142 deletions(-) commit 82f4cb5ebf5d992493b7a2f74cfd5f175e19eb76 Author: Tomeu Vizoso Date: Thu Jul 29 12:34:19 2010 +0200 Add some more transformations to pygi-convert.sh pygi-convert.sh | 37 +++++++++++++++++++++++++++++-------- 1 files changed, 29 insertions(+), 8 deletions(-) commit de519adcd21947a0aef7932cdecb78cef200c85e Author: Tomeu Vizoso Date: Wed Jul 28 14:42:36 2010 +0200 Adapt to API changes: g_irepository_enumerate_versions gi/importer.py | 2 +- gi/pygi-repository.c | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) commit 01cd9abb43f93f9a57a5a05b6dc9560614e666e3 Author: Tomeu Vizoso Date: Wed Jul 28 12:26:48 2010 +0200 Add GValue<->GArgument marshalling for some more types gi/pygi-property.c | 37 ++++++++++++++++++++++++++++++++++++- 1 files changed, 36 insertions(+), 1 deletions(-) commit ddffa70c3ee0e837070f390632bc692430f79171 Author: Tomeu Vizoso Date: Wed Jul 28 11:10:42 2010 +0200 Chain up with the non-introspection implementation for properties if needed gobject/pygobject.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) commit 045433a1f8167205dc8eae613dcb8835d02c8916 Author: Tomeu Vizoso Date: Wed Jul 28 10:59:49 2010 +0200 Improve error reporting for missing attributes in introspection modules gi/module.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 6655a79b2f13fe417aefdf6aebab0f2d6162ba00 Author: Tomeu Vizoso Date: Tue Jul 27 21:52:49 2010 +0200 Implement getting and setting properties using introspection information. This allows us to use information not present in GObject such as transfer and element types. https://bugzilla.gnome.org/show_bug.cgi?id=620808 gi/Makefile.am | 2 + gi/gimodule.c | 2 + gi/pygi-argument.c | 2 + gi/pygi-private.h | 1 + gi/pygi-property.c | 226 ++++++++++++++++++++++++++++++++++++++++++++++ gi/pygi-property.h | 39 ++++++++ gi/pygi.h | 41 +++++++++ gobject/pygobject.c | 9 ++ tests/test_everything.py | 19 ++++ 9 files changed, 341 insertions(+), 0 deletions(-) commit 85f4572b3ffbfa364ebb2e470eab759edc557b36 Author: Tomeu Vizoso Date: Tue Jul 27 21:32:41 2010 +0200 Readd Gdk.Rectangle override for Gtk-2.0 gi/overrides/Gdk.py | 19 +++++++++++++++++++ 1 files changed, 19 insertions(+), 0 deletions(-) commit 2082ee35e2a33f52bf1e8ec49cb4a43398e91989 Author: Tomeu Vizoso Date: Tue Jul 27 18:25:27 2010 +0200 Allow specifying a version when loading a typelib * gi/importer.py: Defer loading the typelib until first usage. * gi/module.py: Load the typelib in IntrospectionModule(). * gi/overrides/*.py: Adapt to API change. * gi/pygi-repository.c: Add wrappers for g_irepository_enumerate and g_irepository_get_version. gi/importer.py | 26 +++++---------- gi/module.py | 58 +++++++++++++++++++++++------------ gi/overrides/GIMarshallingTests.py | 2 +- gi/overrides/Gdk.py | 2 +- gi/overrides/Gtk.py | 2 +- gi/pygi-repository.c | 56 ++++++++++++++++++++++++++++++++++- 6 files changed, 105 insertions(+), 41 deletions(-) commit 6d7ed6c322234c240b1063a1dfaadd17157432a9 Author: Jonathan Matthew Date: Tue Jul 13 20:27:28 2010 +1000 treat GFreeFunc as equivalent to GDestroyNotify when scanning callbacks https://bugzilla.gnome.org/show_bug.cgi?id=624232 gi/pygi-callbacks.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 7e9cbd5601ad548b78d106bac1a1576d33b91c65 Author: Simon van der Linden Date: Mon Jul 26 17:00:23 2010 +0200 Don't use == to compare doubles, use <= and =>. This avoids inequality due to small precisions difference. https://bugzilla.gnome.org/show_bug.cgi?id=625326 tests/testhelpermodule.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 5ca2a41f16f4a5fcc3ab4d00bec46b077c7eb384 Author: Tomeu Vizoso Date: Thu Jul 8 11:36:12 2010 +0200 Allow passing ints as enum args https://bugzilla.gnome.org/show_bug.cgi?id=622584 gi/pygi-argument.c | 23 +++++++++++++++++++++-- tests/test_gi.py | 6 ++++-- 2 files changed, 25 insertions(+), 4 deletions(-) commit 890c3233f8a9f884b045a294bf0122bb3afcd54a Author: Tomeu Vizoso Date: Sun Jul 25 17:30:40 2010 +0100 Make error message less ambiguous https://bugzilla.gnome.org/show_bug.cgi?id=625095 gi/pygi-callbacks.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 1162e436273ff8e9e4e24bd8ba74615fd4624753 Author: John (J5) Palmieri Date: Thu Jun 24 10:07:12 2010 -0400 fix passing in type names as a GType and add gtype unit tests * a simple call to pyg_type_from_object covers all the bases * added unit tests to check for correct GType value passing * fixed up tree override tests to also check different ways of passing GTypes https://bugzilla.gnome.org/show_bug.cgi?id=622605 gi/pygi-argument.c | 8 +------- tests/test_everything.py | 27 +++++++++++++++++++++++++++ tests/test_overrides.py | 6 ++---- 3 files changed, 30 insertions(+), 11 deletions(-) commit 8becd32fc042445d62b885bac12dac326b2dc1fa Author: Tomeu Vizoso Date: Mon Jul 26 11:54:47 2010 +0200 Increase a bit verbosity of tests so people know which test failed tests/runtests.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 3b3c63514f311592e6769a373d37a2bde7ea6b38 Author: Tomeu Vizoso Date: Thu Jul 15 15:17:53 2010 +0200 Actually add the files for GVariant foreign structs gi/pygi-foreign-gvariant.c | 63 ++++++++++++++++++++++++++++++++++++++++++++ gi/pygi-foreign-gvariant.h | 41 ++++++++++++++++++++++++++++ 2 files changed, 104 insertions(+), 0 deletions(-) commit e65275bc57f345c111eb12a6b4476ff1ddc3bc24 Author: Tomeu Vizoso Date: Thu Jul 15 13:31:33 2010 +0200 Add foreign struct support for GVariant * gi/pygi-invoke.c: Wrap foreign structs returned by constructors * gi/pygi-foreign.c: Register foreign support for GVariant * gi/pygi-struct.c: properly release foreign structs * gi/pygi-argument.c, gi/pygi-foreign-cairo.c, gi/pygi.h: Adapt to API changes * tests/test_everything.py: Add basic tests for GVariant https://bugzilla.gnome.org/show_bug.cgi?id=619501 gi/Makefile.am | 2 + gi/pygi-argument.c | 2 +- gi/pygi-foreign-cairo.c | 16 +++--- gi/pygi-foreign.c | 107 ++++++++++++++++++++++++++++----------------- gi/pygi-foreign.h | 7 +-- gi/pygi-invoke.c | 18 ++++---- gi/pygi-struct.c | 10 ++++- gi/pygi.h | 9 ++-- tests/test_everything.py | 8 +++ 9 files changed, 110 insertions(+), 69 deletions(-) commit 3b3bd4da3fbc993fa7f7cfb46ed4e67671c94cc0 Author: Tomeu Vizoso Date: Mon Jul 12 11:19:06 2010 +0200 Add HACKING to MANIFEST.in MANIFEST.in | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 40bf08ff001b119c7daf709197005ef6480216c5 Author: Tomeu Vizoso Date: Mon Jul 12 11:18:04 2010 +0200 Add HACKING file with instructions for releasing HACKING | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) commit 3b9dffe7cc3820dfb84fd968fc604899601c5dc4 Author: Tomeu Vizoso Date: Mon Jul 12 11:09:58 2010 +0200 Post release version bump to 2.21.6 configure.ac | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 42a5a0897b38156ae010c396ea254abf502f35de Author: Tomeu Vizoso Date: Mon Jul 12 11:00:29 2010 +0200 Update NEWS and release PyGObject-2.21.5 NEWS | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) commit 5857f25c1c6e25b79e6134558bd7151bc6c30ef7 Author: Tomeu Vizoso Date: Mon Jul 12 11:00:20 2010 +0200 Pre-release version bump to 2.21.5 configure.ac | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit e500adc3ac19ef6f436809e5a8828ac7e8db28f6 Author: Florian Müllner Date: Sat Jul 10 22:35:13 2010 +0200 Shut up some compiler warnings Remove unused variables, make sure variables are properly initialized. https://bugzilla.gnome.org/show_bug.cgi?id=624066 gi/pygi-callbacks.c | 1 - gi/pygi-closure.c | 2 +- gi/pygi-invoke.c | 1 - 3 files changed, 1 insertions(+), 3 deletions(-) commit 2efa18afbcc2fac1c90958535b2f80e6e730ee56 Author: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Mon Jul 12 10:31:42 2010 +0200 Adjust to API break in GObject-Introspection As of commit 5cb925b20, many type_tags for standard C types have been removed - namely machine-dependent integer types and derived types (size_t, time_t). Most removals are just synonyms of other types, so their removal should not have too much impact, with the exception of time_t, which was translated to a native datetime object before. Also remove time_t tests (Tomeu Vizoso). https://bugzilla.gnome.org/show_bug.cgi?id=624065 configure.ac | 2 +- gi/importer.py | 7 ++- gi/pygi-argument.c | 146 ---------------------------------------------------- gi/pygi-closure.c | 10 ---- gi/pygi-info.c | 37 ------------- tests/test_gi.py | 21 -------- 6 files changed, 5 insertions(+), 218 deletions(-) commit 27a417c71f8c122e46c7472663bb25c17413f103 Author: John (J5) Palmieri Date: Thu Jul 8 16:01:25 2010 -0400 pass in the demo app so demos can use utility methods like requesting file paths demos/gtk-demo/demos/Entry/entry_buffer.py | 2 +- demos/gtk-demo/demos/Entry/entry_completion.py | 2 +- demos/gtk-demo/demos/appwindow.py | 13 +++++++++++-- demos/gtk-demo/demos/assistant.py | 2 +- demos/gtk-demo/demos/builder.py | 14 ++++++++++---- demos/gtk-demo/demos/button_box.py | 2 +- demos/gtk-demo/demos/clipboard.py | 8 +------- demos/gtk-demo/demos/colorselector.py | 2 +- demos/gtk-demo/demos/combobox.py | 8 +++++--- demos/gtk-demo/demos/drawingarea.py | 2 +- demos/gtk-demo/demos/test.py | 2 +- demos/gtk-demo/gtk-demo.py | 6 +++--- 12 files changed, 37 insertions(+), 26 deletions(-) commit e7daae919c2c6ae35d3927f0006252aacd49ea86 Author: John (J5) Palmieri Date: Thu Jul 8 15:38:07 2010 -0400 demo fixes to keep up with Gtk+ * treeiter changes to reflect caller-allocate annotations * fix some flag handling * use get_indicies_with_depth instead of get_indices for paths demos/gtk-demo/demos/appwindow.py | 10 +++++++--- demos/gtk-demo/demos/combobox.py | 24 ++++++++++++------------ demos/gtk-demo/gtk-demo.py | 13 +++++-------- 3 files changed, 24 insertions(+), 23 deletions(-) commit 3d9fd6391710cc33058394d6821e4d4e11f09b22 Author: John (J5) Palmieri Date: Thu Jul 8 12:54:43 2010 -0400 override test fixes for new GTK+ annotations tests/test_overrides.py | 23 +++++++++++++---------- 1 files changed, 13 insertions(+), 10 deletions(-) commit 7a400f8139b70ddfe7c949035e0851689951c647 Author: Ignacio Casal Quinteiro Date: Thu Jul 8 12:42:25 2010 +0200 Fix warning. gi/pygi-argument.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 39fd0a85a3de06b1b877d1125f91036409886373 Author: John (J5) Palmieri Date: Wed Jul 7 15:48:36 2010 -0400 fix up treeiter usage due to caller-allocates annotations in gtk+ * we still don't pass tests because the caller-allocates code path does not handle the case where the parameter is followed by a regular in parameter gi/overrides/Gtk.py | 7 +++---- tests/test_overrides.py | 21 +++++++++++---------- 2 files changed, 14 insertions(+), 14 deletions(-) commit 4d970b75dc5c75c1bec04cb2954c9985b476070c Author: John (J5) Palmieri Date: Tue Jul 6 17:50:10 2010 -0400 add entry completion demo demos/gtk-demo/demos/Entry/entry_completion.py | 87 ++++++++++++++++++++++++ 1 files changed, 87 insertions(+), 0 deletions(-) commit f3531eaa1bfa4e01651d35cd587384d30a398ba8 Author: John (J5) Palmieri Date: Tue Jul 6 17:49:18 2010 -0400 string changes demos/gtk-demo/demos/Entry/entry_buffer.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit baf1e9bb550c7bf45e2ac0b70ba29c434ef1ccc6 Author: John (J5) Palmieri Date: Tue Jul 6 17:27:04 2010 -0400 add the Entry demo directory and the entry_buffer demo demos/gtk-demo/demos/Entry/entry_buffer.py | 73 ++++++++++++++++++++++++++++ 1 files changed, 73 insertions(+), 0 deletions(-) commit f2b1d222120f055bec9339cca55c9cc90f538c00 Author: John (J5) Palmieri Date: Tue Jul 6 17:26:03 2010 -0400 fix loading of demo modules to support sub modules demos/gtk-demo/gtk-demo.py | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) commit 4f9390fb1892b13ab2ea00ed66c5000a40f09029 Author: John (J5) Palmieri Date: Tue Jul 6 15:56:34 2010 -0400 add the ability to have demos in sub catagories demos/gtk-demo/gtk-demo.py | 76 +++++++++++++++++++++++++++++++------------- 1 files changed, 54 insertions(+), 22 deletions(-) commit dc2249a3ecf339008351316217191d0551ccc588 Author: Jose Aliste Date: Mon Jul 5 14:36:59 2010 -0400 Add __name__ to DynamicModule class. Fixes bug #623486. gi/module.py | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 2357bca8d14539894b6bd0acfdc18d30b4bb4db6 Author: Ignacio Casal Quinteiro Date: Mon Jul 5 16:11:07 2010 +0200 Do not override GdkRectangle. This class was lately removed from gtk+ 3, so there is no need to override it anymore. gi/overrides/Gdk.py | 19 ------------------- 1 files changed, 0 insertions(+), 19 deletions(-) commit daca09dc2c2306d4fa82a68bbdd147d4b170a1e7 Author: Philip Withnall Date: Tue Jun 29 16:37:36 2010 +0100 Add override for TreeModel implementing __len__() Closes: bgo#622882 gi/overrides/Gtk.py | 11 +++++++++-- tests/test_overrides.py | 5 +++++ 2 files changed, 14 insertions(+), 2 deletions(-) commit bb8adb7f02f0c5494df2cb6e535e44d23902e8f5 Author: Tomeu Vizoso Date: Tue Jun 29 11:27:13 2010 +0200 Update NEWS and release PyGObject-2.21.4 NEWS | 27 +++++++++++++++++++++++++-- 1 files changed, 25 insertions(+), 2 deletions(-) commit 2d473ee17be4671244bb4a2a0953a21ccf2a0df6 Author: Tomeu Vizoso Date: Tue Jun 29 10:55:03 2010 +0200 Remove files from the makefiles gi/Makefile.am | 4 +--- gobject/Makefile.am | 3 +-- 2 files changed, 2 insertions(+), 5 deletions(-) commit 89827314fd183eac07443c8e9d275ca9d4ce59df Author: Tomeu Vizoso Date: Tue Jun 29 10:27:39 2010 +0200 Build the cairo shim as a python module so the _gi module stops linking to it https://bugzilla.gnome.org/show_bug.cgi?id=623021 configure.ac | 2 + gi/Makefile.am | 38 +++++++++----- gi/gimodule.c | 8 +--- gi/pygi-argument.c | 10 +--- gi/pygi-foreign-cairo.c | 56 ++++++++++++++++----- gi/pygi-foreign-cairo.h | 55 --------------------- gi/pygi-foreign.c | 125 ++++++++++++++++++++++++++++------------------- gi/pygi-foreign.h | 31 +++++------ gi/pygi.h | 40 +++++++++++++-- 9 files changed, 196 insertions(+), 169 deletions(-) commit a6a90551311bc64f037cbd442e13f70c30060871 Author: Tomeu Vizoso Date: Mon Jun 28 14:20:43 2010 +0200 Remove pygi-external.h https://bugzilla.gnome.org/show_bug.cgi?id=623021 gi/gimodule.c | 8 +++--- gi/pygi-type.c | 4 +- gi/pygi-type.h | 2 +- gi/pygi.h | 54 +++++++++++++++---------------------- gobject/Makefile.am | 6 ++++ gobject/pygboxed.c | 2 +- gobject/pygenum.c | 2 +- gobject/pygflags.c | 2 +- gobject/pygi-external.h | 67 ----------------------------------------------- gobject/pygobject.c | 2 +- gobject/pygpointer.c | 2 +- 11 files changed, 40 insertions(+), 111 deletions(-) commit 8b3a3baacb45cb3f9112f7597607602fa89c6634 Author: Tomeu Vizoso Date: Fri Jun 25 13:54:57 2010 +0200 Revert "correctly handle floating objects in gtk" This reverts commit 60fdf4b8f738dd0f5c190bc18ddf010032d3c5ca. Conflicts: gi/gimodule.c tests/test_everything.py gi/gimodule.c | 13 ------------- tests/test_everything.py | 3 ++- 2 files changed, 2 insertions(+), 14 deletions(-) commit 0f2a09d7eae63abb71723b7cd8fb290dcba33426 Author: Tomeu Vizoso Date: Fri Jun 25 13:49:04 2010 +0200 Make valgrind happy again * gi/pygi-argument.c, gi/pygi-info.c: Zero two GArgument instances. * gi/pygi-invoke.c: workaround bgo#622711 and zero invocation_state. gi/pygi-argument.c | 1 + gi/pygi-info.c | 2 ++ gi/pygi-invoke.c | 8 ++++++-- 3 files changed, 9 insertions(+), 2 deletions(-) commit 63afe55906c8637e913783e65b82b540b81bed65 Author: John (J5) Palmieri Date: Thu Jun 24 16:13:37 2010 -0400 add drawing area demo demos/gtk-demo/demos/drawingarea.py | 249 +++++++++++++++++++++++++++++++++++ 1 files changed, 249 insertions(+), 0 deletions(-) commit 8bba5f842393a284367cdd15f3d32a8c7745516a Author: John (J5) Palmieri Date: Thu Jun 24 14:11:00 2010 -0400 sort the demo list demos/gtk-demo/gtk-demo.py | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit b9da82742701ed276b01dee39626cd71cbef8556 Author: John (J5) Palmieri Date: Thu Jun 24 13:56:18 2010 -0400 rename iter to treeiter so we aren't using a python reserved word demos/gtk-demo/gtk-demo.py | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) commit c93935621f2fb1ff5e8c424ae884bd684ea68e50 Author: John (J5) Palmieri Date: Thu Jun 24 13:47:54 2010 -0400 Fixup for change in buffer API * Part of buffer API dealing with TextIter now marked (out caller-allocates) demos/gtk-demo/gtk-demo.py | 10 ++++------ 1 files changed, 4 insertions(+), 6 deletions(-) commit 8d9516a593a515290109401a9db7aa259b5aa35c Author: John (J5) Palmieri Date: Wed Jun 23 17:04:33 2010 -0400 add ListStore, TreeStore and TreeViewColumn APIs * this is enough to support the gtk-demo.py shell * TreeStore and ListStore allow passing in as an argument list of either python or GLib types to the constructor as a description of the columns in the model * TreeStore and ListStore override the append method, allowing the application developer to send in a list of column values for one row in the model. Unlike the append in C which just returns an iter that you can then add data to, this append actualy appends data in one step * TreeViewColumn overrides the constructor to allow the adding of attributes and a cell renderer when constructing the column https://bugzilla.gnome.org/show_bug.cgi?id=620405 gi/overrides/Gtk.py | 59 ++++++++++++++++++++++++++++++++++++++++ tests/test_overrides.py | 69 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 128 insertions(+), 0 deletions(-) commit c305fbeb7bdb44623d5198f4a8f0a374d529fdf4 Author: Johan Dahlin Date: Wed Jun 23 14:34:28 2010 -0300 [gi] Add -I../gobject to cflags Since we're no longer pulling in pygobject cflags, add this to be able to include pygobject.h gi/Makefile.am | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) commit 53a093198851e3ba5abd1f6c3314737decd401d8 Author: Ignacio Casal Quinteiro Date: Wed Jun 23 18:09:19 2010 +0200 Add unit test for add_actions user data. tests/test_overrides.py | 20 +++++++++++++++----- 1 files changed, 15 insertions(+), 5 deletions(-) commit 7f829af620cba768de619dd9f228d5d2ebf7fee4 Author: Paolo Borelli Date: Wed Jun 23 18:06:46 2010 +0200 Pass user_data param when adding actions gi/overrides/Gtk.py | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) commit 8f537ccd62f41ebe0db3853e2ae08080666f598f Author: John (J5) Palmieri Date: Wed Jun 23 12:02:04 2010 -0400 add an exception type to the try/except block * we should always specify what exception types we are expecting gi/overrides/Gtk.py | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit f140a8ebf59347162b67b550bd6f62d2eafad29a Author: Johan Dahlin Date: Wed Jun 23 12:31:51 2010 -0300 Avoid duplicating required versions Avoid duplicating the version of all required packages. Also remove cyclic dependency of pygobject https://bugzilla.gnome.org/show_bug.cgi?id=622503 configure.ac | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) commit e8bd25355fbe7de38a28b7a0583167a2c0ffc31f Author: John (J5) Palmieri Date: Tue Jun 22 15:03:08 2010 -0400 return PyList instead of PyTuple for array, return empty list for NULL arrays * returns an empty list when a NULL array (empty array) is encountered * fix tests to check for lists instead of tuples or None * test the ability to send in both None and empty list for arrays and lists gi/pygi-argument.c | 7 ++-- tests/test_everything.py | 5 ++- tests/test_gi.py | 84 +++++++++++++++++++++++----------------------- 3 files changed, 49 insertions(+), 47 deletions(-) commit f312e6a49505eca07815146cfbdb0e48e5b3b8a8 Author: Tomeu Vizoso Date: Wed Jun 23 15:42:29 2010 +0200 Fix 'make distcheck' * Makefile.am: put the tests dir to the end * g*/Makefile.am: build the .so when running make check * tests/Makefile.am: Don't pass the src dir to runtests.py and remove (hopefully) unneeded cruft. * tests/common.py: Don't add the src dir to the python path * tests/runtests.py: Don't pass the src dir to common.py Makefile.am | 4 +++- gi/Makefile.am | 1 + gio/Makefile.am | 1 + glib/Makefile.am | 2 +- gobject/Makefile.am | 1 + tests/Makefile.am | 17 ++--------------- tests/common.py | 3 +-- tests/runtests.py | 12 +++++------- 8 files changed, 15 insertions(+), 26 deletions(-) commit 5f82e7d2909cbbbecbf5dbee2342f516c0d1f371 Author: Tomeu Vizoso Date: Wed Jun 23 13:59:14 2010 +0200 Allow building pygobject without introspection support by providing --disable-introspection to configure. Makefile.am | 6 +++++- configure.ac | 15 ++++++++------- gobject/pygi-external.h | 4 ++-- tests/Makefile.am | 8 ++++++-- tests/runtests.py | 21 +++++++-------------- 5 files changed, 28 insertions(+), 26 deletions(-) commit cc3ea77318ee572673d2a044deca9001366b0f08 Author: Tomeu Vizoso Date: Wed Jun 23 12:26:51 2010 +0200 Make sure that sys.argv is a list and not a sequence. Because Python's optparse will try to do things on it that can only be done with list. gi/overrides/Gtk.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 3d72b8248cc534a689dee5679a729b2fba56c528 Author: Tomeu Vizoso Date: Wed Jun 23 12:26:02 2010 +0200 Force loading the GObject typelib so we have available the wrappers for base classes such as GInitiallyUnowned. gi/__init__.py | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) commit c7c94ef349c30597f2f10d90f74718d678ec7add Author: John (J5) Palmieri Date: Tue Jun 22 14:45:48 2010 -0400 we shouldn't g_array_free NULL pointers https://bugzilla.gnome.org/show_bug.cgi?id=622425 gi/pygi-info.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) commit fb1ee243493616d7a7e4f6924c574db39f5a423d Merge: acf7b43 5f9cb91 Author: Tomeu Vizoso Date: Wed Jun 23 12:53:05 2010 +0200 Merge branch 'pygi' commit 5f9cb91c2b3851056d5e2d7ff1401d4ce2be7c1f Author: John (J5) Palmieri Date: Tue Jun 22 15:39:46 2010 -0400 remove unneeded TextIter creation in the tests tests/test_overrides.py | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) commit 53c355d2cc0894e7f551e9b4eb719b89188a978e Author: John (J5) Palmieri Date: Mon Jun 21 11:42:12 2010 -0400 add override for TextBuffer * TextBuffer.create_tag takes vargs which we can't bind yet so change it to except a keyword list of properties * override the insert* methods so the developer does not have to enter a length - lengths are already encapsulated by a string in Python https://bugzilla.gnome.org/show_bug.cgi?id=620583 gi/overrides/Gtk.py | 51 +++++++++++++++++++++++++++++++++++++++++++++++ tests/test_overrides.py | 25 +++++++++++++++++++++++ 2 files changed, 76 insertions(+), 0 deletions(-) commit 1d89a88b212c7411ad28e74eda80ae751de92e50 Author: John (J5) Palmieri Date: Tue Jun 22 12:46:39 2010 -0400 fix up some build issues * configure.ac: moved AM_PROG_CC_C_O below AM_PROG_CC_STDC because autoconf was complaining that AM_PROG_CC_STDC can't come after AM_PROC_CC_C_0 * tests/Makefile.am: fix check-local target to use EXEC_NAME so targets like make check.gdb work configure.ac | 2 +- tests/Makefile.am | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 4fe0d94c219deb69a2309693202309c53a0e5e69 Author: John (J5) Palmieri Date: Tue Jun 22 11:50:30 2010 -0400 make the overrides file git friendly by appending to __all__ after each override * modifying the __all__ line for each override would confuse git as each override needs to get seperate approval before comitting. Because of this commits would not always go in in the same order as they are created. Also different people working on the same file would start from different commit states. This caused conflicts when patches were merged. * instead of modifying a single hard coded list we now append to the list after each override. This creates distinct blocks of changed text which will not conflict gi/overrides/GIMarshallingTests.py | 10 ++++------ gi/overrides/Gdk.py | 8 ++++---- gi/overrides/Gtk.py | 7 +++++-- 3 files changed, 13 insertions(+), 12 deletions(-) commit 49321b934603e1ec69fb04082c63902970907d2b Author: Paolo Borelli Date: Sun Jun 20 13:27:34 2010 +0200 Override Dialog constructor and add_buttons method gi/overrides/Gtk.py | 46 +++++++++++++++++++++++++++++++++++++++++++++- tests/test_overrides.py | 16 ++++++++++++++++ 2 files changed, 61 insertions(+), 1 deletions(-) commit acf7b43a41ce814f0c57ce609a090826f04771db Author: Tomeu Vizoso Date: Mon Jun 21 18:17:38 2010 +0200 Post release version bump to 2.21.4 configure.ac | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit a7fa8b80406227a06cf18f8675dbc1f471283829 Author: Tomeu Vizoso Date: Mon Jun 21 18:10:32 2010 +0200 Update NEWS and release PyGObject-2.21.3 NEWS | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) commit 79acac7b86ec52cd3681d94d7f116314c3f00167 Author: Ludovic L'Hours Date: Tue Jul 21 16:28:34 2009 +0200 Proper handling of null-ok in virtual methods https://bugzilla.gnome.org/show_bug.cgi?id=589253 codegen/codegen.py | 2 ++ codegen/reversewrapper.py | 18 +++++++++++++++--- 2 files changed, 17 insertions(+), 3 deletions(-) commit 259a4b08f009aa01451caed20dbb6e68b402da2a Author: Tomeu Vizoso Date: Mon Jun 21 17:34:54 2010 +0200 Add *~ and *.orig to .gitignore .gitignore | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) commit 00a85f6a844714d1715e2f67431747d1a4cdacb1 Author: Tomeu Vizoso Date: Mon Jun 21 17:33:56 2010 +0200 Fall back to use the floating references API in glib if there isn't a sinkfunc defined. * tests/*: Add ref counting tests for floating objects * gobject/gobjectmodule.c, gobject/pygobject.c: Fall back to g_object_ref_sink or g_object_ref if there isn't a sinkfunc defined. Make sure that pygobject_sink gets called only once per GObject instance. https://bugzilla.gnome.org/show_bug.cgi?id=583909 gobject/gobjectmodule.c | 2 - gobject/pygobject.c | 50 +++++++++++++-------- gobject/pygobject.h | 1 + tests/Makefile.am | 2 + tests/test-floating.c | 95 ++++++++++++++++++++++++++++++++++++++++ tests/test-floating.h | 60 +++++++++++++++++++++++++ tests/test_gobject.py | 19 ++++++++- tests/testhelpermodule.c | 109 ++++++++++++++++++++++++++++++++++++++++++++++ 8 files changed, 315 insertions(+), 23 deletions(-) commit e71238a699ae783fd1a59c8a76e3555d8066cf82 Author: Tomeu Vizoso Date: Mon Jun 21 13:06:13 2010 +0200 Revert "Drop sinkfuncs." This reverts commit 04627488220b4f2a16e11f8982af7866fea9f7eb. gobject/gobjectmodule.c | 3 ++- gobject/pygobject.c | 42 ++++++++++++++++++++++++++++++++++-------- gobject/pygobject.h | 1 - 3 files changed, 36 insertions(+), 10 deletions(-) commit b2661054d6bde673484eab472e69ca021124528d Author: Johan Dahlin Date: Sun Jun 20 11:09:57 2010 -0300 Merge back pygi For reasons outlined at: http://mail.gnome.org/archives/python-hackers-list/2010-June/msg00009.html Makefile.am | 14 +- configure.ac | 29 +- demos/gtk-demo/demos/appwindow.py | 411 +++++ demos/gtk-demo/demos/assistant.py | 134 ++ demos/gtk-demo/demos/builder.py | 57 + demos/gtk-demo/demos/button_box.py | 121 ++ demos/gtk-demo/demos/clipboard.py | 238 +++ demos/gtk-demo/demos/colorselector.py | 121 ++ demos/gtk-demo/demos/combobox.py | 282 ++++ demos/gtk-demo/demos/data/alphatest.png | Bin 0 -> 26529 bytes demos/gtk-demo/demos/data/apple-red.png | Bin 0 -> 3545 bytes demos/gtk-demo/demos/data/background.jpg | Bin 0 -> 22219 bytes demos/gtk-demo/demos/data/demo.ui | 258 ++++ demos/gtk-demo/demos/data/floppybuddy.gif | Bin 0 -> 5216 bytes demos/gtk-demo/demos/data/gnome-applets.png | Bin 0 -> 3090 bytes demos/gtk-demo/demos/data/gnome-calendar.png | Bin 0 -> 2755 bytes demos/gtk-demo/demos/data/gnome-foot.png | Bin 0 -> 2916 bytes demos/gtk-demo/demos/data/gnome-fs-directory.png | Bin 0 -> 2044 bytes demos/gtk-demo/demos/data/gnome-fs-regular.png | Bin 0 -> 1795 bytes demos/gtk-demo/demos/data/gnome-gimp.png | Bin 0 -> 3410 bytes demos/gtk-demo/demos/data/gnome-gmush.png | Bin 0 -> 3244 bytes demos/gtk-demo/demos/data/gnome-gsame.png | Bin 0 -> 4263 bytes demos/gtk-demo/demos/data/gnu-keys.png | Bin 0 -> 3852 bytes demos/gtk-demo/demos/data/gtk-logo-rgb.gif | Bin 0 -> 6427 bytes demos/gtk-demo/demos/test.py | 14 + demos/gtk-demo/gtk-demo.py | 266 ++++ examples/Makefile.am | 2 +- examples/cairo-demo.py | 121 ++ gi/Makefile.am | 4 +- gi/demos/gtk-demo/demos/appwindow.py | 411 ----- gi/demos/gtk-demo/demos/assistant.py | 134 -- gi/demos/gtk-demo/demos/builder.py | 57 - gi/demos/gtk-demo/demos/button_box.py | 121 -- gi/demos/gtk-demo/demos/clipboard.py | 238 --- gi/demos/gtk-demo/demos/colorselector.py | 121 -- gi/demos/gtk-demo/demos/combobox.py | 282 ---- gi/demos/gtk-demo/demos/data/alphatest.png | Bin 26529 -> 0 bytes gi/demos/gtk-demo/demos/data/apple-red.png | Bin 3545 -> 0 bytes gi/demos/gtk-demo/demos/data/background.jpg | Bin 22219 -> 0 bytes gi/demos/gtk-demo/demos/data/demo.ui | 258 ---- gi/demos/gtk-demo/demos/data/floppybuddy.gif | Bin 5216 -> 0 bytes gi/demos/gtk-demo/demos/data/gnome-applets.png | Bin 3090 -> 0 bytes gi/demos/gtk-demo/demos/data/gnome-calendar.png | Bin 2755 -> 0 bytes gi/demos/gtk-demo/demos/data/gnome-foot.png | Bin 2916 -> 0 bytes .../gtk-demo/demos/data/gnome-fs-directory.png | Bin 2044 -> 0 bytes gi/demos/gtk-demo/demos/data/gnome-fs-regular.png | Bin 1795 -> 0 bytes gi/demos/gtk-demo/demos/data/gnome-gimp.png | Bin 3410 -> 0 bytes gi/demos/gtk-demo/demos/data/gnome-gmush.png | Bin 3244 -> 0 bytes gi/demos/gtk-demo/demos/data/gnome-gsame.png | Bin 4263 -> 0 bytes gi/demos/gtk-demo/demos/data/gnu-keys.png | Bin 3852 -> 0 bytes gi/demos/gtk-demo/demos/data/gtk-logo-rgb.gif | Bin 6427 -> 0 bytes gi/demos/gtk-demo/demos/test.py | 14 - gi/demos/gtk-demo/gtk-demo.py | 266 ---- gi/examples/Makefile.am | 2 - gi/examples/cairo-demo.py | 121 -- gi/tests/test_everything.py | 270 ---- gi/tests/test_gi.py | 1624 -------------------- gi/tests/test_overrides.py | 132 -- pygi-Makefile.am | 28 - pygi-configure.ac | 60 - pygi.doap | 34 - pygobject.doap | 16 +- tests/Makefile.am | 23 +- tests/test_everything.py | 270 ++++ tests/test_gi.py | 1624 ++++++++++++++++++++ tests/test_overrides.py | 132 ++ 66 files changed, 4124 insertions(+), 4186 deletions(-) commit 597bd64319d7966045b5b8613ca6fc85668c3f56 Merge: ec8d148 fa91dfd Author: Johan Dahlin Date: Sun Jun 20 10:53:46 2010 -0300 Merge branch 'pygi-merge' commit fa91dfd3ec79ecd03c9fb59b9363eab4a5b3ff2b Author: Johan Dahlin Date: Sun Jun 20 10:53:36 2010 -0300 Prepare pygi move .gitignore | 40 - HACKING | 26 - Makefile.am | 28 - autogen.sh | 166 -- configure.ac | 60 - demos/gtk-demo/demos/appwindow.py | 411 ----- demos/gtk-demo/demos/assistant.py | 134 -- demos/gtk-demo/demos/builder.py | 57 - demos/gtk-demo/demos/button_box.py | 121 -- demos/gtk-demo/demos/clipboard.py | 238 --- demos/gtk-demo/demos/colorselector.py | 121 -- demos/gtk-demo/demos/combobox.py | 282 ---- demos/gtk-demo/demos/data/alphatest.png | Bin 26529 -> 0 bytes demos/gtk-demo/demos/data/apple-red.png | Bin 3545 -> 0 bytes demos/gtk-demo/demos/data/background.jpg | Bin 22219 -> 0 bytes demos/gtk-demo/demos/data/demo.ui | 258 ---- demos/gtk-demo/demos/data/floppybuddy.gif | Bin 5216 -> 0 bytes demos/gtk-demo/demos/data/gnome-applets.png | Bin 3090 -> 0 bytes demos/gtk-demo/demos/data/gnome-calendar.png | Bin 2755 -> 0 bytes demos/gtk-demo/demos/data/gnome-foot.png | Bin 2916 -> 0 bytes demos/gtk-demo/demos/data/gnome-fs-directory.png | Bin 2044 -> 0 bytes demos/gtk-demo/demos/data/gnome-fs-regular.png | Bin 1795 -> 0 bytes demos/gtk-demo/demos/data/gnome-gimp.png | Bin 3410 -> 0 bytes demos/gtk-demo/demos/data/gnome-gmush.png | Bin 3244 -> 0 bytes demos/gtk-demo/demos/data/gnome-gsame.png | Bin 4263 -> 0 bytes demos/gtk-demo/demos/data/gnu-keys.png | Bin 3852 -> 0 bytes demos/gtk-demo/demos/data/gtk-logo-rgb.gif | Bin 6427 -> 0 bytes demos/gtk-demo/demos/test.py | 14 - demos/gtk-demo/gtk-demo.py | 266 ---- examples/Makefile.am | 2 - examples/cairo-demo.py | 121 -- gi/.gitignore | 40 + gi/HACKING | 26 + gi/demos/gtk-demo/demos/appwindow.py | 411 +++++ gi/demos/gtk-demo/demos/assistant.py | 134 ++ gi/demos/gtk-demo/demos/builder.py | 57 + gi/demos/gtk-demo/demos/button_box.py | 121 ++ gi/demos/gtk-demo/demos/clipboard.py | 238 +++ gi/demos/gtk-demo/demos/colorselector.py | 121 ++ gi/demos/gtk-demo/demos/combobox.py | 282 ++++ gi/demos/gtk-demo/demos/data/alphatest.png | Bin 0 -> 26529 bytes gi/demos/gtk-demo/demos/data/apple-red.png | Bin 0 -> 3545 bytes gi/demos/gtk-demo/demos/data/background.jpg | Bin 0 -> 22219 bytes gi/demos/gtk-demo/demos/data/demo.ui | 258 ++++ gi/demos/gtk-demo/demos/data/floppybuddy.gif | Bin 0 -> 5216 bytes gi/demos/gtk-demo/demos/data/gnome-applets.png | Bin 0 -> 3090 bytes gi/demos/gtk-demo/demos/data/gnome-calendar.png | Bin 0 -> 2755 bytes gi/demos/gtk-demo/demos/data/gnome-foot.png | Bin 0 -> 2916 bytes .../gtk-demo/demos/data/gnome-fs-directory.png | Bin 0 -> 2044 bytes gi/demos/gtk-demo/demos/data/gnome-fs-regular.png | Bin 0 -> 1795 bytes gi/demos/gtk-demo/demos/data/gnome-gimp.png | Bin 0 -> 3410 bytes gi/demos/gtk-demo/demos/data/gnome-gmush.png | Bin 0 -> 3244 bytes gi/demos/gtk-demo/demos/data/gnome-gsame.png | Bin 0 -> 4263 bytes gi/demos/gtk-demo/demos/data/gnu-keys.png | Bin 0 -> 3852 bytes gi/demos/gtk-demo/demos/data/gtk-logo-rgb.gif | Bin 0 -> 6427 bytes gi/demos/gtk-demo/demos/test.py | 14 + gi/demos/gtk-demo/gtk-demo.py | 266 ++++ gi/examples/Makefile.am | 2 + gi/examples/cairo-demo.py | 121 ++ gi/tests/Makefile.am | 22 + gi/tests/runtests.py | 21 + gi/tests/test_everything.py | 270 ++++ gi/tests/test_gi.py | 1624 ++++++++++++++++++++ gi/tests/test_overrides.py | 132 ++ pygi-Makefile.am | 28 + pygi-configure.ac | 60 + tests/Makefile.am | 22 - tests/runtests.py | 21 - tests/test_everything.py | 270 ---- tests/test_gi.py | 1624 -------------------- tests/test_overrides.py | 132 -- 71 files changed, 4248 insertions(+), 4414 deletions(-) commit ec8d148eccbb3714093f21b595ea77ae4c7c3bce Author: Johan Dahlin Date: Sun Jun 20 10:49:55 2010 -0300 [giounix] Make it possible to compile on glib 2.20 gio/unix.override | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit 606018a2c551d890fc2bb987d99683f777598bda Author: John (J5) Palmieri Date: Mon Jun 7 16:32:29 2010 -0400 Don't free transfer full struct pointers because we can't do it safely * Most libraries which are sending back structs as transfer-full are either annotated incorrectly or should be sending boxed types * It is much better to throw a warning and leak memory than it is to call free on an unknown struct pointer. Doing so may cause a double free * Specific case is gdk_atom_intern where a GdkAtom is not actually a pointer but an integer stuffed into a pointer type https://bugzilla.gnome.org/show_bug.cgi?id=620898 gi/pygi-argument.c | 9 ++++++++- gi/pygi-invoke.c | 11 +++++++++-- 2 files changed, 17 insertions(+), 3 deletions(-) commit 433ee2aa029a1482961f478252a06492bd3498e6 Author: Sjoerd Simons Date: Tue Jun 15 11:42:28 2010 +0200 Release the lock when potentially invoking Python code. * gobject/pygobject.c: Release GIL lock when retrieving properties and when clearing a PyGObject. https://bugzilla.gnome.org/show_bug.cgi?id=530935 gobject/pygobject.c | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) commit aa1e82c7eb87620bd73e1edb486f5b9e0d49aa96 Author: John (J5) Palmieri Date: Mon Jun 14 18:36:57 2010 -0400 add combobox example demos/gtk-demo/demos/combobox.py | 282 ++++++++++++++++++++++++++++++++++++++ 1 files changed, 282 insertions(+), 0 deletions(-) commit a8668694da59c2dd959c875f13337e64ca22f7e9 Author: John (J5) Palmieri Date: Mon Jun 14 13:43:53 2010 -0400 fix leak in the allow None callbacks patch gi/pygi-callbacks.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 729072e73d65e7fd5b5197ebe5a8c53a449d0ec0 Author: John (J5) Palmieri Date: Mon Jun 7 17:12:09 2010 -0400 Allow passing None for callbacks which are annotated allow-none * Many callbacks are optional parameters yet we were asserting on Py_None * We now check to see if allow_none is set when setting up callbacks, if it is set and py_function == Py_None, we set the closure to NULL and return * pygi-invoke.c now checks to see if the closure == NULL when setting arguments * if it is NULL there is no reason to set the the destroy notify handler so we skip that too https://bugzilla.gnome.org/show_bug.cgi?id=620906 gi/pygi-callbacks.c | 7 +++++++ gi/pygi-invoke.c | 14 +++++++++++--- tests/test_everything.py | 4 ++++ 3 files changed, 22 insertions(+), 3 deletions(-) commit a3eb5c7de5836c37aa7ae01dbe98996ec2632c17 Author: Paolo Borelli Date: Mon Jun 14 19:06:45 2010 +0200 Fix to match latest gtk annotations demos/gtk-demo/demos/appwindow.py | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) commit 6306dd73cc74aa9202569eac0eaaa5f825c8dc59 Author: John (J5) Palmieri Date: Tue Jun 8 15:03:49 2010 -0400 fix variable member names in Gdk.Color override * override was using r, g, and b for the red, green, blue components but the struct specifies red, green, blue so we need to use those names https://bugzilla.gnome.org/show_bug.cgi?id=621007 gi/overrides/Gdk.py | 10 +++++----- tests/test_overrides.py | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) commit d182630e1128fef6f1c2aea28ccd8da4bddd2c8f Author: Tomeu Vizoso Date: Thu Jun 10 20:23:13 2010 +0200 Post release version bump to 2.21.3 configure.ac | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit c4e64d5d264593051b9a3131e4985a58e8e76f8b Author: Tomeu Vizoso Date: Thu Jun 10 20:21:13 2010 +0200 Update NEWS and release PyGObject-2.21.2 NEWS | 26 ++++++++++++++++++++++++++ 1 files changed, 26 insertions(+), 0 deletions(-) commit e0fe844d5fe8f7e26316f197444fd4143ed36adf Author: Tomeu Vizoso Date: Thu Jun 10 20:09:07 2010 +0200 Remove deleted files from the Makefile. test_conversion.py test_enum.py test_gtype.py test_subtype.py tests/Makefile.am | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-) commit 495a301cb81c5e914bcef905999265604faa27fc Author: Tomeu Vizoso Date: Thu Jun 10 19:39:09 2010 +0200 Add myself to the maintainers list in the README README | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 04627488220b4f2a16e11f8982af7866fea9f7eb Author: Tomeu Vizoso Date: Thu Jun 10 19:24:31 2010 +0200 Drop sinkfuncs. * use g_object methods to sink floating refs instead of allowing custom sink functions to be registered * we now sink inside of pygobject_new_full to handle cases where a library creates its own gobject via g_object_new and just needs a python wrapper - a previous patch had done the sink when creating the gobject, since it needs to call pygobject_new_full to wrap the object, this patch handles both cases (e.g. pygobject created object and externally created gobject) https://bugzilla.gnome.org/show_bug.cgi?id=583909 gobject/gobjectmodule.c | 3 +-- gobject/pygobject.c | 42 ++++++++---------------------------------- gobject/pygobject.h | 1 + 3 files changed, 10 insertions(+), 36 deletions(-) commit 07df124dc06cf506634e95d08397f50a2d07fce2 Author: Steve Frécinaux Date: Mon Jun 7 09:47:23 2010 +0200 Make the "wrong argument count" exception more explicit. Previously we had messages like this one: TypeError: takes exactly 2 argument(s) (1 given) With this patch, they become like this: TypeError: get_end_iter() takes exactly 2 argument(s) (1 given) It makes things much easier to debug when there are several pygi calls on the same line. https://bugzilla.gnome.org/show_bug.cgi?id=620804 gi/pygi-invoke.c | 3 ++- tests/test_everything.py | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletions(-) commit b435319fe830a909cc4d414533b3b66574931e24 Author: Steve Frécinaux Date: Mon Jun 7 09:54:06 2010 +0200 Use bash explicitely in the pre-commit hook. The "builtin" command is not available in all sh flavours, so the pre-commit hook is going to fail if you use dash or others instead of bash as your default 'sh' alias. https://bugzilla.gnome.org/show_bug.cgi?id=620805 pre-commit.hook | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit e9ee2916494eb7654004925c1ee1e94f99b14f1a Author: John (J5) Palmieri Date: Tue Jun 8 16:55:26 2010 -0400 colorselector demo demos/gtk-demo/demos/colorselector.py | 121 +++++++++++++++++++++++++++++++++ 1 files changed, 121 insertions(+), 0 deletions(-) commit ec598128de9e90dccab662ed2f5511c8d659e156 Author: Tomeu Vizoso Date: Tue Jun 8 15:48:33 2010 +0200 Update PyGObject dependency to 2.21.1 configure.ac | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 87774a17bd607724a56e18c2eb1ac71b04b7079d Author: Tomeu Vizoso Date: Tue Jun 8 10:40:39 2010 +0200 Add myself to maintainers MAINTAINERS | 4 ++++ pygobject.doap | 7 +++++++ 2 files changed, 11 insertions(+), 0 deletions(-) commit 46c91a11d448e5e11d142d3362aff1483226bca4 Author: Colin Walters Date: Wed May 5 13:54:27 2010 -0400 Clear error if we failed the import Otherwise we leave the exception set which causes bizarre problems later in unrelated code. https://bugzilla.redhat.com/show_bug.cgi?id=569885 https://bugzilla.gnome.org/show_bug.cgi?id=617796 gobject/pygi-external.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit c1c41576d053cc1cdd8366d8cd1e59fff1c3a9c6 Author: John (J5) Palmieri Date: Mon Jun 7 17:19:30 2010 -0400 fix some typos and add a link to a patch which fixes a FIXME demos/gtk-demo/demos/clipboard.py | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) commit e7fabb5024d94a3166766e5fca740741bc50380a Author: John (J5) Palmieri Date: Mon Jun 7 16:21:42 2010 -0400 clipboard demo demos/gtk-demo/demos/clipboard.py | 235 +++++++++++++++++++++++++++++++++++++ 1 files changed, 235 insertions(+), 0 deletions(-) commit e0f1dce5ec58d071759f886697501da6eeea549d Author: John (J5) Palmieri Date: Sun Jun 6 13:27:46 2010 -0400 set is_fully_bound to false demos/gtk-demo/demos/button_box.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 986db1c73746d3a8ad7d8d5141c7eed194e7b948 Author: John (J5) Palmieri Date: Sat Jun 5 23:53:36 2010 -0400 new button box demo demos/gtk-demo/demos/button_box.py | 121 ++++++++++++++++++++++++++++++++++++ 1 files changed, 121 insertions(+), 0 deletions(-) commit e9f5f8a829121e59367bae690442150f144946ad Author: John (J5) Palmieri Date: Sat Jun 5 23:26:03 2010 -0400 set is_fully_bound to True fro builder example demos/gtk-demo/demos/builder.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit d9968c3a4dea1d4a73a9376009cf486c80ea3da6 Author: John (J5) Palmieri Date: Sat Jun 5 23:24:36 2010 -0400 fix up formatting in demos demos/gtk-demo/demos/appwindow.py | 16 ++++++++-------- demos/gtk-demo/demos/assistant.py | 24 ++++++++++++------------ demos/gtk-demo/demos/builder.py | 2 +- 3 files changed, 21 insertions(+), 21 deletions(-) commit ffca02536bafb55e8c3bce31cd992365207429f6 Author: John (J5) Palmieri Date: Sat Jun 5 14:54:47 2010 -0400 add the builder demo demos/gtk-demo/demos/builder.py | 57 +++++++++++++++++++++++++++++++++++++++ 1 files changed, 57 insertions(+), 0 deletions(-) commit a96dbafdf562a2ac6bde4df27919d3628689dbdb Author: John (J5) Palmieri Date: Fri Jun 4 17:48:24 2010 -0400 add assistant demo demos/gtk-demo/demos/assistant.py | 134 +++++++++++++++++++++++++++++++++++++ 1 files changed, 134 insertions(+), 0 deletions(-) commit 7e1b8cf32f33d45603aaec76afb0d14be84ffd94 Author: John (J5) Palmieri Date: Fri Jun 4 16:56:46 2010 -0400 add formatting rules and copyright notice demos/gtk-demo/demos/appwindow.py | 19 +++++++++++++++++++ 1 files changed, 19 insertions(+), 0 deletions(-) commit 03b99692b81631d397ab62dcd263341465bcee88 Author: John (J5) Palmieri Date: Fri Jun 4 16:26:54 2010 -0400 add the gtk-demo app along with a couple of demos * note there are still a couple of patches in bugzilla that are needed for this to run correctly: - http://bugzilla-attachments.gnome.org/attachment.cgi?id=162682 - http://bugzilla-attachments.gnome.org/attachment.cgi?id=162764 demos/gtk-demo/demos/appwindow.py | 393 ++++++++++++++++++++++ demos/gtk-demo/demos/data/alphatest.png | Bin 0 -> 26529 bytes demos/gtk-demo/demos/data/apple-red.png | Bin 0 -> 3545 bytes demos/gtk-demo/demos/data/background.jpg | Bin 0 -> 22219 bytes demos/gtk-demo/demos/data/demo.ui | 258 ++++++++++++++ demos/gtk-demo/demos/data/floppybuddy.gif | Bin 0 -> 5216 bytes demos/gtk-demo/demos/data/gnome-applets.png | Bin 0 -> 3090 bytes demos/gtk-demo/demos/data/gnome-calendar.png | Bin 0 -> 2755 bytes demos/gtk-demo/demos/data/gnome-foot.png | Bin 0 -> 2916 bytes demos/gtk-demo/demos/data/gnome-fs-directory.png | Bin 0 -> 2044 bytes demos/gtk-demo/demos/data/gnome-fs-regular.png | Bin 0 -> 1795 bytes demos/gtk-demo/demos/data/gnome-gimp.png | Bin 0 -> 3410 bytes demos/gtk-demo/demos/data/gnome-gmush.png | Bin 0 -> 3244 bytes demos/gtk-demo/demos/data/gnome-gsame.png | Bin 0 -> 4263 bytes demos/gtk-demo/demos/data/gnu-keys.png | Bin 0 -> 3852 bytes demos/gtk-demo/demos/data/gtk-logo-rgb.gif | Bin 0 -> 6427 bytes demos/gtk-demo/demos/test.py | 14 + demos/gtk-demo/gtk-demo.py | 266 +++++++++++++++ 18 files changed, 931 insertions(+), 0 deletions(-) commit b3b1f029d8d16cf9bd74160009808147d07e3b3f Author: Tomeu Vizoso Date: Fri Jun 4 11:25:08 2010 +0200 Update gobject-introspection dependency to 0.6.14 configure.ac | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 45c4e46ae93bd83a0e3f3550df6c64ce96bbedb4 Author: Tomeu Vizoso Date: Fri Jun 4 11:23:41 2010 +0200 Post-release version bump to 0.6.1 configure.ac | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 7a94270dac48b67aabc7dbad156cf1180db9cb5e Author: Tomeu Vizoso Date: Fri Jun 4 08:29:42 2010 +0200 Pre-release version bump 0.6.0 configure.ac | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 1e42ee6eb25a07a5201f24ffeac18d298a98477e Author: John (J5) Palmieri Date: Fri May 28 10:03:11 2010 -0400 support for caller-allocates annotations for structs * 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 gi/pygi-invoke.c | 73 +++++++++++++++++++++++++++++++++++++++++++-- tests/test_everything.py | 28 +++++++++++++++++ 2 files changed, 97 insertions(+), 4 deletions(-) commit c3f467e0ae99aa78c2fdb91b973a272d2fe970bd Author: John (J5) Palmieri Date: Wed Jun 2 14:14:16 2010 -0400 don't import gobject directly in the tests * use from gi.repository import GObject tests/test_overrides.py | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) commit 46b5133fea4cd5db57a360b3cbe9ee923e27560c Author: Tomeu Vizoso Date: Tue Jun 1 14:28:57 2010 +0200 Wrap C arrays in structs as GArrays before converting to Python https://bugzilla.gnome.org/show_bug.cgi?id=620247 gi/pygi-info.c | 11 +++++++++++ tests/test_gi.py | 17 +++++++++++++++++ 2 files changed, 28 insertions(+), 0 deletions(-) commit 5f0f9a9c9145a129a063b041424c3109a24d9ead Author: Tomeu Vizoso Date: Wed May 26 13:20:27 2010 +0200 Install pre-commit hook that checks the code changes for style conformance autogen.sh | 7 +++++++ pre-commit.hook | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 0 deletions(-) commit 1319da5b7f483e48a90b0b7489f77236ba26f479 Author: Tomeu Vizoso Date: Wed May 26 12:19:17 2010 +0200 Apply consistent whitespace formatting with: astyle -p -d -c -S -U -M60 This won't affect git blame nor git diff if the switch -w is used. gi/gimodule.c | 138 ++++---- gi/pygi-argument.c | 960 +++++++++++++++++++++++----------------------- gi/pygi-boxed.c | 108 +++--- gi/pygi-callbacks.c | 154 ++++---- gi/pygi-callbacks.h | 8 +- gi/pygi-closure.c | 270 +++++++------- gi/pygi-closure.h | 18 +- gi/pygi-foreign-cairo.c | 36 +- gi/pygi-foreign-cairo.h | 36 +- gi/pygi-foreign.c | 54 ++-- gi/pygi-foreign.h | 10 +- gi/pygi-info.c | 646 ++++++++++++++++---------------- gi/pygi-invoke.c | 380 ++++++++++---------- gi/pygi-repository.c | 114 +++--- gi/pygi-struct.c | 88 +++--- gi/pygi-type.c | 32 +- gi/pygi.h | 20 +- gi/pygobject-external.h | 14 +- 18 files changed, 1544 insertions(+), 1542 deletions(-) commit 6156f15cb15b4c20e975527227135d49207c520a Author: Tomeu Vizoso Date: Tue May 25 14:08:51 2010 +0200 Prepend gi.repository to the __module__ attribute of wrapper classes. https://bugzilla.gnome.org/show_bug.cgi?id=619597 gi/module.py | 4 ++-- tests/test_gi.py | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) commit 097b92983b7a322c58fecb1e691ba6ddf5035548 Author: Tomeu Vizoso Date: Tue May 25 14:17:13 2010 +0200 Correctly identify at creation time: * if the class is defined in python -> hook up vfuncs * if the class wraps a type from a .typelib -> set atributes * else (GLocalFile) -> do nothing https://bugzilla.gnome.org/show_bug.cgi?id=619604 gi/types.py | 15 +++++++++++---- 1 files changed, 11 insertions(+), 4 deletions(-) commit 686e10fcdb108af9758eb025a3447813c3513a93 Author: Tomeu Vizoso Date: Thu Apr 29 10:55:13 2010 +0200 Dont complain if another base has implemented the method https://bugzilla.gnome.org/show_bug.cgi?id=617153 gi/types.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 9f34d120845d936b04546a5cea599ec67e9181a7 Author: John (J5) Palmieri Date: Mon May 24 16:16:50 2010 -0400 fix up Builder override, add new override methods, and add unit tests * check for flags when connecting signals now that we get gi GObject types * override the add_from_string and add_objects_from string overrides so that you don't have to pass in the length of the buffer * add test that loads objects from strings and connects them to signals gi/overrides/Gtk.py | 19 +++++++++++- tests/test_overrides.py | 72 +++++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 86 insertions(+), 5 deletions(-) commit 1561d2977691f1cb8684f183a2e274c47960d931 Author: Tomeu Vizoso Date: Mon May 24 18:48:10 2010 +0200 Improve handling of subclasses without __gtype_name__ Gives a better message at type registration. https://bugzilla.gnome.org/show_bug.cgi?id=616849 gi/gimodule.c | 9 +++++++++ tests/test_gi.py | 13 ++++++++++++- 2 files changed, 21 insertions(+), 1 deletions(-) commit c9d44d4d46c3da3a445000b1db592baa9c378a92 Author: Tomeu Vizoso Date: Fri Apr 30 18:17:50 2010 +0200 Add support for GArray args https://bugzilla.gnome.org/show_bug.cgi?id=617054 gi/pygi-invoke.c | 11 +++++++---- tests/test_gi.py | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+), 4 deletions(-) commit c171579ee22681e1ee4ad33441c89f1053bdc3d1 Author: John (J5) Palmieri Date: Mon May 24 11:48:16 2010 -0400 check refcounting of callback userdata in unit tests tests/test_everything.py | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+), 0 deletions(-) commit 8eb809468fe3e1f8e4f92bd7f25d96f9cf802cd4 Author: Tomeu Vizoso Date: Sat May 22 15:12:37 2010 +0200 Add support for out args in callbacks This patch refactors argument marshalling for closures in preparation for more complete support. Also fixes a bug in the memory management of user_data args. https://bugzilla.gnome.org/show_bug.cgi?id=617780 gi/pygi-closure.c | 335 +++++++++++++++++++++++++++++++++++++++++------------ tests/test_gi.py | 4 + 2 files changed, 263 insertions(+), 76 deletions(-) commit 0df0c956bb2476392c9d81f0a243a7e84c067166 Author: Tomeu Vizoso Date: Sun May 23 10:59:27 2010 +0200 If None is passed to an interface which takes an object, convert it to NULL * without this patch PyGI treats the None object as a PyGObject and ends up extracting garbage data causing a crash * None's equivalent in C is NULL so we must provide a special case where we marshal the None as NULL https://bugzilla.gnome.org/show_bug.cgi?id=617880 gi/pygi-argument.c | 5 +++++ tests/test_everything.py | 6 ++++++ 2 files changed, 11 insertions(+), 0 deletions(-) commit 60fdf4b8f738dd0f5c190bc18ddf010032d3c5ca Author: John (J5) Palmieri Date: Sat May 22 14:06:37 2010 +0200 correctly handle floating objects in gtk * this is a stopgap so we work with older pygobject libraries * there is a patch at https://bugzilla.gnome.org/show_bug.cgi?id=583909 which adds the correct fix to pygobject * once pygobject accepts the above patch this patch does not need to be reverted because pygobject_register_sinkfunc becomes a noop * add tests (Tomeu) https://bugzilla.gnome.org/show_bug.cgi?id=619007 gi/gimodule.c | 12 ++++++++++++ tests/test_everything.py | 3 +++ 2 files changed, 15 insertions(+), 0 deletions(-) commit 4b369f8aca980fc6a582094d6648f40fe4af5e9f Author: John (J5) Palmieri Date: Sat May 22 13:21:30 2010 +0200 Return an empty list when a NULL GList and GSList is returned * In GTK a GList * and GSList set to NULL is equivilant to empty list. All GTK list methods can take a NULL and treat it as an empty list. e.g. g_list_length(NULL) returns 0 * PyGtk consitently returns empty list when a NULL is returned for GList or GSList return * Many PyGtk apps do this: for i in range(len(obj.get_list())): ... * If we were to continue to return None, they would have to add a check which is needlessly verbose and isn't very "pythonic" https://bugzilla.gnome.org/show_bug.cgi?id=619232 gi/pygi-argument.c | 6 ------ tests/test_everything.py | 4 ++-- 2 files changed, 2 insertions(+), 8 deletions(-) commit 71a2148b00dfdda99e0d961ae39b901608724e59 Author: Steve Frécinaux Date: Fri May 21 19:05:03 2010 +0200 Fix warning in configure. The warning is caused by the use of the construction 'CFLAGS+=' in a sh version that doesn't understand it (in this case, 'dash'). https://bugzilla.gnome.org/show_bug.cgi?id=619311 configure.ac | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit aa0357e468eb91e0f3707346e9b32f312fbf51d3 Author: Tomeu Vizoso Date: Thu Apr 29 13:06:15 2010 +0200 GTypeInterface cannot be unrefed https://bugzilla.gnome.org/show_bug.cgi?id=617159 gi/gimodule.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) commit ab1aaff108d23aabd28c3634edfb67236eb55460 Author: John (J5) Palmieri Date: Sat May 22 13:09:48 2010 +0200 fix NULL array unit tests and fix crasher when sending None as an array * Unit tests were wrong given the annotation for test_array_int_null_in and test_array_int_null_out: /** * test_array_int_null_in: * @arr: (array length=len) (allow-none): * @len: length */ -- and -- /** * test_array_int_null_out: * @arr: (out) (array length=len) (allow-none): * @len: (out) : length */ The (array length=len) annotation meant we don't pass in or receive the len argument as this is handled under the hood (Python's representation of an array, the list type, encapsulates the length inside the type) * Fixing up the tests revealed a latent crasher bug when passing None to an interface that accepts an array. The fix was to check for NULL and set the length argument to 0 when invoking the bound method. https://bugzilla.gnome.org/show_bug.cgi?id=619235 gi/pygi-invoke.c | 6 +++++- tests/test_everything.py | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) commit e928ea9b1df9d87314ff8e93479530e26be9bd87 Author: John (J5) Palmieri Date: Fri May 14 14:57:27 2010 -0400 don't error out on methods with callbacks as return type * Right now we just throw an error which means API's like gtk_about_dialog_set_url_hook aren't able to be called, * this allows us to call such APIs while printing a warning, in most cases API such as this doesn't need to be used anymore and is a result of early GTK development gi/pygi-argument.c | 14 +++++++++++--- 1 files changed, 11 insertions(+), 3 deletions(-) commit d963007aab123f4e53a944a66a935db2d22907c2 Author: John (J5) Palmieri Date: Mon May 17 11:54:34 2010 -0400 reset sys.argv to the return value of Gtk.init_check * applications which check command line arguments will error out if it encounters a GTK command line switch such as --g-fatal-warnings. * The Gtk.init* API reads these switches and returns a new argv with the GTK switches stripped out * In C argv is modified in place but in Python we must set sys.argv to the new modified argument list * fixes https://bugzilla.gnome.org/show_bug.cgi?id=618889 gi/overrides/Gtk.py | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 897420ed97cc4a7b8a806894df5e76ed72617614 Author: John (J5) Palmieri Date: Wed May 12 14:25:32 2010 -0400 add GtkUIManager and GtkActionGroup overrides * fixes bug https://bugzilla.gnome.org/show_bug.cgi?id=618476 gi/overrides/Gtk.py | 167 ++++++++++++++++++++++++++++++++++++++++++++++- tests/test_overrides.py | 45 +++++++++++++ 2 files changed, 211 insertions(+), 1 deletions(-) commit 865939d29c1e9d69dbe6b9cf89477b5516dbff1f Author: Zach Goldberg Date: Thu May 13 01:02:24 2010 -0400 Bump version for development to 0.5.2 (hopefully 0.6) configure.ac | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 2674a9546b0246d4a75d71cf1708df77dc0173f9 Author: Tomeu Vizoso Date: Wed May 5 15:54:39 2010 +0200 Fix overrides.Gdk.Color.__new__ args https://bugzilla.gnome.org/show_bug.cgi?id=617757 gi/overrides/Gdk.py | 2 +- tests/Makefile.am | 3 ++- tests/test_overrides.py | 22 ++++++++++++++++++++++ 3 files changed, 25 insertions(+), 2 deletions(-) commit c20b9f632a35bada1320ccc10fb7d5b2c06b9a88 Author: John (J5) Palmieri Date: Thu Apr 29 14:55:33 2010 -0400 wrap GObject module so we can go through GI when requesting attrs * 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 gi/importer.py | 6 +- gi/module.py | 30 +++++++++++++++ tests/test_everything.py | 6 +- tests/test_gi.py | 93 +++++++++++++++++++++++++--------------------- 4 files changed, 87 insertions(+), 48 deletions(-) commit 64324a4c629432b2e688299b6edbfd5da4439a2a Author: John (J5) Palmieri Date: Fri Apr 30 14:11:55 2010 -0400 override Gdk.Drawable to add cairo_create convinience method gi/overrides/Gdk.py | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) commit 17fa1289b1e2ed841dd5de09a2ec7c25d401886e Author: Tomeu Vizoso Date: Mon May 3 19:13:46 2010 +0200 Fix passing callbacks as constructor args https://bugzilla.gnome.org/show_bug.cgi?id=617551 gi/pygi-callbacks.c | 3 ++- gi/pygi-callbacks.h | 1 + gi/pygi-invoke.c | 7 +++++-- tests/test_everything.py | 21 +++++++++++++++++++++ 4 files changed, 29 insertions(+), 3 deletions(-) commit f9fff978d56ddf2c012b906169ae16abb7fdc2a5 Author: Tomeu Vizoso Date: Wed May 5 08:06:03 2010 +0200 Avoid freeing garbage gi/pygi-invoke.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) commit 5e20c018ae09a936f5ff140df5d1c133c98e98ba Author: Tomeu Vizoso Date: Thu Apr 29 13:09:03 2010 +0200 Only hookup vfunc implementations for locally-defined methods https://bugzilla.gnome.org/show_bug.cgi?id=617160 gi/types.py | 10 +++++++++- tests/test_gi.py | 10 ++++++++++ 2 files changed, 19 insertions(+), 1 deletions(-) commit 3e61e7d4450a2bb133c7f3862e0962a35339ce8d Author: Tomeu Vizoso Date: Mon May 3 18:35:13 2010 +0200 Fix passing GDestroyNotify https://bugzilla.gnome.org/show_bug.cgi?id=617542 gi/pygi-invoke.c | 3 ++- tests/test_everything.py | 10 ++++++++++ 2 files changed, 12 insertions(+), 1 deletions(-) commit 9669acd0fad193013ef3505ae231588307f9834c Author: Tomeu Vizoso Date: Mon May 3 12:23:58 2010 +0200 Move invocation code to its own file https://bugzilla.gnome.org/show_bug.cgi?id=617107 gi/Makefile.am | 2 + gi/pygi-info.c | 884 --------------------------------------------------- gi/pygi-invoke.c | 909 +++++++++++++++++++++++++++++++++++++++++++++++++++++ gi/pygi-invoke.h | 37 +++ gi/pygi-private.h | 1 + 5 files changed, 949 insertions(+), 884 deletions(-) commit 9b923a68dfde06fc2df6321b3f1e53f1c57b3666 Author: John (J5) Palmieri Date: Tue Apr 27 19:13:08 2010 -0400 Add the Gtk.Builder override gi/overrides/Gtk.py | 37 ++++++++++++++++++++++++++++++++++++- 1 files changed, 36 insertions(+), 1 deletions(-) commit 9fc6783406b8263ebd67ceae2730b4e86689b43e Author: Tomeu Vizoso Date: Fri Apr 30 15:00:52 2010 +0200 Fix GAsyncReadyCallback https://bugzilla.gnome.org/show_bug.cgi?id=616236 gi/pygi-closure.c | 8 +++++++- tests/test_everything.py | 16 ++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletions(-) commit 5657ccaaec09e2a3194ea2e9a923724bcc66759e Author: Tomeu Vizoso Date: Thu Apr 29 18:32:50 2010 +0200 Add override for Gdk.Color https://bugzilla.gnome.org/show_bug.cgi?id=617162 gi/overrides/Gdk.py | 20 +++++++++++++++++++- 1 files changed, 19 insertions(+), 1 deletions(-) commit 4410abd589a2f64cfbd7bbcb4013fae9e4aa734f Author: John (J5) Palmieri Date: Wed Apr 28 13:19:48 2010 -0400 make __all__ be a list of strings, fix override mechanism to use it correctly * before we were adding classes to the __all__ module property but the convention is to use the name of the class * simplified the check to just check the name against __all__ instead of trying to get the class and then checking the class against None as well as in __all__ * went through all the overrides and made __all__ be a list of strings gi/module.py | 9 ++++----- gi/overrides/GIMarshallingTests.py | 2 +- gi/overrides/Gdk.py | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) commit 64fa8f936bad9a90628df446e690d67d947a0a22 Author: Tomeu Vizoso Date: Mon Apr 26 11:41:06 2010 +0200 One more step at refactoring _wrap_g_function_info_invoke https://bugzilla.gnome.org/show_bug.cgi?id=616357 gi/pygi-callbacks.c | 22 +- gi/pygi-callbacks.h | 4 +- gi/pygi-info.c | 582 +++++++++++++++++++++++++++++---------------------- 3 files changed, 346 insertions(+), 262 deletions(-) commit 7fc5528273edae5ecdd5d8bdf0e5b898eec7a624 Author: Zach Goldberg Date: Tue Apr 20 23:23:38 2010 -0400 Step 1 of refactoring _wrap_g_function_info_invoke Original patch by David Malcom This patch bitrots *REALLY* fast. https://bugzilla.gnome.org/show_bug.cgi?id=616357 gi/pygi-info.c | 417 +++++++++++++++++++++++++++++--------------------------- 1 files changed, 214 insertions(+), 203 deletions(-) commit 1d9c6b6d76a3e27f66e6f0cfc7b16c5191e4fc22 Author: Tomeu Vizoso Date: Tue Apr 27 10:24:35 2010 +0200 Dont force subclasses to implement all virtual methods of their bases https://bugzilla.gnome.org/show_bug.cgi?id=616674 gi/types.py | 4 ++-- tests/test_gi.py | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) commit 8a0c48f4dd512797e5cf132f8ec6fb6d4d1e7aaa Author: Zach Goldberg Date: Sun Apr 25 15:09:08 2010 -0400 Correct the reference counting of userdata in closure handling Without this we lose references on every call and eventually end up free'ing objects while they are still in use. https://bugzilla.gnome.org/show_bug.cgi?id=616786 gi/pygi-closure.c | 3 +++ tests/test_everything.py | 13 +++++++++++++ 2 files changed, 16 insertions(+), 0 deletions(-) commit 2b12049306bf57513c43d08017185468bf897a4a Author: Zach Goldberg Date: Tue Apr 20 22:57:14 2010 -0400 Change SCOPE_TYPE_INVALID handling to be a more verbose error. (Previous commit did not include the proper error message. I blame git-bz) https://bugzilla.gnome.org/show_bug.cgi?id=616356 gi/pygi-closure.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 8240320d0b67074ce91bdf7aadcf5951c5a8c45a Author: Zach Goldberg Date: Tue Apr 20 23:53:57 2010 -0400 Force out arguments to be initialized as NULL. Comes with a test. This fix was motivated by a real world library which had a transfer full utf8 out argument which sometimes was not set. We would leave the pointer dangling and try and free it at the end of invoke() and crash. Library refused to change their behavior so we're forced to take care of it on our end. https://bugzilla.gnome.org/show_bug.cgi?id=616043 gi/pygi-info.c | 1 + tests/test_gi.py | 3 +++ 2 files changed, 4 insertions(+), 0 deletions(-) commit 10e558ca283cdd06725bb0d24b5071ccbecc7d13 Author: Zach Goldberg Date: Tue Apr 20 22:57:14 2010 -0400 Change SCOPE_TYPE_INVALID handling to be a warning and not an error Be slightly nicer to library maintainers. It really isn't a fatal condition if we don't have a proper scope type, better to leave a good code comment and a warning than to cause their code to segv. https://bugzilla.gnome.org/show_bug.cgi?id=616356 gi/pygi-closure.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit d3b5fae9d609dbcd83deb0fa9102b24faf76787c Author: Zach Goldberg Date: Tue Apr 20 22:43:20 2010 -0400 Refactor implementation of scope call to allow for multiple calls during lifetime of function invocation. https://bugzilla.gnome.org/show_bug.cgi?id=616343 gi/pygi-closure.c | 10 +++++----- gi/pygi-info.c | 9 +++++++-- tests/test_everything.py | 9 +++++++++ 3 files changed, 21 insertions(+), 7 deletions(-) commit 3ba666b7ab9c393963922c272e7d87bff50a93f9 Author: Tomeu Vizoso Date: Sat Jan 2 16:31:55 2010 +0100 Add basic support for unions https://bugzilla.gnome.org/show_bug.cgi?id=603598 gi/module.py | 3 +- gi/pygi-argument.c | 24 +++---------- gi/pygi-boxed.c | 18 +++++++++- gi/pygi-info.c | 94 +++++++++++++++++++++++++++++++++++++++++++++++----- gi/pygi-info.h | 1 + tests/test_gi.py | 56 +++++++++++++++++++++++++++++++ 6 files changed, 165 insertions(+), 31 deletions(-) commit af9e4e086d160fe7fb24758ed81753e784b198a8 Author: Simon van der Linden Date: Fri Jan 22 22:16:32 2010 +0100 Bump required GLib version to 2.22 Since PyGObject now depends on GLib 2.22.4, there is no need to keep PyGI backward-compatible. configure.ac | 2 +- gi/pygi-private.h | 20 -------------------- 2 files changed, 1 insertions(+), 21 deletions(-) commit c0f40de5648e2ebc556c449342a0025ffce2e33b Author: Tomeu Vizoso Date: Sun Apr 18 11:50:14 2010 -0400 Refactor get_* methods in the *Info wrappers https://bugzilla.gnome.org/show_bug.cgi?id=616108 gi/pygi-info.c | 360 ++++++++++++++++++++++++++------------------------------ 1 files changed, 168 insertions(+), 192 deletions(-) commit 24bb89f1310dc2fc8ee6ddaf945342ebf80055cd Author: Tomeu Vizoso Date: Tue Apr 20 15:12:47 2010 +0200 Print any error messages raised inside _pygi_closure_handle https://bugzilla.gnome.org/show_bug.cgi?id=616279 gi/pygi-closure.c | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) commit d1ba23cdd05686ea721425f233371d573a2e9cce Author: Tomeu Vizoso Date: Thu Apr 22 19:57:17 2010 +0200 Rename variable with a very generic name gi/module.py | 28 ++++++++++++++-------------- 1 files changed, 14 insertions(+), 14 deletions(-) commit 391640b30ede50af3667b1019edb72bd79f2c68c Author: Tomeu Vizoso Date: Thu Apr 22 19:53:06 2010 +0200 Add support for enums without GType https://bugzilla.gnome.org/show_bug.cgi?id=616520 gi/module.py | 6 +++++- gi/pygi-argument.c | 22 +++++++++++++++++++++- gi/types.py | 14 ++++++++++++++ tests/test_gi.py | 30 ++++++++++++++++++++++++++++-- 4 files changed, 68 insertions(+), 4 deletions(-) commit 89704f60ddae0c81f1383d86491ef2785590a353 Author: Zach Goldberg Date: Tue Apr 20 22:20:42 2010 -0400 Bump version during development to 0.5.1 This follows what is, according to Colin Walters, standard versioning practice. During development the version in your config is the *next* version you will release, not the version after. Thus after a release you make a new commit bumping to the next development version. configure.ac | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit e203dc7c8f524c16aa52e15758dc3a2b09fbac75 Author: John Ehresman Date: Tue Apr 20 20:40:02 2010 -0400 Added missing , to keyword list of gio.GFile.set_attribute gio/gresolver.override | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 0b222f01ac9ceea1d127083623ad532ecc75bf7e Author: John Ehresman Date: Tue Apr 20 20:37:12 2010 -0400 Fix arg conversion in gio.GFile.set_attribute gio/gfile.override | 232 ++++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 227 insertions(+), 5 deletions(-) commit a579ccc8bea90937bf970be3d461e2b650b0c7d6 Author: John Ehresman Date: Tue Apr 20 20:01:53 2010 -0400 Set constants under python 2.5 or before gobject/gobjectmodule.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) commit 11fa39a861abf679e01b5f0da97be93ae0adf0f0 Author: José Alburquerque Date: Sun Apr 18 20:22:21 2010 -0400 Doc Extractor: Use replacements that make sense for &...; expressions. * codegen/docextract_to_xml.py: Use # and   respectively for # (#) and  . These are interpreted correctly in XML and will not make the parsing crash. codegen/docextract_to_xml.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 8dbc2cb016acef7b364804cd9bc8f0b1da37e84b Author: Zach Goldberg Date: Sun Apr 18 14:32:06 2010 -0400 Bump version for release 0.5.0 HACKING | 7 +++++++ configure.ac | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) commit 3293c91d90c5c497b45e42a527d7f79f7435823e Author: Tomeu Vizoso Date: Sun Apr 18 14:28:13 2010 -0400 One more missing file... examples/Makefile.am | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit 1dc575af19fe985cc3fa3ec0cf18aeab1f43c16d Author: Tomeu Vizoso Date: Sun Apr 18 14:18:44 2010 -0400 Add more stuff to the tarballs Makefile.am | 8 +++++++- configure.ac | 1 + 2 files changed, 8 insertions(+), 1 deletions(-) commit 8a9bb04755057e934b7f46c917af6ef281a2fedd Author: Tomeu Vizoso Date: Sun Apr 18 13:48:45 2010 -0400 Add one more missing file to tarballs gi/overrides/Makefile.am | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 979e01852fc7f830ee91093accdc387fa535075f Author: Tomeu Vizoso Date: Sun Apr 18 13:45:29 2010 -0400 Add missing file to tarballs tests/Makefile.am | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 8b70faa7a9a32b9ea8862f28a503e38f496cfd89 Author: Tomeu Vizoso Date: Sun Apr 18 13:11:11 2010 -0400 Implement vfuncs. https://bugzilla.gnome.org/show_bug.cgi?id=602736 gi/gimodule.c | 89 +++++++++++++++++++++++++++++++++++++++++++++++++++ gi/pygi-argument.c | 1 + gi/pygi-callbacks.c | 3 +- gi/pygi-closure.c | 4 +- gi/pygi-closure.h | 2 +- gi/pygi-info.c | 86 ++++++++++++++++++++++++++++++++++++++++++++++++- gi/pygi-info.h | 1 + gi/types.py | 44 +++++++++++++++++-------- tests/test_gi.py | 18 ++++++++++ 9 files changed, 227 insertions(+), 21 deletions(-) commit e239faacb4798fe2d166233ca1a19a843a6225e3 Author: Zach Goldberg Date: Sun Apr 18 11:59:06 2010 -0400 Fix a typo in pygi-callbacks.c header gi/pygi-callbacks.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 79aa416ae8632b123da61d79fb820d9e2704209c Author: Zach Goldberg Date: Sat Apr 17 12:00:05 2010 -0400 Implement nullable argument support, including tests https://bugzilla.gnome.org/show_bug.cgi?id=616035 gi/pygi-argument.c | 43 +++++++++++++++++++++++++++++++++++++------ gi/pygi-argument.h | 3 ++- gi/pygi-info.c | 19 +++++++++++++------ tests/test_everything.py | 28 ++++++++++++++++++++++++++++ 4 files changed, 80 insertions(+), 13 deletions(-) commit 7d533b8893bc4a8a82fd9708278fa1dce5d3551e Author: Zach Goldberg Date: Sat Apr 17 12:56:19 2010 -0400 Move some tests from test_gi to test_everything tests/test_everything.py | 60 ++++++++++++++++++++++++++++++++++++++++++++ tests/test_gi.py | 62 +--------------------------------------------- 2 files changed, 61 insertions(+), 61 deletions(-) commit a90298cc9e6c0f336f887a71d80b1efd07ec2811 Author: Tomeu Vizoso Date: Sun Apr 18 10:44:35 2010 -0400 Update to latest version of the pygi-convert.sh script pygi-convert.sh | 193 +++++++++++++++++++++++++++++++++++++++---------------- 1 files changed, 137 insertions(+), 56 deletions(-) commit 34a39318c674737c6d64f2430456daef86ba1626 Author: Colin Walters Date: Sun Apr 18 10:40:44 2010 -0400 Add Tomeu's prototype script for converting pygtk to pygi pygi-convert.sh | 71 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 71 insertions(+), 0 deletions(-) commit a3afdb5fd33de0bf11d63857a245a8f5edec242c Author: Olav Vitters Date: Sun Apr 18 13:01:58 2010 +0200 Fix doap file pygi.doap | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) commit 0de73d0bba79f92af22f43693f3575c596712416 Author: Zach Goldberg Date: Sat Apr 17 16:01:31 2010 -0400 Add Zach Goldberg as a pygi maintainer pygi.doap | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) commit a0e22e36e8cf0c1e0da3c0ec48c821fdb5a07ccd Author: Tomeu Vizoso Date: Sat Apr 17 11:47:54 2010 -0400 Require PyCairo configure.ac | 7 +------ 1 files changed, 1 insertions(+), 6 deletions(-) commit 2778f8a1bf6379a46beec6546c8efcb0fec2d7ad Author: Tomeu Vizoso Date: Sat Apr 17 11:40:14 2010 -0400 Add examples/cairo-demo.py examples/cairo-demo.py | 121 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 121 insertions(+), 0 deletions(-) commit 610dd1eec87fab5c8c3badb4d104cba74477c745 Author: Zach Goldberg Date: Sat Apr 17 09:17:14 2010 -0400 Implementation callback support with scoping and basic argument support. This patch was originally written by Zach Goldberg with modifications and review by Simon van der Linden and Colin Walters . This impementation enforces the assumption that any one function signature can only have one (callback, userdata, destronotify) tuple. This allows us to move callback creation into the actual function invoke pipeline and also to keep just one destroy notify callback around, vastly simplifying the code. https://bugzilla.gnome.org/show_bug.cgi?id=603095 configure.ac | 2 + gi/Makefile.am | 4 + gi/pygi-argument.c | 12 ++- gi/pygi-callbacks.c | 216 +++++++++++++++++++++++++++++++++++++++++++++++++++ gi/pygi-callbacks.h | 47 +++++++++++ gi/pygi-closure.c | 205 ++++++++++++++++++++++++++++++++++++++++++++++++ gi/pygi-closure.h | 57 ++++++++++++++ gi/pygi-info.c | 49 +++++++++++- gi/pygi-private.h | 2 + tests/test_gi.py | 64 +++++++++++++++- 10 files changed, 648 insertions(+), 10 deletions(-) commit a34cb9f0038a6c89e5e6c5f7761d48a5a833044f Author: Tomeu Vizoso Date: Sat Apr 17 10:54:45 2010 -0400 Add support for foreign structs https://bugzilla.gnome.org/show_bug.cgi?id=603712 configure.ac | 6 ++ gi/Makefile.am | 10 +++- gi/gimodule.c | 7 +++ gi/pygi-argument.c | 27 +++++++++- gi/pygi-foreign-cairo.c | 103 ++++++++++++++++++++++++++++++++++++++ gi/pygi-foreign-cairo.h | 55 ++++++++++++++++++++ gi/pygi-foreign.c | 123 ++++++++++++++++++++++++++++++++++++++++++++++ gi/pygi-foreign.h | 52 +++++++++++++++++++ gi/pygi-private.h | 1 + tests/test_everything.py | 48 ++++++++++++++++++ 10 files changed, 428 insertions(+), 4 deletions(-) commit e73b6f6fe8b5f23a2a390ae0a6bbced593ded155 Author: Tomeu Vizoso Date: Fri Apr 16 14:35:13 2010 -0400 Allow creating structs with pointers https://bugzilla.gnome.org/show_bug.cgi?id=603537 gi/pygi-struct.c | 6 ------ tests/test_gi.py | 3 ++- 2 files changed, 2 insertions(+), 7 deletions(-) commit fc9ff02e53aacf9e77625c70985e99813544912a Author: Tomeu Vizoso Date: Fri Apr 16 10:40:40 2010 -0400 Add gdb and valgrind variants for the tests HACKING | 19 +++++++++++++++++++ Makefile.am | 12 ++++++++++++ tests/Makefile.am | 14 +++++++++++++- 3 files changed, 44 insertions(+), 1 deletions(-) commit 695ac7bc5c60371a32538d690c7a15509f3c9637 Author: John Stowers Date: Fri Apr 16 14:36:11 2010 +1200 Add build docs for windows Makefile.am | 1 + README.win32 | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 0 deletions(-) commit e580da87f0b2fd36cb5d8008fb2fb0c3b01f456a Author: John Stowers Date: Thu Apr 15 13:40:39 2010 +1200 Setup.py cosmetic tidy * Remove local doc install, point to website instead * link to versioned docs pygobject_postinstall.py | 43 ++++++++++++++++++++++++++----------------- setup.py | 39 ++++++++++++++------------------------- 2 files changed, 40 insertions(+), 42 deletions(-) commit 69ecd506c83ddf180c6cc9a2a8dc753a02543959 Author: John Stowers Date: Sat Jul 25 14:12:30 2009 +1200 Fix crash when importing gio Only seems to be necessary on windows, but no harm on linux as multiple calls to init are OK gio/giomodule.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) commit 5d159a13d89587cba189a0ca3203ac003e2f1f2b Author: John Stowers Date: Thu Apr 15 22:52:48 2010 +1200 Bug 589671 - Dont use generate-constants This breaks the build using distutils, and it is largely unneeded. Just add the G_XXX constants to the module directly gobject/Makefile.am | 16 +-------- gobject/constants.py | 83 ++++++++++++++++++++++++++++++++++++++++++ gobject/constants.py.in | 50 ------------------------- gobject/generate-constants.c | 44 ---------------------- gobject/gobjectmodule.c | 35 ++++++++++++++++++ setup.py | 2 +- tests/runtests.py | 3 +- 7 files changed, 121 insertions(+), 112 deletions(-) commit 6d7a3ab9ce352692d0faccbf106974d264fa953d Author: John Stowers Date: Thu Apr 15 22:49:17 2010 +1200 Bug 589671 - Fix setup.py for windows build * Building pyglib as a static private library * Update to include new defs * Modernise setup.py and add more util functions to dsextras dsextras.py | 32 ++++++++++++++++-- setup.py | 102 ++++++++++++++++++++++++++++++++++++++++++++++++++-------- 2 files changed, 116 insertions(+), 18 deletions(-) commit d11ef47072acae5801ce25c68d1289e425eb9fc2 Author: John Stowers Date: Thu Apr 15 22:48:28 2010 +1200 Include pygsource.h glib/pygiochannel.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit c5f6af4844c74354abc508d17969d9d45153acf2 Author: Tomeu Vizoso Date: Thu Apr 15 14:25:59 2010 -0400 Add metadata to the .doap file pygi.doap | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) commit 81796cb77cbe6b9598a652bd63c047af93e747ee Author: John (J5) Palmieri Date: Wed Apr 14 12:01:43 2010 -0400 override that wasn't checked in - fixes some test cases gi/overrides/GIMarshallingTests.py | 69 ++++++++++++++++++++++++++++++++++++ 1 files changed, 69 insertions(+), 0 deletions(-) commit de5d2ea1584b01af809346316c7fbd4955a9db1d Author: Colin Walters Date: Wed Apr 14 10:06:07 2010 -0400 [Makefile.am] Clean up CFLAGS handling, don't override all: target First, we should move the CFLAGS into AM_CFLAGS, otherwise the per-target CFLAGS forces Automake to prefix object files, which is unnecessary since we only have one target. More importantly, avoid overriding the all: target here; that's owned by Automake. Use all-local instead to append things to the end of the normal build. gi/Makefile.am | 15 +++++++++------ 1 files changed, 9 insertions(+), 6 deletions(-) commit 5a47e96e3f580c973e6880dafa747f54c144c760 Author: Tomeu Vizoso Date: Tue Apr 13 19:15:49 2010 -0400 Use GIMarshallingTests (old TestGI) in gobject-introspection gi/overrides/TestGI.py | 69 -- tests/Makefile.am | 40 - tests/libtestgi.c | 2924 ------------------------------------------------ tests/libtestgi.h | 628 ----------- tests/test_gi.py | 832 +++++++------- 5 files changed, 416 insertions(+), 4077 deletions(-) commit 681832c3cd040433a488a400693b68f213bf7078 Author: José Alburquerque Date: Tue Apr 13 13:33:12 2010 -0400 codegen/docextract_to_xml.py: One more &...; replacement ( ). * codegen/docextract_to_xml.py: Replace   which also causes errors with a regular space. codegen/docextract_to_xml.py | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit bd4e7f2459e34957aaae59b9be807d6dff5ec1eb Author: José Alburquerque Date: Tue Apr 13 12:28:10 2010 -0400 codegen/docextract_to_xml.py: Replace some &..; that cause errors. * codegen/docextract_to_xml.py (escape_text): Replace some &..; expressions that cause errors with more appropriate output. codegen/docextract_to_xml.py | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) commit f00b9ce91fc9c3aabd4af4132fc112d9e415e12e Author: José Alburquerque Date: Sun Apr 11 17:46:40 2010 -0400 codegen/docextract_to_xml.py: Handle C++ multi-line comments. * codegen/docextract_to_xml.py (escape_text): Translate '/*' and '*/' in text to '/ *' and '* /' respectively so that comment errors don't show up when the descriptions that include C++ code with C++ multi-line comments are used in Doxygen blocks. codegen/docextract_to_xml.py | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) commit a2fcdecbb5e109da5568084d7acb2332af83b6f5 Author: José Alburquerque Date: Sun Apr 11 16:15:01 2010 -0400 codegen/docextract.py: Stop final section processing on first match. * codegen/docextract.py (process_final_sections): Modify the final section pattern matching for loop to stop on first match so that it doesn't match both a colon return ('Returns: ...') and a no colon return ('Returns ...') which leads to annotation extraction errors. codegen/docextract.py | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) commit 825fd305f03b726665edca34963978ce27448182 Author: José Alburquerque Date: Sun Apr 11 15:45:09 2010 -0400 Update doc extraction tool to handle GObjectIntrospection annotations. * codegen/docextract.py (FunctionDoc): Renamed class to GtkDoc. (GtkDoc::annotations): Added a list field to store annotations which are 2-tuples of (name, value). (GtkDoc::ret): Modified field to store the return description along with a list of annotations as described above. (GtkDoc::params): Now holds a list of 3-tupples: name, description and annotations (as described above). (GtkDoc::block_type): Add a field to tell if the comment block is a function block, signal block or property block. (GtkDoc::set_type): (GtkDoc::get_type): Add methods for setting/getting the block type. (GtkDoc::add_param): Modified to also accept a list of annotations to be added with the parameter. (GtkDoc::add_annotation): (GtkDoc::get_annotations): Added methods to add/get annotations for the comment block. (GtkDoc::append_description): Renamed to append_to_description(). (GtkDoc::get_param_description): Removed unused method. (GtkDoc::get_description): Added method to get block description. (GtkDoc::add_return): Added method to add a return accepting the first line of the description and its annotations. (GtkDoc::append_return): Renamed to append_to_return(). (Regular expressions): - Made the names of the variables un-abbreviated. - Added 'since', 'deprecated' and 'rename to' regular expressions. - Modified the return matching regular expression so that it doesn't match descriptions that begin with 'Returns ...'. This improves the docs of many function. - Added signal and property comment block identifier matching regular expressions in case those are useful. - Modified existing identifier matching regular expressions (function, signal, and property regular expressions) to properly parse annotations. Also added a regular expression for extracting annotations from the parameter and return descriptions. - Refined the function name matching regular expression to only accept identifiers that begin with a lowercase letter. This eliminates 'SECTION:' matches. - Finally, grouped commonly related expressions like return_pattern, since_pattern, etc. into groups (in lists) so that matching those sections can be done using loops. (Parsing algorithm): Modified the algorithm to use a functional approach to parsing. Extra methods like skip_to_comment() and processs_params() have been added and used in the parse_file() function to now process the comment blocks. (parse_dir): Added file processing output to stderr. * codegen/docextract_to_xml.py (usage): Added function to print out the usage. (print_annotations): Added function to print the given list of annotations. (options): Added --with-signals (-i), with-properties (-p) and --with-annotation (-a) to the existing --source-dir (-s) option. (algorithm): Now prints annotations, if specified. Also, prints signals and properties correctly (using names like Class::signal-one for signals and Classs:property) with xml such as .... The return xml is slightly modified with annotations but this would only be exhibited if annotation xml is requested. codegen/docextract.py | 439 +++++++++++++++++++++++++++++++++--------- codegen/docextract_to_xml.py | 87 ++++++-- 2 files changed, 414 insertions(+), 112 deletions(-) commit 9fef1acb42cd900d4a814a7378f60bc189121785 Author: Tomeu Vizoso Date: Fri Apr 9 13:47:03 2010 +0200 Always create the .so link gi/Makefile.am | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit e9f7fd414e94595e40eb1ba0fc471ca69136d82f Author: Paul Bolle Date: Thu Apr 8 11:52:25 2010 +0200 Docs: replace gio.IO_ERROR_* with gio.ERROR_* Signed-off-by: Paul Bolle docs/reference/pygio-file.xml | 58 +++++++++++++++++----------------- docs/reference/pygio-inputstream.xml | 22 ++++++------ docs/reference/pygio-mount.xml | 10 +++--- 3 files changed, 45 insertions(+), 45 deletions(-) commit 4cbd9941c5705970a9f7a429e236e1203d3155a1 Author: Gian Mario Tagliaretti Date: Mon Apr 5 18:10:42 2010 +0200 Bug 613341 - pygobject tests seem to require pygtk causing a circular dependencies problem move tests that require pygtk to pygtk itself tests/test_conversion.py | 83 ------------- tests/test_enum.py | 234 ------------------------------------- tests/test_gtype.py | 112 ------------------ tests/test_subtype.py | 289 ---------------------------------------------- 4 files changed, 0 insertions(+), 718 deletions(-) commit ef0ceb266a45715ece58642fb0042e3376416755 Author: Simon van der Linden Date: Wed Feb 3 20:33:03 2010 +0100 Add modelines and copyright information to overrides modules gi/overrides/Gdk.py | 21 +++++++++++++++++++++ gi/overrides/Gtk.py | 21 +++++++++++++++++++++ gi/overrides/TestGI.py | 20 ++++++++++++++++++++ 3 files changed, 62 insertions(+), 0 deletions(-) commit 5106523a4b8378997a1e6cb0488398aa73e7d9d5 Author: Simon van der Linden Date: Wed Feb 3 20:29:55 2010 +0100 Fix and complete overrides tests Those tests were missing in the last commit https://bugzilla.gnome.org/show_bug.cgi?id=602830 gi/overrides/TestGI.py | 49 ++++++++++++++++++++++++++++++++++++++++++++++++ tests/test_gi.py | 8 ++++++- 2 files changed, 56 insertions(+), 1 deletions(-) commit 23fc0f615d87994acafd9d39e92dd92b587fc2eb Author: Simon van der Linden Date: Thu Jan 21 17:30:51 2010 +0100 Don't raise an error in _pygi_import if pygi support is disabled http://bugzilla.gnome.org/show_bug.cgi?id=607674 gobject/pygboxed.c | 6 +----- gobject/pygi-external.h | 1 - gobject/pygobject.c | 6 +----- gobject/pygpointer.c | 6 +----- 4 files changed, 3 insertions(+), 16 deletions(-) commit aefac8c5f64bf059dd6652f8a843d17b34fa0854 Author: Simon van der Linden Date: Fri Jan 22 22:22:37 2010 +0100 Remove support for pointers to basic types as input-only argument and return value There is no reason for an API to use such things, and g_function_info_invoke broke such features. https://bugzilla.gnome.org/show_bug.cgi?id=607759 gi/pygi-argument.c | 586 ++++------------------------------------------ gi/pygi-argument.h | 1 - gi/pygi-info.c | 8 +- tests/libtestgi.c | 660 ---------------------------------------------------- tests/libtestgi.h | 86 ------- tests/test_gi.py | 144 ------------ 6 files changed, 47 insertions(+), 1438 deletions(-) commit eaf7cb8ebb7e34f9493ac83b2f04af4dcf45f40f Author: Simon van der Linden Date: Fri Jan 22 13:41:21 2010 +0100 Restore the overrides support Add a ModuleProxy in front of the DynamicModule when an overrides module is present. There is no need for an overrides module to be a class; it can just be a module. Add an override decorator to override the wrapper of a registered type. Adapt Gdk and Gtk accordingly. Add tests. https://bugzilla.gnome.org/show_bug.cgi?id=602830 gi/importer.py | 40 +++++++------------- gi/module.py | 43 ++++++++++++++------- gi/overrides/Gdk.py | 42 +++++++++++++------- gi/overrides/Gtk.py | 16 +++---- gi/types.py | 6 +++ tests/libtestgi.c | 105 +++++++++++++++++++++++++++++++++++++++++++++++++++ tests/libtestgi.h | 49 ++++++++++++++++++++++++ tests/test_gi.py | 36 +++++++++++++++++ 8 files changed, 273 insertions(+), 64 deletions(-) commit 289d641775d1ea52d2a5379126b70b7fcee46683 Author: Tomeu Vizoso Date: Sun Jan 10 21:01:59 2010 +0100 Initialize PyGPollFD_Type.fd_obj to NULL https://bugzilla.gnome.org/show_bug.cgi?id=606582 gio/gcancellable.override | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit b11cf2595987c1f0fc4ffd834f07c98b92aa2355 Author: Simon van der Linden Date: Fri Jan 8 21:10:28 2010 +0100 Initialize struct fields to 0 when allocating gi/pygi-struct.c | 2 +- tests/test_gi.py | 5 +++++ 2 files changed, 6 insertions(+), 1 deletions(-) commit b4189be2b2d3c350fdf33e27309bee5a72e4f72a Author: Simon van der Linden Date: Fri Jan 8 20:33:44 2010 +0100 Don't set a default constructor for structures. Update tests accordingly. The reason for this change is that setting __new__ in the metaclass doesn't let one overrides it afterwards, in a subclass (in my experience, at least, even though it seems weird). https://bugzilla.gnome.org/show_bug.cgi?id=603536 gi/types.py | 35 +++++++---------------------------- tests/libtestgi.c | 33 --------------------------------- tests/libtestgi.h | 7 ------- tests/test_gi.py | 21 ++++++++++----------- 4 files changed, 17 insertions(+), 79 deletions(-) commit 4db68b958ea11bd2c3a88067cae03fd6bdd1d24b Author: Simon van der Linden Date: Tue Jan 5 13:36:44 2010 +0100 Suppress compilation warnings gi/pygi-argument.c | 3 ++- gi/pygi-boxed.c | 2 -- gi/pygobject-external.h | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) commit 4e2efa91d101bf755739e1cca8eee41eb0ad20fd Author: Gian Mario Tagliaretti Date: Mon Jan 4 08:35:14 2010 +0100 Bug 605937 - pygobject: Makefile.am sets $TMPDIR, disrupting distcc Committed a patch from Kevin Pyle Makefile.am | 27 +++++++++++++-------------- 1 files changed, 13 insertions(+), 14 deletions(-) commit 8ddcbca0e98e0b0c082170a2b2b6cfcbd7864b40 Author: Simon van der Linden Date: Fri Dec 11 22:24:30 2009 +0100 sys.path must be modified after pygtk is imported Otherwise, sys.path is overridden by pygtk and gi.repository is loaded from the system's default site-package directory. tests/runtests.py | 1 - tests/test_gi.py | 3 +++ 2 files changed, 3 insertions(+), 1 deletions(-) commit 284a1e1c0143c95d3007cf58e6c248b5d11fb4d1 Author: Gian Mario Tagliaretti Date: Sun Jan 3 11:02:57 2010 +0100 Wrap gio.Cancellable.make_pollfd() and add a test gio/Makefile.am | 1 + gio/gcancellable.override | 37 +++++++++++++++++++++++++++++++++++++ gio/gio.override | 3 +++ tests/test_gcancellable.py | 15 +++++++++++++++ 4 files changed, 56 insertions(+), 0 deletions(-) commit 82d7bcbf37200ee2ef5892dd12bebd2f39965c56 Author: Gian Mario Tagliaretti Date: Sat Jan 2 23:15:56 2010 +0100 Make cancellable an optional parameter in many methods gio/gio.defs | 102 +++++++++++++++++++++++++++++----------------------------- 1 files changed, 51 insertions(+), 51 deletions(-) commit 49a078cd22d55dc33a03ecfda235d63955edc741 Author: Gian Mario Tagliaretti Date: Sat Jan 2 23:15:21 2010 +0100 Post release version bump to 2.21.2 configure.ac | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 4f9f1f43ab4e2cfb204ffa0e257a34cfd95d84e2 Author: Gian Mario Tagliaretti Date: Sat Jan 2 22:58:36 2010 +0100 Update NEWS and release PyGObject-2.21.1 NEWS | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 55 insertions(+), 0 deletions(-) commit c1f34be73bd186d7b4682dfef133da2c4229d213 Author: Gian Mario Tagliaretti Date: Fri Jan 1 20:25:35 2010 +0100 Wrap gio.Volume.eject_with_operation() gio/gvolume.override | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 54 insertions(+), 0 deletions(-) commit 9b76fbff6f6897aaf26ed4644c1f19efc2826917 Author: Gian Mario Tagliaretti Date: Fri Jan 1 20:22:21 2010 +0100 gio.Mount.unmount_with_operation() fix a copy/paste leftover gio/gmount.override | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 6f459786dd641cd49d81eba403d940620f961cab Author: Gian Mario Tagliaretti Date: Fri Jan 1 20:21:05 2010 +0100 Wrap gio.Mount.eject_with_operation() gio/gmount.override | 54 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 54 insertions(+), 0 deletions(-) commit d4b5d1b4839364e5676eb2da28f1d21db7e2552d Author: Gian Mario Tagliaretti Date: Fri Jan 1 20:15:38 2010 +0100 Wrap gio.Mount.unmount_mountable_with_operation() gio/gmount.override | 54 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 54 insertions(+), 0 deletions(-) commit e919d47c2430451b436cec955e9b99237f97028c Author: Gian Mario Tagliaretti Date: Fri Jan 1 18:22:46 2010 +0100 Wrap File.unmount_mountable_with_operation() gio/gfile.override | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 54 insertions(+), 0 deletions(-) commit 5a614df9c5507d67f240462f7bf71b4cd411addf Author: Gian Mario Tagliaretti Date: Fri Jan 1 18:14:11 2010 +0100 Wrap gio.File.stop_mountable() gio/gfile.override | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 52 insertions(+), 0 deletions(-) commit 6af506647f36f2b825bc6556df5ee57fa7721906 Author: Gian Mario Tagliaretti Date: Fri Jan 1 18:10:49 2010 +0100 Wrap gio.File.start_mountable() gio/gfile.override | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 52 insertions(+), 0 deletions(-) commit e700efc839fc0b651fc9794a1611190bffa80263 Author: Gian Mario Tagliaretti Date: Fri Jan 1 18:02:46 2010 +0100 Wrap gio.File.replace_readwrite_async() gio/gfile.override | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 55 insertions(+), 0 deletions(-) commit 92662f129fc728258fd5e34f53dcb081e3715017 Author: Gian Mario Tagliaretti Date: Fri Jan 1 17:00:26 2010 +0100 Wrap gio.File.poll_mountable() gio/gfile.override | 41 +++++++++++++++++++++++++++++++++++++++++ 1 files changed, 41 insertions(+), 0 deletions(-) commit 99902b786500948c3278779841e4db54223b9256 Author: Gian Mario Tagliaretti Date: Fri Jan 1 16:56:26 2010 +0100 Wrap gio.File.open_readwrite_async() gio/gfile.override | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 44 insertions(+), 0 deletions(-) commit 8cff5d53183ae81364ac74a34a1d52e55e082eb4 Author: Gian Mario Tagliaretti Date: Fri Jan 1 16:50:15 2010 +0100 Wrap gio.File.eject_mountable_with_operation() gio/gfile.override | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 54 insertions(+), 0 deletions(-) commit ca436fe7785fd24b0f0e65f2f8c9fa6478277682 Author: Gian Mario Tagliaretti Date: Fri Jan 1 13:30:24 2010 +0100 Wrap gio.File.create_readwrite_async() and add a test gio/gfile.override | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ tests/test_gio.py | 24 ++++++++++++++++++++++++ 2 files changed, 75 insertions(+), 0 deletions(-) commit f72c5e451dfaeb01b3c3d9243fed2732d3620462 Author: Gian Mario Tagliaretti Date: Fri Jan 1 13:20:11 2010 +0100 Wrap gio.Drive.stop() gio/gdrive.override | 52 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 52 insertions(+), 0 deletions(-) commit 29043bade408338cefa13fb4b0c875aabd3ef05e Author: Gian Mario Tagliaretti Date: Fri Jan 1 13:00:42 2010 +0100 Wrap gio.Drive.start() gio/gdrive.override | 52 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 52 insertions(+), 0 deletions(-) commit dff374287bbecc8af782bbc726fad86c6c867754 Author: Gian Mario Tagliaretti Date: Fri Jan 1 12:45:29 2010 +0100 Add more remainders on missing methods of gio.Socket and related types gio/gsocket.override | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) commit b8c7e996498bd72df551011af85ff05ef7335b4f Author: Gian Mario Tagliaretti Date: Fri Jan 1 12:41:08 2010 +0100 Wrap gio.SocketListener.accept_socket_async|finish() and add a test gio/gsocket.override | 86 +++++++++++++++++++++++++++++++++++++++++++++++- tests/test_gsocket.py | 24 +++++++++++++ 2 files changed, 108 insertions(+), 2 deletions(-) commit a5ae2d5ba3db34967fe07a3cc97b75df2793988c Author: Gian Mario Tagliaretti Date: Fri Jan 1 12:28:53 2010 +0100 Wrap gio.SocketListener.accept_finish() and add a test gio/gsocket.override | 44 ++++++++++++++++++++++++++++++++++++++++++-- tests/test_gsocket.py | 24 ++++++++++++++++++++++++ 2 files changed, 66 insertions(+), 2 deletions(-) commit a5ab26cc1bb3e9dd57e2fdb26ef5c02e8066d097 Author: Gian Mario Tagliaretti Date: Fri Jan 1 11:19:34 2010 +0100 Wrap gio.SocketListener.accept_async() gio/gsocket.override | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 42 insertions(+), 0 deletions(-) commit c9496b29ef9ef232020a4044577d2947353953a5 Author: Gian Mario Tagliaretti Date: Fri Jan 1 11:14:35 2010 +0100 Wrap gio.SocketListener.accept_socket() and add a test gio/gsocket.override | 48 +++++++++++++++++++++++++++++++++++++++++++++++- tests/test_gsocket.py | 13 +++++++++++++ 2 files changed, 60 insertions(+), 1 deletions(-) commit 1aa5e301c49f11e1c5ef58de44b4b03f714d1a70 Author: Gian Mario Tagliaretti Date: Thu Dec 31 16:35:18 2009 +0100 Wrap gio.SocketListener.accept() and add a test gio/gsocket.override | 46 +++++++++++++++++++++++++++++++++++++++++++++- tests/test_gsocket.py | 13 +++++++++++++ 2 files changed, 58 insertions(+), 1 deletions(-) commit aaedcf166c78baf5449ef59d0ade4a29077fedc7 Author: Gian Mario Tagliaretti Date: Thu Dec 31 16:25:33 2009 +0100 Make cancellable optional in gio.SocketClient.connect_to_host() gio/gio.defs | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 3829d7667b19126fb74562b28d271e616b154c99 Author: Gian Mario Tagliaretti Date: Thu Dec 31 15:25:10 2009 +0100 Wrap gio.SocketListener.add_address() and add a test gio/gsocket.override | 57 ++++++++++++++++++++++++++++++++++++++++++++++++- tests/test_gsocket.py | 9 +++++++ 2 files changed, 65 insertions(+), 1 deletions(-) commit 5bec72f34ea75bc56158cae5c39d61a2a4e7e601 Author: Gian Mario Tagliaretti Date: Thu Dec 31 10:19:47 2009 +0100 Add more remainders on missing methods of gio.Socket and related types gio/gsocket.override | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) commit b08b20f2b1a57bcbf400d6fe8e87cf052bdb719d Author: Gian Mario Tagliaretti Date: Thu Dec 31 10:16:18 2009 +0100 Wrap gio.SocketClient.connect_to_service_async() gio/gsocket.override | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 47 insertions(+), 0 deletions(-) commit 116ea1bfe32946e67aa54eb8dc7b977e57f254c2 Author: Gian Mario Tagliaretti Date: Thu Dec 31 10:10:43 2009 +0100 Wrap gio.SocketClient.connect_to_host_async() gio/gsocket.override | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 48 insertions(+), 0 deletions(-) commit 9c930910505d5b9001b8cec17ff98fadeaa799e2 Author: Gian Mario Tagliaretti Date: Thu Dec 31 09:59:46 2009 +0100 Wrap gio.SocketClient.connect_async() gio/gsocket.override | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 45 insertions(+), 0 deletions(-) commit dff024256295c15e49888ad9d5fef74a7746edd7 Author: Gian Mario Tagliaretti Date: Wed Dec 30 23:44:25 2009 +0100 Wrap gio.SocketAddressEnumerator.next_async() and add a test gio/gsocket.override | 42 ++++++++++++++++++++++++++++++++++++++++++ tests/test_gsocket.py | 16 ++++++++++++++++ 2 files changed, 58 insertions(+), 0 deletions(-) commit e2330bd0d6cbc49b0ecb27b30e3b0593935ce229 Author: Gian Mario Tagliaretti Date: Wed Dec 30 23:43:14 2009 +0100 Add a missing object gio.InetSocketAddress new in GIO 2.22 gio/gio-types.defs | 7 +++++++ gio/gio.defs | 31 +++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 0 deletions(-) commit 6040b33467ea381c6cb02f6a5efc0745fa8fa47b Author: Gian Mario Tagliaretti Date: Wed Dec 30 22:54:47 2009 +0100 Make cancellable optional for gio.SocketAddressEnumerator.next() gio/gio.defs | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit b19f59790b9de943d69b6c5e483928e0443c3d20 Author: Gian Mario Tagliaretti Date: Wed Dec 30 22:17:44 2009 +0100 Add a remainder of the Socket methods that needs manual wrapping still gio/gsocket.override | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) commit 771a7c3fdef7b2e98e509293a8376a81c1282286 Author: Gian Mario Tagliaretti Date: Wed Dec 30 17:20:35 2009 +0100 Wrap gio.Socket.condition_wait() and add a test gio/gsocket.override | 27 +++++++++++++++++++++++++++ tests/test_gsocket.py | 6 +++++- 2 files changed, 32 insertions(+), 1 deletions(-) commit 50960656815b0897a5ebe5f011537b8dcbdc857e Author: Gian Mario Tagliaretti Date: Wed Dec 30 16:21:49 2009 +0100 Wrap gio.Socket.condition_check() and add a test gio/Makefile.am | 1 + gio/gio.override | 1 + gio/gsocket.override | 41 +++++++++++++++++++++++++++++++++++++++++ tests/test_gsocket.py | 21 +++++++++++++++++++++ 4 files changed, 64 insertions(+), 0 deletions(-) commit de7a359e81792ae8573ac944455ea289985449ed Author: Gian Mario Tagliaretti Date: Wed Dec 30 14:07:52 2009 +0100 Wrap gio.Resolver.lookup_service_finish() and add a test gio/gresolver.override | 37 +++++++++++++++++++++++++++++++++++++ tests/test_gresolver.py | 13 +++++++++++++ 2 files changed, 50 insertions(+), 0 deletions(-) commit 308421789ce849040d645077c41c80b6e2e65e83 Author: Gian Mario Tagliaretti Date: Wed Dec 30 14:00:22 2009 +0100 Wrap gio.Resolver.lookup_service_async() gio/gresolver.override | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 48 insertions(+), 0 deletions(-) commit 9d56ce775f56fff1b1ef3c75843c0583e39f75c3 Author: Gian Mario Tagliaretti Date: Wed Dec 30 11:11:32 2009 +0100 Wrap gio.Resolver.lookup_service() and add a test gio/gresolver.override | 42 ++++++++++++++++++++++++++++++++++++++++++ tests/test_gresolver.py | 5 +++++ 2 files changed, 47 insertions(+), 0 deletions(-) commit 7fc71f490494dae73a5264869a97a9d30814930e Author: Gian Mario Tagliaretti Date: Tue Dec 29 22:12:50 2009 +0100 Wrap gio.Resolver.lookup_by_address_async() and add a test gio/gresolver.override | 46 ++++++++++++++++++++++++++++++++++++++++++++++ tests/test_gresolver.py | 14 ++++++++++++++ 2 files changed, 60 insertions(+), 0 deletions(-) commit c91656dbe56f07d3ebbad5113467c22427cf212a Author: Gian Mario Tagliaretti Date: Tue Dec 29 21:41:30 2009 +0100 Wrap gio.Resolver.lookup_by_name_finish() and add a test gio/gresolver.override | 82 +++++++++++++++++++++++++++++++++++++++++++++++ tests/test_gresolver.py | 16 ++++++++- 2 files changed, 96 insertions(+), 2 deletions(-) commit 45b477342fa1c2435917c6d97745ad57665c4734 Author: Gian Mario Tagliaretti Date: Tue Dec 29 17:15:44 2009 +0100 Wrap gio.Drive.eject_with_data() gio/gdrive.override | 54 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 54 insertions(+), 0 deletions(-) commit 635227480f9659a1f91ab1ec12536d3ed012a976 Author: Gian Mario Tagliaretti Date: Tue Dec 29 17:06:52 2009 +0100 Deprecate old gio.Drive methods gio/gdrive.override | 7 ++++++- gio/gio.defs | 1 + 2 files changed, 7 insertions(+), 1 deletions(-) commit 3c0cbc95af29b1e192ed4b5963e96e39c70b349c Author: Gian Mario Tagliaretti Date: Tue Dec 29 13:51:54 2009 +0100 Small fix in the header gio/gdrive.override | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 7589128515b79d836365247dc876538c6352da23 Author: Gian Mario Tagliaretti Date: Tue Dec 29 12:40:50 2009 +0100 Wrap gio.Resolver.lookup_by_name() and add a couple of tests gio/Makefile.am | 1 + gio/gio.override | 1 + gio/gresolver.override | 57 +++++++++++++++++++++++++++++++++++++++++++++++ tests/test_gresolver.py | 21 +++++++++++++++++ 4 files changed, 80 insertions(+), 0 deletions(-) commit 604d2bf220b1fefa415baaedbdb2882dbaf9e07e Author: Gian Mario Tagliaretti Date: Tue Dec 29 12:39:13 2009 +0100 Make cancellable an optional parameter in gio.Resolver.lookup_by_address() gio/gio.defs | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 00029145f4cd10759b37b38fb9f72435bf26b28b Author: Gian Mario Tagliaretti Date: Tue Dec 29 10:15:14 2009 +0100 Strip g_ prefix for many other functions gio/gio.defs | 94 +++++++++++++++++++++++++++++----------------------------- 1 files changed, 47 insertions(+), 47 deletions(-) commit 56d5dfc4fd862e32c19f944a0feb7a00a9154f06 Author: Gian Mario Tagliaretti Date: Tue Dec 29 10:12:53 2009 +0100 Strip g_prefix from InetAddress functions gio/gio.defs | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) commit 1d360301d51a587a36a59f5d62e354484bbd2b31 Author: Gian Mario Tagliaretti Date: Tue Dec 29 10:03:59 2009 +0100 Fix function name gio.resolver_get_default() Strip the g_ prefix from function name gio/gio.defs | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 0fe00109c4f6fc27cbaae9b0a24ecfac71355d2f Author: Gian Mario Tagliaretti Date: Tue Dec 29 09:54:05 2009 +0100 Wrap gio.FileIOStream.query_info_async() and add a test gio/Makefile.am | 1 + gio/gfileiostream.override | 68 ++++++++++++++++++++++++++++++++++++++++++++ gio/gio.override | 1 + tests/test_gio.py | 18 +++++++++++ 4 files changed, 88 insertions(+), 0 deletions(-) commit 86783c695f3641b9491962e8f95a4dcb91f4017c Author: Tomeu Vizoso Date: Tue Dec 29 13:08:29 2009 +0100 Register enums and flags in PyGI if needed https://bugzilla.gnome.org/show_bug.cgi?id=603534 gobject/pygenum.c | 20 ++++++++++++++------ gobject/pygflags.c | 19 +++++++++++++------ 2 files changed, 27 insertions(+), 12 deletions(-) commit b90c01cff5ff5cb2796182f2ffd7b5248eaeed6a Author: Gian Mario Tagliaretti Date: Mon Dec 28 22:41:54 2009 +0100 Wrap GIOStream.close_async() and add a test gio/Makefile.am | 1 + gio/gio.override | 1 + gio/giostream.override | 68 ++++++++++++++++++++++++++++++++++++++++++++++++ tests/test_gio.py | 21 +++++++++++++++ 4 files changed, 91 insertions(+), 0 deletions(-) commit 0bff01bcee73a0e0d18342331136119c4e8bf151 Author: Gian Mario Tagliaretti Date: Mon Dec 28 22:39:09 2009 +0100 Make cancellable an optional parameter in GFile.create_readwrite() gio/gio.defs | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 1cabd733cde269ce3164834933f4a226673ecb0b Author: Gian Mario Tagliaretti Date: Mon Dec 28 21:39:50 2009 +0100 Remove a duplicate entry in gio.defs gio/gio.defs | 9 --------- 1 files changed, 0 insertions(+), 9 deletions(-) commit 9ac372ad0bcfdec4bb1c96bc152246542a59a9b1 Author: Gian Mario Tagliaretti Date: Mon Dec 28 21:37:49 2009 +0100 Wrap gio.FileInfo.set_modification_time and add a test gio/gfileinfo.override | 33 ++++++++++++++++++++++++++++++++- tests/test_gio.py | 7 ++++++- 2 files changed, 38 insertions(+), 2 deletions(-) commit 7bc2673f92138b1804d8eba091942d14d8884f90 Author: Gian Mario Tagliaretti Date: Mon Dec 28 18:28:03 2009 +0100 Wrap gio.EmblemedIcon.get_emblems() and add a test gio/gicon.override | 14 ++++++++++++++ tests/test_gicon.py | 7 +++++++ 2 files changed, 21 insertions(+), 0 deletions(-) commit 3d5056ad766d6856d8d6459fe9b377de2f0fd172 Author: Gian Mario Tagliaretti Date: Sat Dec 26 22:27:48 2009 +0100 Update Enums and Flags with new API gio/gio-types.defs | 153 ++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 149 insertions(+), 4 deletions(-) commit 62a9d660a4a2d5fab1d57c6c96c984ff02d25ccd Author: Gian Mario Tagliaretti Date: Fri Dec 25 18:06:39 2009 +0100 Post release version bump to 2.21.1 configure.ac | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 2bd92cba5b028f0f78c35ecb34e648e95248f9d3 Author: Bastian Winkler Date: Fri Aug 14 15:10:26 2009 +0200 Fix handling of uchar in pyg_value_from_pyobject Set the value by g_value_set_uchar and allow to use integer types from python. gobject/pygtype.c | 15 +++++++++++---- 1 files changed, 11 insertions(+), 4 deletions(-) commit 828d0f042b59ea0319f33a23803c179af34ef2f1 Author: Tomeu Vizoso Date: Tue Dec 22 18:05:47 2009 +0100 Add Gtk.keysyms to overrides gi/overrides/Gtk.py | 2 + gi/overrides/Makefile.am | 1 + gi/overrides/keysyms.py | 1499 ++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 1502 insertions(+), 0 deletions(-) commit 24fa1224ff00b9da177e0bfaa1e14e1b899e4976 Author: Tomeu Vizoso Date: Wed Nov 25 10:33:56 2009 +0100 The array field 'length' starts to count from the C arg list, so need to decrement when it's a method https://bugzilla.gnome.org/show_bug.cgi?id=602640 gi/pygi-argument.c | 11 ++++++++- gi/pygi-argument.h | 3 +- gi/pygi-info.c | 14 ++++++++++- tests/libtestgi.c | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++ tests/libtestgi.h | 4 +++ tests/test_gi.py | 15 +++++++++++++ 6 files changed, 103 insertions(+), 4 deletions(-) commit 867536c6734e606d045760837ed22583da06566e Author: Gian Mario Tagliaretti Date: Fri Dec 18 10:50:09 2009 +0100 Update NEWS and README, release pygobject 2.21.0 NEWS | 18 ++++++++++++++++++ README | 6 +++--- 2 files changed, 21 insertions(+), 3 deletions(-) commit f50fbd24fa61863aaefa4ae1e12e0b314ecd43ae Author: Gian Mario Tagliaretti Date: Fri Dec 18 10:31:48 2009 +0100 Add pygi-external.h into Makefile SOURCES gobject/Makefile.am | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 108c03b78f04b4bcfe066a6cb4d941e172bd32fe Author: Gian Mario Tagliaretti Date: Fri Dec 18 01:20:34 2009 +0100 Bug 598435 - No wrapping for g_find_program_in_path () glib/glibmodule.c | 20 ++++++++++++++++++++ 1 files changed, 20 insertions(+), 0 deletions(-) commit d3d5cb3a4a2c2cb2bd0c2571304d59e19bc08452 Author: Gian Mario Tagliaretti Date: Thu Dec 17 21:54:36 2009 +0100 Wrap new API added in GIO-UNIX 2.22 gio/unix-types.defs | 22 ++++++++++ gio/unix.defs | 115 ++++++++++++++++++++++++++++++++++++++++++++++++++- gio/unix.override | 8 ++++ 3 files changed, 144 insertions(+), 1 deletions(-) commit c87c8a81947a68507e8f3bcaf8e0e969b3e5331b Author: Gian Mario Tagliaretti Date: Thu Dec 17 21:52:11 2009 +0100 Bump required glib version to 2.22.4 I've committed a patch to glib which will be released in the stable branch. Without the patch the unix module will fail, so I'm forced to bump. configure.ac | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit b630c8d4b1e55938dac89729768c4a877b305215 Author: Gian Mario Tagliaretti Date: Thu Dec 17 02:24:45 2009 +0100 Properly define Connectable as interface type and not object type gio/gio-types.defs | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) commit e955b931b07113c7432f7a85f882f69f12d263ad Author: Anderson Lizardo Date: Mon Nov 30 22:01:25 2009 +0100 Depend on GLib 2.20 rather than 2.22 Backport g_array_get_element_size. https://bugzilla.gnome.org/show_bug.cgi?id=603411 configure.ac | 2 +- gi/pygi-private.h | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletions(-) commit 542fdf6da4ad8f2d28d0d50152bd93cb4d8ee39a Author: Tomeu Vizoso Date: Sat Nov 28 18:48:19 2009 +0000 Use the limit constants from glib and interpret G_MAXUINT32 as PyLong_FromLongLong https://bugzilla.gnome.org/show_bug.cgi?id=602384 gi/pygi-argument.c | 14 +++++++------- tests/test_gi.py | 18 +++++++++--------- 2 files changed, 16 insertions(+), 16 deletions(-) commit 38e89942d29f2a1dba47ab4a8d5edc84322707cd Author: Simon van der Linden Date: Mon Nov 30 00:10:56 2009 +0100 Suppress warnings about format conversion https://bugzilla.gnome.org/show_bug.cgi?id=603355 gobject/generate-constants.c | 32 ++++++++++++++++---------------- 1 files changed, 16 insertions(+), 16 deletions(-) commit cfa7d005487e17e8f7c1ceb14282d3a5baadb736 Author: Simon van der Linden Date: Sat Nov 28 00:22:21 2009 +0100 Remove global checks for pointers and move them in type cases that need them gi/pygi-argument.c | 516 ++++++++++++++++++++++++++++++++++++++++++---------- gi/pygi-info.c | 333 +++++++++++++++++---------------- 2 files changed, 596 insertions(+), 253 deletions(-) commit d1ae73f3cf7cebdb74c9ec56b08928a2a53b9de6 Author: Johan Dahlin Date: Mon Nov 23 15:58:17 2009 -0200 Pythonify. Avoid ; and () around if statements https://bugzilla.gnome.org/show_bug.cgi?id=602830 gi/types.py | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) commit a8660621679c629fc81320a8ddf5bf2c7ee1f177 Author: Johan Dahlin Date: Tue Nov 24 10:36:18 2009 -0200 Remove trailing whitespace https://bugzilla.gnome.org/show_bug.cgi?id=602830 gi/module.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 66c34805223af9e63c7d61f21a3dbd7505a8f256 Author: Tomeu Vizoso Date: Mon Nov 30 10:03:34 2009 +0000 Set a default constructor for boxed structs that don't have one https://bugzilla.gnome.org/show_bug.cgi?id=602735 gi/Makefile.am | 2 + gi/gimodule.c | 1 + gi/module.py | 2 +- gi/pygi-argument.c | 14 ++++- gi/pygi-boxed.c | 184 ++++++++++++++++++++++++++++++++++++++++++++++++++++ gi/pygi-boxed.h | 40 +++++++++++ gi/pygi-info.c | 2 +- gi/pygi-private.h | 1 + gi/pygi.h | 6 ++ gi/types.py | 18 ----- tests/libtestgi.c | 72 ++++++++++---------- tests/libtestgi.h | 18 +++--- tests/test_gi.py | 47 ++++++++------ 13 files changed, 321 insertions(+), 86 deletions(-) commit e7e2fccae36c28c7e9f288fcd4c90a001140e307 Author: Tomeu Vizoso Date: Mon Nov 30 10:53:57 2009 +0000 Revert "Use the limit constants from glib and interpret G_MAXUINT32 as PyLong_FromLongLong" This reverts commit 05a2ed55f3e5d2620de8b3b6b0d99e928ef3b041. gi/pygi-argument.c | 14 +++++++------- tests/test_gi.py | 18 +++++++++--------- 2 files changed, 16 insertions(+), 16 deletions(-) commit 05a2ed55f3e5d2620de8b3b6b0d99e928ef3b041 Author: Tomeu Vizoso Date: Sat Nov 28 18:48:19 2009 +0000 Use the limit constants from glib and interpret G_MAXUINT32 as PyLong_FromLongLong https://bugzilla.gnome.org/show_bug.cgi?id=602384 gi/pygi-argument.c | 14 +++++++------- tests/test_gi.py | 18 +++++++++--------- 2 files changed, 16 insertions(+), 16 deletions(-) commit e24d155dd7b4a5b9c25c054137d1370c369d3192 Author: Tomeu Vizoso Date: Sat Nov 28 18:45:54 2009 +0000 Add the missing limit constants from glibconfig.h https://bugzilla.gnome.org/show_bug.cgi?id=603244 gobject/generate-constants.c | 17 ++++++++++++++++- 1 files changed, 16 insertions(+), 1 deletions(-) commit 3a295cb7ffaaaf29c71b8833cf0ee5ec7ceaa909 Author: Gian Mario Tagliaretti Date: Sat Nov 28 18:48:49 2009 +0100 Fix bad name when rebuilding the unix source module gio/Makefile.am | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit a8cbb6fb72dbe6630d1265b18095c9a96f496b86 Author: Gian Mario Tagliaretti Date: Sat Nov 28 18:47:26 2009 +0100 Wrap new API added in GIO 2.22 gio/gio-types.defs | 138 +++ gio/gio.defs | 2444 +++++++++++++++++++++++++++++++++++++++++++++++----- 2 files changed, 2360 insertions(+), 222 deletions(-) commit 96f6c638709636d7e2ddf560b877879691da3314 Author: Tomeu Vizoso Date: Sat Nov 28 11:03:51 2009 +0000 A few tests about interfaces https://bugzilla.gnome.org/show_bug.cgi?id=601181 tests/libtestgi.c | 23 +++++++++++++++++++++++ tests/libtestgi.h | 16 ++++++++++++++++ tests/test_gi.py | 21 +++++++++++++++++++++ 3 files changed, 60 insertions(+), 0 deletions(-) commit 076ba3156c13375a75983cef7a409c8c8afea119 Author: Simon van der Linden Date: Thu Nov 26 23:50:54 2009 +0100 Fix members initialization in metaclasses In metaclasses, the test for the name of the class was wrong, since it prevented one to create a subclass with the same name (especially annoying for overrides). Now, if a GType is available from the info, the fact that it doesn't have any wrapper yet means that the metaclass is creating the base class, which will be registerd just after its creation. This is true for objects, and for structures registered as boxed or pointer too. This patch includes a test for basic subclassing in Python. It notably tests that methods don't get overridden by the metaclass. gi/types.py | 5 +++-- tests/test_gi.py | 19 +++++++++++++++++++ 2 files changed, 22 insertions(+), 2 deletions(-) commit ac80e64c9f7d257865aa820753e52d56cf2871c8 Author: Tomeu Vizoso Date: Fri Nov 27 12:06:59 2009 +0000 Structs in arrays are not marshalled correctly https://bugzilla.gnome.org/show_bug.cgi?id=602709 gi/pygi-argument.c | 29 ++++++++++++++++++++++++----- tests/libtestgi.c | 23 ++++++++++++++++++++++- tests/libtestgi.h | 7 +++++-- tests/test_gi.py | 8 ++++++++ 4 files changed, 59 insertions(+), 8 deletions(-) commit 4a373b8ad6ec137e911b92a3e745e0fd76541292 Author: Simon van der Linden Date: Wed Nov 25 16:53:55 2009 +0100 Use the right variable when looking up in sys.modules gi/importer.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit fc3dca018e85aee34ade79d104ebd8cdd1dd5968 Author: Tomeu Vizoso Date: Tue Nov 24 15:52:47 2009 +0100 Accept 0 as a valid value for flag and enum arguments https://bugzilla.gnome.org/show_bug.cgi?id=602638 gi/pygi-argument.c | 19 ++++++++++++++++++- tests/libtestgi.c | 6 ++++++ tests/libtestgi.h | 1 + tests/test_gi.py | 1 + 4 files changed, 26 insertions(+), 1 deletions(-) commit 33081c29a1c2fdec2b8bfe17ae0a72b8db7a8d84 Author: Tomeu Vizoso Date: Tue Nov 24 13:10:11 2009 +0100 Add stuff to .gitignore .gitignore | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) commit 5c010fe673d9bd01c27c8d7d312064665275888c Author: Simon van der Linden Date: Mon Nov 23 22:39:12 2009 +0100 Remove the girepository module Makefile.am | 2 +- configure.ac | 17 - girepository/Makefile.am | 54 -- girepository/__init__.py | 24 - girepository/bank-argument.c | 379 ------------ girepository/bank-info.c | 1194 ------------------------------------ girepository/bank-repository.c | 236 ------- girepository/bank.c | 155 ----- girepository/bank.h | 80 --- girepository/btypes.py | 300 --------- girepository/importer.py | 51 -- girepository/module.py | 224 ------- girepository/overrides/Gdk.py | 14 - girepository/overrides/Gtk.py | 8 - girepository/repository.py | 51 -- tests/test_girepository.py | 386 ------------ 16 files changed, 1 insertions(+), 3174 deletions(-) commit a644edf0515c26ed027522891ccf02aceac764e8 Author: Johan Dahlin Date: Mon Nov 23 15:32:16 2009 -0200 Create overridden modules in two passes This patch splits overridden module creation into two passes. The first pass creates the auto-generated module normally before the overridden module is attempted to be imported. The second pass imports the overridden module and replaces the auto-generated module with the overridden. This is necessary for the overridden modules to be able to access the auto-generated ones. gi/importer.py | 34 +++++++++++++++++++++------------- 1 files changed, 21 insertions(+), 13 deletions(-) commit fad89e12a744b57e6348968f351d25d167de8248 Author: Tomeu Vizoso Date: Sun Nov 22 17:56:20 2009 +0100 Add support for Any arguments https://bugzilla.gnome.org/show_bug.cgi?id=601253 gi/pygi-argument.c | 20 ++++++++++++-------- tests/libtestgi.c | 5 +++++ tests/libtestgi.h | 5 +++++ tests/test_gi.py | 5 +++++ 4 files changed, 27 insertions(+), 8 deletions(-) commit 1dc62a998dd8d2a0a397f8309011a8d79cb56034 Author: Tomeu Vizoso Date: Sun Nov 22 17:25:04 2009 +0100 Register interfaces https://bugzilla.gnome.org/show_bug.cgi?id=601181 gi/gimodule.c | 33 +++++++++++++++++++++++++++++++++ gi/types.py | 5 ++++- 2 files changed, 37 insertions(+), 1 deletions(-) commit d67d5afb5115c1d8294415b2e1a82af2c737ba17 Author: Paul Pogonyshev Date: Sun Nov 22 18:23:02 2009 +0200 Ignore one more file. .gitignore | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 408b2186aea58a41ec26b9d0ca29ecd42df5ef7e Author: Paul Pogonyshev Date: Sun Nov 22 18:22:23 2009 +0200 Fix wrong minimum checking in float properties Bug #587637. Test the fix. gobject/propertyhelper.py | 5 +++-- tests/test_properties.py | 6 ++++++ 2 files changed, 9 insertions(+), 2 deletions(-) commit 6ccf58afcf58e118903ced0135f0fe69b00e09ad Author: Tomeu Vizoso Date: Mon Oct 26 18:06:06 2009 +0000 Treat GI_INFO_TYPE_INTERFACE same as GI_INFO_TYPE_OBJECT gi/pygi-argument.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) commit e6f730d6e1431e36bd5f6b503a1038617f8d1e7d Author: Simon van der Linden Date: Sat Nov 14 21:42:43 2009 +0100 Import pygtk properly to avoid failure on some setups tests/test_gi.py | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) commit e604a89e9dc1a79687ef5fb94af7a2182be07dfb Author: Alex Dedul Date: Sat Nov 14 21:39:15 2009 +0100 Search for python-config-${VERSION} when python${VERSION}-config is not found On Gentoo, notably, the config tool is named python-config-${VERSION}, while on Fedora and Ubuntu, it is named python${VERSION}-config. Signed-off-by: Simon van der Linden configure.ac | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) commit 4a887cfabb326cb99dc65073d592c03f59e2f141 Author: Simon van der Linden Date: Sat Nov 14 21:36:19 2009 +0100 Fix silent rules setup configure.ac | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 602afea88c338a38327cd84e08703c5daa384ec6 Author: Paul Pogonyshev Date: Tue Nov 10 22:32:33 2009 +0200 Move threads_init() function from 'gobject' to 'glib' Retain in original place for backward compatibility, but remove it from the docs. docs/reference/pygobject-functions.xml | 36 ++++++------------------------- glib/glibmodule.c | 16 ++++++++++++++ 2 files changed, 23 insertions(+), 29 deletions(-) commit 734755912fff11332dc0e96317b7d6b7c4014e6a Author: Simon van der Linden Date: Mon Nov 9 22:44:12 2009 +0100 Remove PyGObject patches since they've been merged to master ...pytype-aware-of-the-interface-enum-flags-.patch | 78 -------- patches/0002-Fix-girpository-build-setup.patch | 186 ------------------ ...capabilities-to-import-wrappers-from-pygi.patch | 200 -------------------- ...ances-by-calling-tp_alloc-rather-than-PyO.patch | 29 --- 4 files changed, 0 insertions(+), 493 deletions(-) commit 6a69288941e65312fe82649ec72d2f21b2dc618f Author: Simon van der Linden Date: Sat Nov 7 23:42:07 2009 +0100 Create instances by calling tp_alloc rather than PyObject_NEW PyObject_NEW calls a generic allocator and should only be called by tp_new, knowing that the type's free function agrees. In pyg_boxed_new, we may allocate PyGBoxed subtypes, so the subtype's allocation function must be called instead. gobject/pygboxed.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 000f7c36e667c6e078e3370769ea868e56a1b4ee Author: Simon van der Linden Date: Sat Nov 7 16:43:35 2009 +0100 Add capabilities to import wrappers from pygi At instance creation for boxed and pointers, at lookup for objects, when the gtype has no wrapper yet, a wrapper may be imported from pygi. The feature is turned on at configure time by --enable-pygi. Because we couldn't create a circular build dependency, PyGI's import function and API definition had to be copied in this tree. configure.ac | 8 +++++ gobject/pygboxed.c | 10 +++++++ gobject/pygi-external.h | 66 +++++++++++++++++++++++++++++++++++++++++++++++ gobject/pygobject.c | 10 +++++++ gobject/pygpointer.c | 11 ++++++++ 5 files changed, 105 insertions(+), 0 deletions(-) commit fdfbc90dbc9e305646b62d73de506b5e0e99cc91 Author: Simon van der Linden Date: Sun Nov 8 20:03:58 2009 +0100 Update PyGObject patches A file, pygi-external.h, was missing in patch #3. ...capabilities-to-import-wrappers-from-pygi.patch | 74 ++++++++++++++++++-- ...ances-by-calling-tp_alloc-rather-than-PyO.patch | 2 +- 2 files changed, 69 insertions(+), 7 deletions(-) commit 8f53ca8a72f9958711765281dd5c5bdfb7042d7d Author: Tomeu Vizoso Date: Sun Nov 8 16:52:18 2009 +0100 Add myself to pygi.doap pygi.doap | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) commit 6f50d5102aec9288e1851f12e9d232b9c141d524 Author: Simon van der Linden Date: Sun Nov 8 15:40:51 2009 +0100 Add a doap file pygi.doap | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) commit ce673b9027868e6add4eeb438bc707eb40bfd046 Author: Simon van der Linden Date: Sun Nov 8 13:06:54 2009 +0100 Add PyGObject patches ...pytype-aware-of-the-interface-enum-flags-.patch | 78 ++++++++ patches/0002-Fix-girpository-build-setup.patch | 186 ++++++++++++++++++++ ...capabilities-to-import-wrappers-from-pygi.patch | 138 +++++++++++++++ ...ances-by-calling-tp_alloc-rather-than-PyO.patch | 29 +++ 4 files changed, 431 insertions(+), 0 deletions(-) commit b24fd9633cabe1d95cde173a04e9a49833b06a26 Author: Simon van der Linden Date: Sun Nov 8 12:35:08 2009 +0100 Initial import .gitignore | 33 + Makefile.am | 10 + autogen.sh | 159 +++ configure.ac | 53 + gi/Makefile.am | 50 + gi/__init__.py | 24 + gi/gimodule.c | 144 ++ gi/importer.py | 89 ++ gi/module.py | 167 +++ gi/overrides/Gdk.py | 21 + gi/overrides/Gtk.py | 13 + gi/overrides/Makefile.am | 10 + gi/pygi-argument.c | 1976 ++++++++++++++++++++++++++ gi/pygi-argument.h | 65 + gi/pygi-info.c | 2093 ++++++++++++++++++++++++++++ gi/pygi-info.h | 64 + gi/pygi-private.h | 55 + gi/pygi-repository.c | 238 ++++ gi/pygi-repository.h | 39 + gi/pygi-struct.c | 175 +++ gi/pygi-struct.h | 40 + gi/pygi-type.c | 96 ++ gi/pygi-type.h | 43 + gi/pygi.h | 99 ++ gi/pygobject-external.h | 83 ++ gi/repository/Makefile.am | 8 + gi/repository/__init__.py | 30 + gi/types.py | 163 +++ tests/Makefile.am | 48 + tests/libtestgi.c | 3397 +++++++++++++++++++++++++++++++++++++++++++++ tests/libtestgi.h | 643 +++++++++ tests/runtests.py | 22 + tests/test_gi.py | 1416 +++++++++++++++++++ 33 files changed, 11566 insertions(+), 0 deletions(-) commit bfd3100a580b8bea9db25b8bb7443fb8c3dbe1cc Author: Simon van der Linden Date: Sat Nov 7 13:23:53 2009 +0100 Fix girpository build setup configure.ac | 21 ++++++---- girepository/Makefile.am | 13 +++--- m4/introspection.m4 | 92 ++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 111 insertions(+), 15 deletions(-) commit 421c03b1c5b69f90c778663df901b45ca3ee8ba5 Author: Simon van der Linden Date: Fri Nov 6 19:17:36 2009 +0100 Make GType.pytype aware of the interface, enum, flags, pointer and boxed wrappers gobject/pygtype.c | 39 +++++++++++++++++++++++++++++++++------ 1 files changed, 33 insertions(+), 6 deletions(-) commit a9c168c58cc6a449b51653417bf3f58bdd41457c Author: Philippe Normad Date: Wed Oct 21 18:01:16 2009 +0200 pygmainloop: fix use of PySignal_WakeUpFD API for nested loops Fixes bug #481569 glib/pygmainloop.c | 95 +++++++++++++++++++++++++++------------------------ 1 files changed, 50 insertions(+), 45 deletions(-) commit c6a5750379354c12e2599b3c73b4f9a23fd39114 Author: Gian Mario Tagliaretti Date: Fri Sep 25 20:12:21 2009 +0200 Post release version bump to 2.21.0 configure.ac | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 33920eb013628a5e22b7b32403fb965ae3210f47 Author: Gian Mario Tagliaretti Date: Wed Sep 23 21:52:04 2009 +0200 Update NEWS and release 2.20.0 NEWS | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) commit 66b12f7d2f54143ea80b4f8aec863b26800363d6 Author: Gian Mario Tagliaretti Date: Wed Sep 23 21:51:43 2009 +0200 Bump version to 2.20.0 configure.ac | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 7bf87338a026ac82f908aa5fddf2bfea2daf6617 Author: Brian Cameron Date: Wed Sep 23 12:11:50 2009 -0500 Updated uninstalled.pc file so that it contains the right paths for defsdir files and codegen files. See bug #596023. pygobject-2.0-uninstalled.pc.in | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit d042402b7c649b2bed7f20038eb82518ec7cc9b3 Author: Paul Pogonyshev Date: Tue Sep 22 22:02:27 2009 +0300 Plug reference leak of GSource in pyg_main_loop_init() Bug #579406, second change. glib/pygmainloop.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 640be8109d066e85ed77c810830a5f73c750415b Author: Frédéric Péters Date: Sun Aug 30 16:46:02 2009 +0200 Specify programming language in .devhelp file This add a new language attribute (hardcoded to python) in the .devhelp file that is produced when using ref-html-style.xsl. docs/xsl/devhelp.xsl | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit c888b5ca722fcad6a03de585606c677c2969ebd6 Author: Paolo Borelli Date: Thu Aug 13 21:32:07 2009 +0200 Allow to use automake 1.11 autogen.sh | 13 +++++++------ 1 files changed, 7 insertions(+), 6 deletions(-) commit 30deaba4bd1e199aab75cb346ee9237237807fbd Author: Gian Mario Tagliaretti Date: Tue Aug 11 22:19:50 2009 +0200 Update README README | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) commit af165d350d0d1bb493be5140bf84376d3da1e4d8 Author: Gian Mario Tagliaretti Date: Tue Aug 11 22:16:52 2009 +0200 Update AUTHORS AUTHORS | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) commit 5f9f87f276b97964b525a501d8584ea8b4d8bfd2 Author: Gian Mario Tagliaretti Date: Tue Aug 11 22:11:43 2009 +0200 Add myself and Paul as maintainers MAINTAINERS | 8 ++++++++ pygobject.doap | 14 ++++++++++++++ 2 files changed, 22 insertions(+), 0 deletions(-) commit 3bfae47fbcb5523d91fb2d1ed7ea347eeddd1775 Author: Gian Mario Tagliaretti Date: Tue Aug 11 20:52:44 2009 +0200 Update NEWS release 2.19.0 NEWS | 29 +++++++++++++++++++++++++++++ 1 files changed, 29 insertions(+), 0 deletions(-) commit e82a1841f31ad54dd50569d0d45290713409e0bf Author: John Finlay Date: Tue Aug 11 00:04:31 2009 -0700 Add macros to help with Python list to/from GList/GSList conversions. gobject/pygobject.h | 242 ++++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 241 insertions(+), 1 deletions(-) commit f1fad96da2c531fbd3218923baa4fe806a2942d4 Author: Gian Mario Tagliaretti Date: Sat Aug 8 21:37:54 2009 +0200 Bug 590063 – GFileInfo.list_attributes should accept None/NULL gio/gfileinfo.override | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit b7907cf6ff6ccf8d38b5206f09f5c864c205e5de Author: Johan Dahlin Date: Fri Jul 24 14:30:37 2009 -0300 Remove myself as a maintainer MAINTAINERS | 4 ---- pygobject.doap | 7 ------- 2 files changed, 0 insertions(+), 11 deletions(-) commit be6eb21320b4688bcfcd8cbea33f7be29a76f2a2 Author: John Finlay Date: Wed Jul 8 15:47:44 2009 -0700 * codegen/defsgen.py (clean_patterns): Strip out Windows DLL API macros. codegen/defsgen.py | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit 2214cad3529979e29342a7e1fdc2915b90ce9c10 Author: Gian Mario Tagliaretti Date: Tue Jun 23 21:18:23 2009 +0200 Fix the gio.unix namespace in docs docs/Makefile.am | 2 ++ docs/reference/pygio-classes.xml | 2 -- docs/reference/pygio-unixinputstream.xml | 26 +++++++++++++------------- docs/reference/pygio-unixoutputstream.xml | 26 +++++++++++++------------- docs/reference/pygiounix-classes.xml | 13 +++++++++++++ docs/reference/pygobject-ref.xml | 1 + 6 files changed, 42 insertions(+), 28 deletions(-) commit c0acaedfe7f4e488a490e07e3184f0709e1fadc2 Author: Gian Mario Tagliaretti Date: Mon Jun 22 23:13:36 2009 +0200 Add docs for gio functions (mostly for content types) docs/Makefile.am | 2 + docs/reference/pygio-classes.xml | 1 + docs/reference/pygio-functions.xml | 395 ++++++++++++++++++++++++++++++++++++ 3 files changed, 398 insertions(+), 0 deletions(-) commit ebddee47fb7f3e06f9e0a7a14b9532d5cf8a3881 Author: Gian Mario Tagliaretti Date: Sun Jun 21 18:35:56 2009 +0200 Add docs for gio.Unix[In|Out]putStream classes docs/Makefile.am | 4 + docs/reference/pygio-classes.xml | 2 + docs/reference/pygio-unixinputstream.xml | 202 +++++++++++++++++++++++++++++ docs/reference/pygio-unixoutputstream.xml | 202 +++++++++++++++++++++++++++++ 4 files changed, 410 insertions(+), 0 deletions(-) commit 5b71e58117c85634d95d08449eb54079b246e5be Author: Paul Pogonyshev Date: Sun Jun 21 16:50:03 2009 +0300 Document that many functions got moved gobject -> glib docs/reference/pygobject-functions.xml | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) commit b270dc43f2cef5260b0bbc71356fd8e6a2b7f754 Author: Gian Mario Tagliaretti Date: Sat Jun 20 19:23:25 2009 +0200 Add docs for class gio.DataOutputStream docs/Makefile.am | 2 + docs/reference/pygio-classes.xml | 1 + docs/reference/pygio-dataoutputstream.xml | 504 +++++++++++++++++++++++++++++ 3 files changed, 507 insertions(+), 0 deletions(-) commit 549313fc4886fa3deb31761de6f5400708165d86 Author: Murray Cumming Date: Thu Jun 18 18:48:37 2009 +0200 Allow h2def.py to work when there are tabs or multiple spaces after the struct keyword. codegen/h2def.py | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) commit 5c36ef20dca8cd1793f2d3e88949675299097f40 Author: Gian Mario Tagliaretti Date: Mon Jun 15 23:02:34 2009 +0200 Add dpcs for class gio.DataInputStream docs/Makefile.am | 2 + docs/reference/pygio-classes.xml | 1 + docs/reference/pygio-constants.xml | 66 +++ docs/reference/pygio-datainputstream.xml | 799 ++++++++++++++++++++++++++++++ 4 files changed, 868 insertions(+), 0 deletions(-) commit a8b36c343c6850af929c1d5a930f923831b4e637 Author: Theppitak Karoonboonyanan Date: Mon Jun 15 23:25:01 2009 +0300 Fix build when builddir is not the same as srcdir Bug #585817. girepository/Makefile.am | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 9d9ae97b8a49836ec1f3b8d6529bafe1cc06d4d7 Author: Paul Pogonyshev Date: Mon Jun 15 23:19:47 2009 +0300 Make gio.Emblem constructor new-style Add optional 'origin' parameter. Expand gio.Emblem documentation and mark gio.emblem_new_with_origin as sort-of-deprecated. docs/reference/pygio-emblem.xml | 51 +++++++++++++++++++++++++++++++++++++- gio/gio.defs | 5 ++- 2 files changed, 52 insertions(+), 4 deletions(-) commit 268e1681fd5b46e6412d3a8db84f3f1cb02fdbde Author: Gian Mario Tagliaretti Date: Sat Jun 13 14:44:47 2009 +0200 Add docs for gio.BufferedOutputStream class docs/Makefile.am | 96 +++++----- docs/reference/pygio-bufferedoutputstream.xml | 275 +++++++++++++++++++++++++ docs/reference/pygio-classes.xml | 1 + 3 files changed, 325 insertions(+), 47 deletions(-) commit a6e25aaa7c8f27d62f2917b06728d7ccfcd46416 Author: Gian Mario Tagliaretti Date: Sat Jun 13 14:38:34 2009 +0200 Fix gio.BufferedInputStream docs Added the constructor reference and fixed a typo in properties header docs/reference/pygio-bufferedinputstream.xml | 34 ++++++++++++++++++++++++- 1 files changed, 32 insertions(+), 2 deletions(-) commit a9b13b60a5aad726d7d7dd7fdc5153b1561fb591 Author: Gian Mario Tagliaretti Date: Sat Jun 13 01:25:06 2009 +0200 Add docs for gio.BufferedInputStream docs/Makefile.am | 2 + docs/reference/pygio-bufferedinputstream.xml | 431 ++++++++++++++++++++++++++ docs/reference/pygio-classes.xml | 1 + 3 files changed, 434 insertions(+), 0 deletions(-) commit 7766daa59b0e2b85413cee368bf2ebd2afe198e1 Author: Paul Pogonyshev Date: Sun May 31 18:25:47 2009 +0300 Cleanup GIO overrides to use Python function/method names Also move several gio.Mount overrides over from 'gio.override' to existing 'gmount.override'. Part of bug #584289. gio/gfile.override | 20 ++-- gio/gfileenumerator.override | 6 +- gio/ginputstream.override | 2 +- gio/gio.override | 204 ------------------------------------------ gio/gmount.override | 204 ++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 218 insertions(+), 218 deletions(-) commit 07e9c18dc092f6546230168b6b69c1b3454e120a Author: Paul Pogonyshev Date: Sun May 31 18:56:55 2009 +0300 Make codegen report errors using Python function/method names Part of bug #584289. codegen/codegen.py | 9 +++++---- codegen/definitions.py | 10 +++++++++- 2 files changed, 14 insertions(+), 5 deletions(-) commit 235fde85d015382f2ba38b21968e82b3ac0b6612 Author: Gian Mario Tagliaretti Date: Fri Jun 12 00:12:17 2009 +0200 Fix object type in gio.BufferedInputStream_fill_async gio/gbufferedinputstream.override | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 407b0e909056f15960e6a4e549896d786ce0a0b2 Author: Gian Mario Tagliaretti Date: Tue Jun 9 00:08:21 2009 +0200 Wrap gio.BufferedInputStream.fill_async Wrap the method gio.BufferedInputStream.fill_async and add a test gio/Makefile.am | 1 + gio/gbufferedinputstream.override | 70 +++++++++++++++++++++++++++++++++++++ gio/gio.override | 1 + tests/test_gio.py | 25 +++++++++++++ 4 files changed, 97 insertions(+), 0 deletions(-) commit b7c96b41b287685fe57504e0add3a6f16e649975 Author: Gian Mario Tagliaretti Date: Mon Jun 8 15:42:40 2009 +0200 Add gio.BufferedOutputStream which was forgotten in the types definition gio/gio-types.defs | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) commit 3666f75af4ef2c8e038116aee5afada59d59f689 Author: Gian Mario Tagliaretti Date: Mon Jun 8 14:20:02 2009 +0200 Add docs for gio.MemoryOutputStream docs/Makefile.am | 2 + docs/reference/pygio-classes.xml | 1 + docs/reference/pygio-memoryoutputstream.xml | 175 +++++++++++++++++++++++++++ 3 files changed, 178 insertions(+), 0 deletions(-) commit 6eb5e3988cbddb4afb3d5747364d6eb80370bb78 Author: Gian Mario Tagliaretti Date: Mon Jun 8 13:30:15 2009 +0200 Split overrides for gio.MemoryOutputStream gio/Makefile.am | 1 + gio/gio.override | 1 + gio/gmemoryoutputstream.override | 45 ++++++++++++++++++++++++++++++++++++++ gio/goutputstream.override | 24 -------------------- 4 files changed, 47 insertions(+), 24 deletions(-) commit dfbdf23633a772e78b47b0e7b0c3e3b87855d9ff Author: Gian Mario Tagliaretti Date: Mon Jun 8 11:45:11 2009 +0200 Wrap gio.memory_input_stream_new_from_data Add the wrapper for gio.memory_input_stream_new_from_data including docs and a test. docs/Makefile.am | 4 +- docs/reference/pygio-classes.xml | 1 + docs/reference/pygio-memoryinputstream.xml | 151 ++++++++++++++++++++++++++++ gio/Makefile.am | 1 + gio/ginputstream.override | 34 ------ gio/gio.override | 1 + gio/gmemoryinputstream.override | 91 +++++++++++++++++ tests/test_gio.py | 4 + 8 files changed, 252 insertions(+), 35 deletions(-) commit fcc3cb0e167789746a1a9db0cba54ea7a97c7259 Author: Simon van der Linden Date: Mon Jun 8 19:15:24 2009 +0200 Fixes whitespaces style issues with girepository. girepository/Makefile.am | 2 +- girepository/bank-repository.c | 67 +++++++++++++++++++-------------------- girepository/bank.h | 2 +- girepository/btypes.py | 6 ++-- girepository/module.py | 2 +- 5 files changed, 39 insertions(+), 40 deletions(-) commit fb4b2c8cdad2853e6bfe9526529e3a3ab052c5e0 Author: Simon van der Linden Date: Fri Jun 5 19:03:59 2009 +0200 Removes the header but the modeline in test_girepository.py. tests/test_girepository.py | 26 +------------------------- 1 files changed, 1 insertions(+), 25 deletions(-) commit abe4828f52c7eb3a08f5b592e7ced1e97a58ef5c Author: Simon van der Linden Date: Wed Jun 3 10:47:58 2009 +0200 Adds overrides modules from PyBank. girepository/Makefile.am | 3 +++ girepository/importer.py | 3 +-- girepository/overrides/Gdk.py | 14 ++++++++++++++ girepository/overrides/Gtk.py | 8 ++++++++ 4 files changed, 26 insertions(+), 2 deletions(-) commit c12964e6a3354d8063355225c94e6d21d621e08b Author: Simon van der Linden Date: Tue Jun 2 23:40:41 2009 +0200 Disables the tests that fail in tests/test_girepository.py. tests/test_girepository.py | 242 +++++++++++++++++++++++++++++++++----------- 1 files changed, 182 insertions(+), 60 deletions(-) commit a4469a3f7d32a25156bae5e7aef9ec4ae5f6e140 Author: Simon van der Linden Date: Tue Jun 2 23:03:26 2009 +0200 Imports test_girepository.py from former PyBank's everything_unittest.py. tests/test_girepository.py | 288 ++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 288 insertions(+), 0 deletions(-) commit e4f2a5ef8734cf40cf8345d442612db1f6c62d5a Author: Simon van der Linden Date: Thu May 28 17:45:11 2009 +0200 Introduces the girepository module from the former PyBank. INSTALL | 69 ++- Makefile.am | 2 +- configure.ac | 12 + girepository/Makefile.am | 52 ++ girepository/__init__.py | 24 + girepository/bank-argument.c | 379 +++++++++++++ girepository/bank-info.c | 1194 ++++++++++++++++++++++++++++++++++++++++ girepository/bank-repository.c | 237 ++++++++ girepository/bank.c | 155 ++++++ girepository/bank.h | 80 +++ girepository/btypes.py | 300 ++++++++++ girepository/importer.py | 52 ++ girepository/module.py | 224 ++++++++ girepository/repository.py | 51 ++ 14 files changed, 2799 insertions(+), 32 deletions(-) commit f5ab5046fe9b67ec5e8fc64679e1a3d01787af7e Author: Gian Mario Tagliaretti Date: Tue Jun 2 18:28:22 2009 +0200 Fix the docs for gio.FilterOutputStream docs/reference/pygio-filteroutputstream.xml | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit fded60d8376fc45d19bf6cd8be6b927cc3f2e8c6 Author: Gian Mario Tagliaretti Date: Tue Jun 2 18:27:00 2009 +0200 Add gio.FilterOutputStream docs docs/Makefile.am | 2 + docs/reference/pygio-classes.xml | 1 + docs/reference/pygio-filteroutputstream.xml | 152 +++++++++++++++++++++++++++ 3 files changed, 155 insertions(+), 0 deletions(-) commit e2c31f916967229b6547e68013628ce0082cf875 Author: Gian Mario Tagliaretti Date: Tue Jun 2 13:29:59 2009 +0200 Add gio.FilterInputStream docs docs/Makefile.am | 2 + docs/reference/pygio-classes.xml | 1 + docs/reference/pygio-filterinputstream.xml | 152 ++++++++++++++++++++++++++++ 3 files changed, 155 insertions(+), 0 deletions(-) commit 49a467eee445bc75554db0374006722ac075194b Author: Gian Mario Tagliaretti Date: Tue Jun 2 11:33:20 2009 +0200 Add API appeared in 2.20 but not marked as such in gio docs gio/gio.defs | 30 ++++++++++++++++++++++++++++++ 1 files changed, 30 insertions(+), 0 deletions(-) commit 180c157f2a20b7d2dd9af05bfb5f515fd23870a0 Author: Gian Mario Tagliaretti Date: Tue Jun 2 10:41:26 2009 +0200 Wrap gio.FileOutputStream.query_info_async Add the wrapper for gio.FileOutputStream.query_info_async including docs and a test. docs/Makefile.am | 2 + docs/reference/pygio-classes.xml | 1 + docs/reference/pygio-fileoutputstream.xml | 257 +++++++++++++++++++++++++++++ gio/Makefile.am | 3 +- gio/gfileoutputstream.override | 68 ++++++++ gio/gio.override | 1 + tests/test_gio.py | 27 +++ 7 files changed, 358 insertions(+), 1 deletions(-) commit 4673577d1f6c3d54423808dd575987092fb05ad2 Author: Gian Mario Tagliaretti Date: Tue Jun 2 10:17:41 2009 +0200 Fix gio.FileInputStream docs Add implemented interface section and remove a method description docs/reference/pygio-fileinputstream.xml | 25 +++++++++---------------- 1 files changed, 9 insertions(+), 16 deletions(-) commit 1e1cad02879d514745b5233658654cbe944530a5 Author: Gian Mario Tagliaretti Date: Mon Jun 1 22:54:26 2009 +0200 Fix the method name gio/gfileinputstream.override | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) commit f605811afe8c91f121e89b6f9ec28c70b62f4110 Author: Gian Mario Tagliaretti Date: Mon Jun 1 22:40:56 2009 +0200 Wrap gio.FileInputStream.query_async Add the wrapper for gio.FileInputStream.query_async including docs and a test. docs/Makefile.am | 2 + docs/reference/pygio-classes.xml | 1 + docs/reference/pygio-fileinputstream.xml | 221 ++++++++++++++++++++++++++++++ gio/Makefile.am | 1 + gio/gfileinputstream.override | 68 +++++++++ gio/gio.override | 1 + tests/test_gio.py | 27 ++++ 7 files changed, 321 insertions(+), 0 deletions(-) commit 08623e54a426377c1504b5c364aabae5a17f8ad8 Author: Paul Pogonyshev Date: Sun May 31 17:43:16 2009 +0300 Install executable codegen parts with executing permissions Also add shebang where it was missing. Bug #583979. codegen/Makefile.am | 23 ++++++++++++----------- codegen/code-coverage.py | 2 ++ codegen/codegen.py | 2 ++ codegen/defsconvert.py | 2 ++ 4 files changed, 18 insertions(+), 11 deletions(-) commit 833d4da202bcfcb01a414f8aec4b751ec8e1ccb2 Author: Paul Pogonyshev Date: Sat May 30 16:57:49 2009 +0300 Wrap gio.DataInputStream.read_line_async and read_until_async Wrap the functions and their corresponding *_finish() functions. Create 'gdatainputstream.override' for these and move two existing functions there. Add unit tests. Re-enable synchronous read_line unit test and adjust it for new official GIO behavior. Bug #584285. gio/Makefile.am | 1 + gio/gdatainputstream.override | 250 +++++++++++++++++++++++++++++++++++++++++ gio/ginputstream.override | 65 ----------- gio/gio.defs | 4 +- gio/gio.override | 1 + tests/test_gio.py | 51 ++++++++- 6 files changed, 300 insertions(+), 72 deletions(-) commit 2cb569c0ced49f9ed5ca83292d5f15c837066688 Author: Paul Pogonyshev Date: Sat May 30 17:24:15 2009 +0300 Fix gio.OutputStream.splice_async Bug #584290. gio/goutputstream.override | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) commit e43fa429f6b4019a432acb481bbc07c8201cc46d Author: Paul Pogonyshev Date: Wed May 27 21:19:27 2009 +0300 Code maintenance: ignore one more file created by unit tests tests/.gitignore | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 76e9dc74ac706a9207f9d31f887d6e38df2a678f Author: Gian Mario Tagliaretti Date: Mon May 25 20:20:38 2009 +0200 Update the docs with new 2.20 API docs/reference/pygio-appinfo.xml | 115 ++++++++++++++++++++++++++++ docs/reference/pygio-icon.xml | 99 +++++++++++++++++++++++- docs/reference/pygio-mount.xml | 156 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 367 insertions(+), 3 deletions(-) commit 8e40d71ac23deb7d91789486ee8cad440a6be1dd Author: Gian Mario Tagliaretti Date: Mon May 25 01:33:08 2009 +0200 Add gio 2.20 API add the new API added in gio 2.20, some needs to be wrapped manually gio/gio.defs | 106 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gio/unix.defs | 48 +++++++++++++++++++++---- 2 files changed, 146 insertions(+), 8 deletions(-) commit 0d08df42514fba6abc896814abfee0d2d083c29e Author: Gian Mario Tagliaretti Date: Mon May 25 00:14:21 2009 +0200 Post release version bump 2.19.0 configure.ac | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit edfb09e3de7baf294b3beba84b4ecb94e1f16764 Author: Gian Mario Tagliaretti Date: Sun May 24 23:56:29 2009 +0200 Update NEWS, release 2.18.0 NEWS | 14 ++++++++++++++ configure.ac | 4 ++-- 2 files changed, 16 insertions(+), 2 deletions(-) commit e0648ea435e0b309cdd5bb0ebe56d4534efd26e4 Author: Gian Mario Tagliaretti Date: Sun May 24 22:18:40 2009 +0200 Add documentation for the gio.OutputStream class The docs for this class are not completed, missing methods descriptions. The index is complete though, it will be completed once all the classes are in place so we can ship a (almost) complete reference. docs/Makefile.am | 2 + docs/reference/pygio-classes.xml | 3 +- docs/reference/pygio-outputstream.xml | 140 +++++++++++++++++++++++++++++++++ 3 files changed, 144 insertions(+), 1 deletions(-) commit 11524cdf6472d9115a812ce431f6767aec5627bc Author: Gian Mario Tagliaretti Date: Sun May 24 22:12:04 2009 +0200 Wrap gio.OutputStream.splice_async() wrap gio.OutputStream.splice_async() and add a test. gio/goutputstream.override | 58 +++++++++++++++++++++++++++++++++++++++++++- tests/test_gio.py | 20 +++++++++++++++ 2 files changed, 77 insertions(+), 1 deletions(-) commit 82ad6b8c8ea4d6694126f5e0e67b826717e38f19 Author: Emilio Pozuelo Monfort Date: Sun May 24 22:55:16 2009 +0300 Add Python version into installed libpyglib name Do this now, while no-one (as far as we know) links to the library besides PyGObject itself. Bug #550235. configure.ac | 2 ++ gio/Makefile.am | 2 +- glib/Makefile.am | 10 +++++----- gobject/Makefile.am | 2 +- 4 files changed, 9 insertions(+), 7 deletions(-) commit 59da8cd24ea390b6c983995833ec6b0e5d028b35 Author: Gian Mario Tagliaretti Date: Sun May 24 11:44:24 2009 +0200 Wrap gio.OutputStream.flush_async() wrap gio.OutputStream.flush_async() and add a test. gio/goutputstream.override | 47 +++++++++++++++++++++++++++++++++++++++++++- tests/test_gio.py | 11 ++++++++++ 2 files changed, 57 insertions(+), 1 deletions(-) commit 84ab6178ed0033f69932df5bc73c86bdff80c953 Author: Gian Mario Tagliaretti Date: Sun May 17 17:29:37 2009 +0200 Add documentation for the gio.FileMonitor class The docs for this class are not completed, missing methods descriptions. The index is complete though, it will be completed once all the classes are in place so we can ship a (almost) complete reference. docs/Makefile.am | 2 + docs/reference/pygio-classes.xml | 1 + docs/reference/pygio-filemonitor.xml | 128 ++++++++++++++++++++++++++++++++++ 3 files changed, 131 insertions(+), 0 deletions(-) commit 629496a5617d30e4dfa494b05a62c85a6af77b9a Author: Josselin Mouette Date: Sun May 17 18:03:44 2009 +0300 Use 'Requires.private' for libffi in '.pc' files Correction for patch in bug #550231. pygobject-2.0-uninstalled.pc.in | 3 ++- pygobject-2.0.pc.in | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) commit 90cd8b7c4a25cd2ecb751f8337b401c98538272b Author: Gian Mario Tagliaretti Date: Wed May 13 21:54:39 2009 +0200 Add wrapper for gio.FileAttributeMatcher added a boxed type for gio.FileAttributeMatcher which has been forgotten while wrapping the gio API. This should probably be done in gio itself. gio/gfileinfo.override | 24 ++++++++++++++++++++++-- gio/gio-types.defs | 7 +++++++ gio/gio.override | 2 ++ 3 files changed, 31 insertions(+), 2 deletions(-) commit e707447d9313f2f2ecba395cfe3682d5a5e859f4 Author: Paul Pogonyshev Date: Wed May 13 22:06:25 2009 +0300 Mark relevant glib.IOChannel methods as METH_NOARGS Additionally fix glib.IOChannel.set_close_on_unref: was marked METH_NOARGS but actually accepted arguments. Fixes bug #582427. glib/pygiochannel.c | 83 ++++++++++++-------------------------------------- 1 files changed, 20 insertions(+), 63 deletions(-) commit 002915e5f458fec5a89766a54e8119a70a80caa7 Author: Gian Mario Tagliaretti Date: Tue May 12 20:37:24 2009 +0200 Add documentation for the gio.FileInfo class The docs for this class are not completed, missing methods descriptions. The index is complete though, it will be completed once all the classes are in place so we can ship a (almost) complete reference. docs/Makefile.am | 2 + docs/reference/pygio-classes.xml | 1 + docs/reference/pygio-fileinfo.xml | 346 +++++++++++++++++++++++++++++++++++++ 3 files changed, 349 insertions(+), 0 deletions(-) commit 8cd25c871609580425c6c4c9e5bc6ec8d40862a1 Author: Paul Pogonyshev Date: Sat May 9 16:46:04 2009 +0300 Retire hand-written ChangeLog; autocreate from Git history Basically copied over from GLib source tree. ChangeLog | 3606 --------------------------------------------------- ChangeLog.pre-2.18 | 3608 ++++++++++++++++++++++++++++++++++++++++++++++++++++ Makefile.am | 32 + 3 files changed, 3640 insertions(+), 3606 deletions(-) commit 23556bdbcf9cf06db866901fb822dd78a9043648 Author: Gian Mario Tagliaretti Date: Sat May 9 00:03:05 2009 +0200 Fix a bug in InputStream.skip_async use the count argument instead of buffer_size which is always zero gio/ginputstream.override | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit ed6b06315c17441b41c001d38537c904b8fe18de Author: Gian Mario Tagliaretti Date: Sat May 9 00:02:33 2009 +0200 Add docs for the gio.InputStream class docs/Makefile.am | 2 + docs/reference/pygio-classes.xml | 1 + docs/reference/pygio-inputstream.xml | 730 ++++++++++++++++++++++++++++++++++ 3 files changed, 733 insertions(+), 0 deletions(-) commit d58322b84d47da7905f95b43e9e0daf9f7c4b507 Author: Gian Mario Tagliaretti Date: Mon May 4 23:40:28 2009 +0200 Wrap gio.InputStream.skip_async() wrap gio.InputStream.skip_async() and add a test. gio/ginputstream.override | 50 ++++++++++++++++++++++++++++++++++++++++++++- tests/test_gio.py | 20 ++++++++++++++++++ 2 files changed, 69 insertions(+), 1 deletions(-) commit 2311187824d1b48a996ee2620fd3c9a63e3edd66 Author: Siavash Safi Date: Mon May 4 15:46:49 2009 +0430 Add -n --namespace option and the code to remove dll API in headers, Added documentation Patch from bug #579275 ChangeLog | 8 +++ codegen/h2def.py | 133 ++++++++++++++++++++++++++++++++++++++++++++---------- 2 files changed, 117 insertions(+), 24 deletions(-) commit 442ec5bb997bb7dab55baeea6e54e79d3ce0d3c1 Author: Paul Pogonyshev Date: Sat May 2 23:54:52 2009 +0300 Properly mark glib.get_user_special_dir() as a keywords method Fixes bug #581082. glib/glibmodule.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit f466dca880cc6ea68b9fe236943eea7a07d33520 Author: Gian Mario Tagliaretti Date: Sun May 3 11:03:25 2009 +0200 Add docs for the gio.LoadableIcon class docs/Makefile.am | 2 + docs/reference/pygio-classes.xml | 1 + docs/reference/pygio-loadableicon.xml | 198 +++++++++++++++++++++++++++++++++ 3 files changed, 201 insertions(+), 0 deletions(-) commit eab4ebf7f6c82580b61205f34e1cfe535aeada60 Author: Gian Mario Tagliaretti Date: Sun May 3 01:21:55 2009 +0200 Add docs for the gio.ThemedIcon class docs/Makefile.am | 2 + docs/reference/pygio-classes.xml | 1 + docs/reference/pygio-themedicon.xml | 204 +++++++++++++++++++++++++++++++++++ 3 files changed, 207 insertions(+), 0 deletions(-) commit 22d7de8b620055f14b30f9c3c99160c8b4ebe672 Author: Gian Mario Tagliaretti Date: Sat May 2 12:25:19 2009 +0200 post release version bump to 2.17.1 configure.ac | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 282ac3c76e1e3513bd76f819f320ec56aba15d9e Author: Gian Mario Tagliaretti Date: Fri May 1 23:40:31 2009 +0200 Fix the class title docs/reference/pygio-mountoperation.xml | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit d8b70dec1e5c09b73ae277f4f5b246315841fb8e Author: Gian Mario Tagliaretti Date: Fri May 1 22:24:33 2009 +0200 Add docs for the gio.MountOperation class docs/Makefile.am | 2 + docs/reference/pygio-classes.xml | 1 + docs/reference/pygio-constants.xml | 107 +++++ docs/reference/pygio-mountoperation.xml | 726 +++++++++++++++++++++++++++++++ 4 files changed, 836 insertions(+), 0 deletions(-) commit fceea8e843e880f0469e454df23141e7dd2bc0cf Author: Gian Mario Tagliaretti Date: Thu Apr 30 22:13:06 2009 +0200 Update NEWS, release 2.17.0 NEWS | 93 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 93 insertions(+), 0 deletions(-) commit 47389217d1a65a8e3f404d486c508cf5d3164756 Author: Paul Pogonyshev Date: Thu Apr 30 22:47:19 2009 +0300 Fix memory leak in gio.File.query_info_async() After the recent patch it would leak exception data if old argument order was used. Properly decref the objects. gio/gfile.override | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)