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(-)