commit 664403d953c3e07077d0db90bfae3b51c7f1767c Author: Paolo Borelli Date: Mon Aug 6 15:52:22 2012 +0200 release 3.3.5 NEWS | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) commit b748753a2a9af018001213e2e58c48d6c8bfadbd Author: Paolo Borelli Date: Mon Aug 6 15:44:32 2012 +0200 Update HACKING file to mention "make release-news" HACKING | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) commit 587a0c33901383b891f8eb77351c17f06af20b4f Author: Paolo Borelli Date: Mon Aug 6 15:38:23 2012 +0200 pygi-closure: remove unused variables These variables are assigned but never actually used gi/pygi-closure.c | 8 -------- 1 file changed, 8 deletions(-) commit dbc6df6aad7197fcf8721ade429baadd749f7069 Author: Martin Pitt Date: Fri Aug 3 07:13:55 2012 +0200 tests: Do not break on Pango warnings In some restricted environments (like chroots) we sometimes get warnings from Pango when it cannot find an appropriate font. Do not make the tests fail on those. tests/test_overrides.py | 4 ++++ tests/test_pygtkcompat.py | 6 ++++++ 2 files changed, 10 insertions(+) commit 770e6abfd5bc5dad7d5f56a18f1ef63f9754ada9 Author: Martin Pitt Date: Fri Aug 3 06:45:48 2012 +0200 Fix list marshalling on big-endian machines On big endian machines we cannot simply set e. g. GIArgument.v_int8 and expect GIArgument.v_pointer to be a correct representation. This needs to use GINT_TO_POINTER/GPOINTER_TO_INT properly, so use the already existing _pygi_hash_pointer_to_arg()/_pygi_arg_to_hash_pointer() methods in marshalling to and from GList and GSList, and handle int8 and int16 as well. Part of porting pygobject to ppc64: https://bugzilla.redhat.com/show_bug.cgi?id=842880 https://bugzilla.gnome.org/show_bug.cgi?id=680693 gi/pygi-marshal-from-py.c | 48 ++++++++++++++++++++++++----------------- gi/pygi-marshal-to-py.c | 54 +++++++++++++++++++++++++++-------------------- 2 files changed, 60 insertions(+), 42 deletions(-) commit b5cd13f47309ec26727b7574e33595a357602468 Author: Colin Walters Date: Tue Jul 31 11:47:02 2012 -0400 pygi-marshal: One more 32-bit -Werror=format fix gi/pygi-marshal-from-py.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 526bf43691cb6ed908589312b1693a6389eba00c Author: Martin Pitt Date: Tue Jul 31 17:14:37 2012 +0200 Beautify class/interface type mismatch error messages Avoid saying ".int", just skip the module name completely if we do not have one. gi/pygi-marshal-from-py.c | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) commit 8fb18c62d9c7faff38df3886cb4289b618c81b85 Author: Martin Pitt Date: Tue Jul 31 13:13:21 2012 +0200 Skip instead of fail tests which need Pango, Atk, Gdk, Gtk On initial jhbuild bootstrap or restricted environments, the Pango, Atk, Gdk, and Gtk typelibs might not be available. Skip tests which need these instead of failing the testsuite. tests/test_atoms.py | 7 ++++++- tests/test_everything.py | 9 ++++++++- tests/test_overrides.py | 32 ++++++++++++++++++++++++++------ tests/test_pygtkcompat.py | 30 ++++++++++++++++++++---------- 4 files changed, 60 insertions(+), 18 deletions(-) commit a2e73c109f3ed6080eabc85810e624b9f984317e Author: Colin Walters Date: Tue Jul 31 09:02:24 2012 -0400 pygi-argument: Fix -Wformat warning on 32 bit builds gi/pygi-argument.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 7563bb9f8ed5740f52ddf0ca59daf7839853505b Author: Martin Pitt Date: Tue Jul 31 11:14:36 2012 +0200 Fix tests for Python 2 In Python 2 we get different error messages for a mismatching self type. Fixes check after commit 121b14028. tests/test_gi.py | 32 ++++++++++++++++++++------------ 1 file changed, 20 insertions(+), 12 deletions(-) commit 5c5b066854cc0b3b7702f31d212aa3f511c62127 Author: Martin Pitt Date: Tue Jul 31 10:30:22 2012 +0200 Build with -Werror=format This catches format string problems on particular architectures like in commit dea24f8e12 much more insistently. configure.ac | 1 + 1 file changed, 1 insertion(+) commit 6e84a3052667fdc88c2081e20cc6dc3257ec9d6c Author: Simon Feltman Date: Mon Jul 30 02:00:16 2012 -0700 [API add] pygtkcompat: Add more pixbuf creation functions Add the following functions: pixbuf_new_from_data pixbuf_new_from_file_at_scale pixbuf_new_from_file_at_size pixbuf_new_from_inline pixbuf_new_from_stream pixbuf_new_from_stream_at_scale pixbuf_new_from_xpm_data pixbuf_get_file_info https://bugzilla.gnome.org/show_bug.cgi?id=680814 gi/pygtkcompat.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) commit dea24f8e1221516b2d8ea578e55124b0409d6a76 Author: Colin Walters Date: Mon Jul 30 22:17:44 2012 -0400 marshal: Fix a lot of format string warnings on 32 bit G_GUINT64_FORMAT and friends handle "%lld" portably. https://bugzilla.gnome.org/show_bug.cgi?id=680878 gi/pygi-marshal-from-py.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) commit b630038d9a1c8cb7e5914c77fbacbed646c154d1 Author: Colin Walters Date: Mon Jul 30 22:30:07 2012 -0400 marshal: Fix build break on Python 2 I *think* using this wrapper function instead is right. https://bugzilla.gnome.org/show_bug.cgi?id=680879 gi/pygi-marshal-from-py.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) commit a8338a991bbe919f0e2d9b92f7b71f89ccd2c875 Author: Manuel Quiñones Date: Mon Jul 30 12:53:36 2012 -0300 Improve testcase for tree_view_column_set_attributes Signed-off-by: Manuel Quiñones https://bugzilla.gnome.org/show_bug.cgi?id=680320 tests/test_overrides.py | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) commit 121b1402860407fe46f7501e42447bf3607872ec Author: Martin Pitt Date: Tue Jul 31 00:37:55 2012 +0200 Fix error messages on interface/class type mismatches Previously, when you called a function with an argument which was not compatible with the expected class/interface type, you got an error message like TypeError: Expected Gtk.TreeViewColumn, but got GObjectMeta which had the wrong (and useless) class name for the actual type, and did not tell you which argument caused the problem. With this it says e. g. TypeError: argument column: Expected Gtk.TreeViewColumn, but got Gtk.Button instead. gi/pygi-marshal-from-py.c | 41 ++++++++++++++++++++++++++-------- tests/test_gi.py | 57 ++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 88 insertions(+), 10 deletions(-) commit 8f31e85db1392eb7222593fc0d05144c2bca06a3 Author: Simon Feltman Date: Sun Jul 29 23:36:25 2012 -0700 Fix crash when returning (False, None) from Gtk.TreeModel.do_get_iter() Add a Py_None check before attempting memcpy(). https://bugzilla.gnome.org/show_bug.cgi?id=680812 Signed-off-by: Martin Pitt gi/pygi-closure.c | 10 +++++++--- tests/test_overrides.py | 9 +++++++++ 2 files changed, 16 insertions(+), 3 deletions(-) commit 94e5d58e7794de91d3291e0e51c42070da4fc92b Author: Martin Pitt Date: Mon Jul 30 11:58:24 2012 +0200 Add test case for Gtk.TextIter.forward_search() https://bugzilla.gnome.org/show_bug.cgi?id=679415 tests/test_overrides.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) commit aae4e77482c02e21154ab02b159f380f5f0f74be Author: Martin Pitt Date: Fri Jul 27 23:06:39 2012 +0200 Add missing static declarations This fixes a lot of -Wmissing-prototype warnings. Also remove _pygi_marshal_cleanup_closure_unref() which is not used anywhere. gi/_gobject/gobjectmodule.c | 4 ++-- gi/_gobject/pygobject.c | 2 +- gi/pygi-cache.c | 2 +- gi/pygi-foreign-cairo.c | 24 ++++++++++++------------ gi/pygi-foreign.c | 2 +- gi/pygi-marshal-cleanup.c | 9 --------- tests/test-unknown.c | 2 +- tests/testhelpermodule.c | 4 ++-- 8 files changed, 20 insertions(+), 29 deletions(-) commit 5f88d3017f853c4ff5e9fd89ef39e4569a9b9c16 Author: Martin Pitt Date: Fri Jul 27 23:01:08 2012 +0200 Fix more missing #includes Add missing includes which caused -Wmissing-prototypes warnings. gi/_gobject/pygenum.c | 2 ++ gi/_gobject/pyginterface.c | 2 ++ 2 files changed, 4 insertions(+) commit 97b5184c6650964ae8a7616353f5ce8e3ca19af3 Author: Martin Pitt Date: Fri Jul 27 22:59:21 2012 +0200 Make some warnings fatal Add -Werror for some warnings which are real errors in the source which we really want to avoid. This includes -Wmissing-prototypes, but that currently breaks on building g-i's regress.c. configure.ac | 5 +++++ 1 file changed, 5 insertions(+) commit c2ee8c550199de59dd220561ed028ec6fb8e1daf Author: Martin Pitt Date: Fri Jul 27 22:08:47 2012 +0200 Fix missing #includes Add missing includes which caused -Wmissing-prototypes warnings. gi/_glib/pygiochannel.c | 2 ++ gi/_glib/pygspawn.c | 2 ++ 2 files changed, 4 insertions(+) commit 8bc98fc6665ebab763ee92361929139a0ebe66b5 Author: Martin Pitt Date: Fri Jul 27 20:52:00 2012 +0200 pygi-info.c: Robustify pointer arithmetic In _wrap_g_field_info_{get,set}_value(), use explicit char* casts to point out that we are using byte offsets. Fixes warnings: pygi-info.c:1277:43: warning: pointer of type 'void *' used in arithmetic [-Werror=pointer-arith] gi/pygi-info.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit d0a561057b727ebcc1fd06fa6a3b48f2a1f8338e Author: Martin Pitt Date: Fri Jul 27 20:50:30 2012 +0200 pyglib.c: Remove some dead code Drop unused pyglib_gil_state_ensure_py23() and pyglib_gil_state_release_py23(). gi/_glib/pyglib.c | 18 ------------------ 1 file changed, 18 deletions(-) commit a46d165d906d0ac7613f4d946542423e979f39d5 Author: Manuel Quiñones Date: Fri Jul 20 10:37:04 2012 -0300 Add set_attributes() override to Gtk.TreeViewColumn Looking at the C code, gtk_tree_view_column_set_attributesv just calls gtk_cell_layout_clear_attributes and then gtk_cell_layout_add_attribute for each (name, value) passed. This patch makes the same in the overrides. Signed-off-by: Manuel Quiñones Signed-off-by: Martin Pitt gi/overrides/Gtk.py | 7 +++++++ tests/test_overrides.py | 6 ++++++ 2 files changed, 13 insertions(+) commit 4df676e10a5ea595a0d491af10268f557dd722d7 Author: Daniel Narvaez Date: Tue Jul 24 13:49:15 2012 +0200 Drop git.mk The autogenerated gitignores was missing several files. So we was using a manual .gitignore at the root. But since it's enough to add a couple of entries to it to cover the whole tree, there is no much point in using git.mk at all. https://bugzilla.gnome.org/show_bug.cgi?id=678192 Makefile.am | 3 - docs/Makefile.am | 2 - examples/Makefile.am | 3 - gi/Makefile.am | 3 - gi/_glib/Makefile.am | 3 - gi/_gobject/Makefile.am | 2 - gi/overrides/Makefile.am | 2 - gi/repository/Makefile.am | 2 - git.mk | 200 ---------------------------------------------- tests/Makefile.am | 2 - 10 files changed, 222 deletions(-) commit 0d729c1534c7f3226b492f549d8f6ad3bb3ac8b7 Author: Simon Feltman Date: Fri Jul 20 19:55:46 2012 -0700 Gtk overrides: Add TreePath.__getitem__() Use pythons sub-script operator for indexing into TreePaths as was the case in PyGtk. Also changed __iter__ to use TreePath.get_indices as opposed to formatting and re-parsing a string for getting an index list. https://bugzilla.gnome.org/show_bug.cgi?id=680353 gi/overrides/Gtk.py | 5 ++++- tests/test_overrides.py | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) commit affc7faa3fa7250e2e8c2c65e6860906f6fbc4fb Author: Simon Feltman Date: Fri Jul 20 21:34:33 2012 -0700 Fix property type mapping from int to TYPE_INT for python3. Python3 does not have a long type, however, propertyhelper.py was using long_ = int; to get things working. Type mapping code was then checking for long_ first and always returning TYPE_LONG. Additional refactoring was done to move large if/elif statements into dictionary lookups and usage of tuples instead of lists for simple 'in' list of items tests. https://bugzilla.gnome.org/show_bug.cgi?id=679939 gi/_gobject/propertyhelper.py | 117 +++++++++++++++++++----------------------- tests/test_properties.py | 55 +++++++++++++++----- 2 files changed, 96 insertions(+), 76 deletions(-) commit 6fddba5bc5ea02938677a89ffeb0cfc53229b894 Author: Manuel Quiñones Date: Thu Jul 19 12:11:34 2012 -0300 Convert Gtk.DestDefaults constants in pygi-convert.sh script Signed-off-by: Manuel Quiñones https://bugzilla.gnome.org/show_bug.cgi?id=680259 pygi-convert.sh | 1 + 1 file changed, 1 insertion(+) commit d58c3553062fd8704a81a8233b4a1563a6611718 Author: Manuel Quiñones Date: Thu Jul 19 12:04:03 2012 -0300 Convert all Gdk.WindowState constants in pygi-convert.sh Signed-off-by: Manuel Quiñones https://bugzilla.gnome.org/show_bug.cgi?id=680257 pygi-convert.sh | 1 + 1 file changed, 1 insertion(+) commit a3aae2e152c0b955037b7b85e16d14d00881d870 Author: Joe R. Nassimian Date: Thu Jul 19 15:48:20 2012 +0200 [API add] Add API for checking pygobject's version Add a gi.__version__ attribute for the textual version, and gi.version_info for a version triple similar to sys.version_info. Also add a gi.require_version() which raises an exception if the pygobject version is older. https://bugzilla.gnome.org/show_bug.cgi?id=680176 Signed-off-by: Martin Pitt gi/__init__.py | 16 ++++++++++++++++ tests/test_gi.py | 16 ++++++++++++++++ 2 files changed, 32 insertions(+) commit a2d9b71d84f0fcb7aaf5ce483ffee3b3a1ccaca1 Author: Manuel Quiñones Date: Mon Jul 16 17:14:46 2012 -0300 pygi-convert.sh: Add some missing Gdk.CursorTypes This patch adds WATCH, ARROW and CLOCK. https://bugzilla.gnome.org/show_bug.cgi?id=680050 Signed-off-by: Manuel Quiñones Signed-off-by: Martin Pitt pygi-convert.sh | 3 +++ 1 file changed, 3 insertions(+) commit 0b08c01414ac73a4604acd9a846e7af09574929f Author: Manuel Kaufmann Date: Tue Jul 17 09:05:27 2012 -0300 pygi-convert.sh: convert rsvg.Handle(data=...) Replace rsvg.Handle(data=data) with Rsvg.Handle.new_from_data(data) https://bugzilla.gnome.org/show_bug.cgi?id=680092 Signed-off-by: Manuel Kaufmann Signed-off-by: Martin Pitt pygi-convert.sh | 2 ++ 1 file changed, 2 insertions(+) commit 975855d0fff7f2042fe1f0e843f96b9a37cc6b79 Author: Martin Pitt Date: Mon Jul 16 17:35:38 2012 +0200 configure.ac: post-release bump to 3.3.5 configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)