commit 3ec4020205e909ee4400650434f9ae7b89c2bde8 Author: John (J5) Palmieri Date: Thu Sep 15 18:12:01 2011 -0400 edit HACKING file to show correct tag format HACKING | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 2e864fd05bc0adf48df9f65ab72785ebb1d0d3f0 Author: John (J5) Palmieri Date: Thu Sep 15 18:10:33 2011 -0400 update NEWS file to prep for release NEWS | 35 +++++++++++++++++++++++++++++++++++ 1 files changed, 35 insertions(+), 0 deletions(-) commit 0da687fa699aba4f42c42a924d6754e2bd47df50 Author: John (J5) Palmieri Date: Thu Sep 15 17:59:31 2011 -0400 fix typo s/lenth/length gi/overrides/Gtk.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 0e4861abaff64d8e7e8d1aeedf9dd1e80de8aab2 Author: John (J5) Palmieri Date: Thu Sep 15 17:48:58 2011 -0400 fix typo in docstring gi/_gobject/propertyhelper.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit e7fcc326d64def610e5a1003cf6c7ca97023814d Author: John (J5) Palmieri Date: Thu Sep 15 17:46:46 2011 -0400 do not pass in len(str) to the length argument of gtk_test_buffer_insert* apis * in python 3 len(str) returns the number of characters while the length parameter is expecting the number of bytes. It also excepts -1 for null terminated string. Since all of our strings are null terminated, just set length to that. gi/overrides/Gtk.py | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) commit 6f380153afb3390f7da9f4b8befb1c4ee224da17 Author: Dieter Verfaillie Date: Mon Sep 12 21:07:20 2011 +0200 Switch tarball compression format to tar.xz only. See http://mail.gnome.org/archives/gnome-announce-list/2011-September/msg00031.html for more information. https://bugzilla.gnome.org/show_bug.cgi?id=659140 configure.ac | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 11c45ac6dcb6ffad766d03bfc77f45a6d703a90d Author: Dieter Verfaillie Date: Thu Sep 15 14:18:57 2011 +0200 Remove pygtk_version attribute from internal gi._gobject module. This used to be provided for backwards compatibility with older PyGTK versions. As PyGObject3 no longer provides support for static bindings like PyGTK, the pygtk_version attribute has become obsolete. https://bugzilla.gnome.org/show_bug.cgi?id=659142 gi/_gobject/gobjectmodule.c | 4 ---- gi/_gobject/pygobject.h | 2 -- 2 files changed, 0 insertions(+), 6 deletions(-) commit 7e48fd6dfd86b7082c3fd35d25d9693c56c9665a Author: John (J5) Palmieri Date: Thu Sep 15 15:52:18 2011 -0400 remove overridesdir from the .pc file and add it to the gi module * having the variable in the .pc file caused issues parallel installing for different versions of python * putting it into the module allows us to give the correct directory based on which version of python you run the script from * access the var as such: import gi installdir = gi._overridesdir gi/__init__.py | 2 ++ pygobject-3.0.pc.in | 10 +++++++++- 2 files changed, 11 insertions(+), 1 deletions(-) commit beea7072a5a989be47a755ac46647380d4dbd6b4 Author: John (J5) Palmieri Date: Thu Sep 15 00:11:09 2011 -0400 fix tests to correctly construct a dummy Gtk.TargetEntry * structs are sometimes a pain in gi. Simply constructing them using the the standard constructor (e.g. Gtk.TargetEntry()) will malloc the struct but not correctly initialize the fields which can cause a crash. * tests didn't crash before because they were sending in bogus data that somehow did not trigger the issue * now with the C struct array marshallers doing the right thing, the incorrect use of TargetEntry was causing a crash https://bugzilla.gnome.org/show_bug.cgi?id=627236 tests/test_overrides.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 46ba7f04ef3df08e07ddda5c10f0c98bec5fa183 Author: John (J5) Palmieri Date: Thu Sep 15 00:08:31 2011 -0400 we now assume that C arrays of structs are flat so memcpy them when marshalling * there is no way in GI to tell if a C array is flat or an array of pointers so we assume that all arrays of simple structs and gvalues are flat and all arrays of objects and boxed structs are pointer arrays. * this will be removed once GI gets the ability to annotate level of indirection for arrays https://bugzilla.gnome.org/show_bug.cgi?id=627236 gi/pygi-marshal-from-py.c | 35 ++++++++++++++++++++++++++++++++--- tests/test_gi.py | 29 +++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+), 3 deletions(-) commit e30a41592baa942188574e5c9f99572963e2e387 Author: John (J5) Palmieri Date: Thu Sep 15 00:02:34 2011 -0400 only update the arg counts once if child arg comes before parent arg * if the child arg comes before the parent arg we need to update the argument counts and take the child arg out of the marshalling lists since it is handled by the parent * when two parents reference the same child arg as is the case with two arrays which have a single length argument we only want to update the count once * to do this we introduce the PYGI_META_ARG_CHILD_NEEDS_UPDATE meta type and only do the count update if this is set * APIs should keep in mind that this take extra processing so child args should really come after their parents https://bugzilla.gnome.org/show_bug.cgi?id=627236 gi/pygi-cache.c | 30 ++++++++++++++++++++---------- gi/pygi-cache.h | 9 +++++++-- 2 files changed, 27 insertions(+), 12 deletions(-) commit f6fa5dd8f39af1b8a52d7600d257400b0983e8c5 Author: John (J5) Palmieri Date: Wed Sep 14 20:26:15 2011 -0400 Fix refcount bug by not creating python wrapper during gobject init stage * This only applys to python subclasses of GObject which are instantiated using GObject.new * Because we were creating the wrapper when the gobject is initialized and then again calling pygobject_new_full the wrapper would get ref'ed twice. * we could not simply Py_DECREF the wrapper due to the fact that non-subclassed objects (e.g. GObject.Object) instantiated via new do not run the same initialization code and would not have the extra ref * solution was to simply not create the wrapper during initialization because if it doesn't exist when pygobject_new_full is called it gets created and registered there * move the call to __init__ into pyg_object_new https://bugzilla.gnome.org/show_bug.cgi?id=657403 gi/_gobject/gobjectmodule.c | 32 +++++++++++++++----------------- 1 files changed, 15 insertions(+), 17 deletions(-) commit 61b64a65beee9011f8e4ed20f0a83e6630ba154f Author: John (J5) Palmieri Date: Tue Sep 13 18:08:04 2011 -0400 don't destroy just created wrapper when object is created via g_object_new https://bugzilla.gnome.org/show_bug.cgi?id=657403 gi/_gobject/gobjectmodule.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 93e12cc2eb7e7f2c18971da86e9c9452d3f566b7 Author: Steve Frécinaux Date: Fri Aug 26 11:22:09 2011 +0200 Remove deprecated API from pygobject.h https://bugzilla.gnome.org/show_bug.cgi?id=657416 gi/_gobject/pygobject.h | 19 +------------------ 1 files changed, 1 insertions(+), 18 deletions(-) commit e1c71092af6e2cffa36248519adfceac1874051d Author: Marcin Owsiany Date: Wed Aug 31 09:43:28 2011 +0100 Convert gtk.TRUE/FALSE to Python True/False. https://bugzilla.gnome.org/show_bug.cgi?id=657785 pygi-convert.sh | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit 3ace5c2e2268285a5dcb39889fcb2a71bc1063bd Author: Steve Frécinaux Date: Fri Sep 2 08:37:15 2011 +0200 Drop legacy __gobject_init__ method of GObject.Object. This method was used in gobject initialization at some point, but now using GObject.__init__() is sufficient, so let's not keep this old method around and let people misuse it. https://bugzilla.gnome.org/show_bug.cgi?id=658032 examples/signal.py | 2 -- gi/_gobject/pygobject.c | 11 ----------- 2 files changed, 0 insertions(+), 13 deletions(-) commit fcd457d1d1d8a813acb2ebfe5ee0e9aab2c9c88c Author: Dieter Verfaillie Date: Tue Sep 13 12:05:30 2011 +0200 AM_CHECK_PYTHON_LIBS does not work for lib64 But on Windows, Python extension modules need to be explicitly linked to libpython. https://bugzilla.gnome.org/show_bug.cgi?id=658856 configure.ac | 4 +++- gi/Makefile.am | 9 ++++++--- gi/_glib/Makefile.am | 10 ++++++++-- gi/_gobject/Makefile.am | 8 +++++++- 4 files changed, 24 insertions(+), 7 deletions(-) commit 863c087911203a8f3ebaa8e77622a3437a7cd320 Author: Dieter Verfaillie Date: Mon Sep 12 23:03:05 2011 +0200 Remove common_ldflags from Makefile.am as it is no longer used. https://bugzilla.gnome.org/show_bug.cgi?id=658856 Makefile.am | 6 ------ 1 files changed, 0 insertions(+), 6 deletions(-) commit 24b920f9922e367bdb8b3e56c2f61e0c8f5cdb66 Author: John (J5) Palmieri Date: Tue Sep 13 16:20:48 2011 -0400 cast params for PyObject_IsInstance to suppress warnings gi/_gobject/pygobject-private.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 861369ec59b17f67151813dc2e87c6e86126b954 Author: John (J5) Palmieri Date: Tue Sep 13 16:04:31 2011 -0400 check if object is actually a PyGFlag before trying to access g_type * we are lucky this bit of code worked for as long as it did but when checking if an object is a PyGFlag we can't just rely on looking at the g_type field because if a regular gobject is passed in as is the case when you compare a long to a gflag, the gobject will not have a g_type field. Accessing a non-existant field could at best give you a false positive and at worse read memory beyond the bounds of the actual structure passed in gi/_gobject/pygobject-private.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit eea93e89fb064253bd8903c8b453daf4b3c87c2c Author: John (J5) Palmieri Date: Tue Sep 13 16:03:02 2011 -0400 fix regression - add instance type checks since Py3 no longer does this for us gi/pygi-marshal-from-py.c | 21 +++++++++++++++++++-- 1 files changed, 19 insertions(+), 2 deletions(-) commit a4e4318b50a24a688e32579273fbcfa51d1b422a Author: John (J5) Palmieri Date: Fri Sep 2 18:39:51 2011 -0400 refactor in/out marshalling to be to_py/from_py * in/out make sense from a C perspective but when you get to the python layers it makes more sense to label them as to_py and from_py to denote which way we are marshalling * this helps clear up the difference between callbacks which call into python and invoked functions which call into C * in the callback case we marshal in values to Python objects and out values to C types but in the invoke case we do the reverse. Dealing with to_py/from_py makes the code much more resuable and consistant https://bugzilla.gnome.org/show_bug.cgi?id=658362 gi/Makefile.am | 8 +- gi/pygi-cache.c | 673 +++++++++++----------- gi/pygi-cache.h | 62 ++- gi/pygi-invoke.c | 144 +++--- gi/pygi-marshal-cleanup.c | 168 +++--- gi/pygi-marshal-cleanup.h | 128 ++-- gi/pygi-marshal-from-py.c | 1412 +++++++++++++++++++++++++++++++++++++++++++++ gi/pygi-marshal-from-py.h | 186 ++++++ gi/pygi-marshal-in.c | 1412 --------------------------------------------- gi/pygi-marshal-in.h | 186 ------ gi/pygi-marshal-out.c | 768 ------------------------ gi/pygi-marshal-out.h | 144 ----- gi/pygi-marshal-to-py.c | 768 ++++++++++++++++++++++++ gi/pygi-marshal-to-py.h | 144 +++++ 14 files changed, 3122 insertions(+), 3081 deletions(-) commit 45b0fcff9e948c65a3903c32a3957802034c5e47 Author: Dieter Verfaillie Date: Fri Sep 9 16:50:25 2011 +0200 Examples: fix cairo-demo.py imports examples/cairo-demo.py | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit 3ca19fc13e6024fd04851e6f269020a92b09fa17 Author: Dieter Verfaillie Date: Fri Sep 9 15:08:27 2011 +0200 Fix paths and add missing overridesdir variable used in uninstalled pkgconfig file https://bugzilla.gnome.org/show_bug.cgi?id=658654 pygobject-3.0-uninstalled.pc.in | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) commit 6e773175b9d2f46b3df5075ec952a8c5aff3c607 Author: Dieter Verfaillie Date: Fri Sep 9 15:08:04 2011 +0200 Remove no longer used variables from pkgconfig files https://bugzilla.gnome.org/show_bug.cgi?id=658654 pygobject-3.0-uninstalled.pc.in | 6 ------ pygobject-3.0.pc.in | 5 +---- 2 files changed, 1 insertions(+), 10 deletions(-) commit 81d388780311311d8dc4a027a59d114edf9a00fc Author: Dieter Verfaillie Date: Fri Sep 9 14:57:58 2011 +0200 docs/Makefile.am and m4/python.m4: Python3 portability fixes https://bugzilla.gnome.org/show_bug.cgi?id=658652 docs/Makefile.am | 2 +- m4/python.m4 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 7e692ee061406e48e4862b98a0829650b1d6d585 Author: Dieter Verfaillie Date: Fri Sep 9 14:57:46 2011 +0200 Refactor and clean Makefile.am files https://bugzilla.gnome.org/show_bug.cgi?id=658652 Makefile.am | 2 - gi/Makefile.am | 81 ++++++++++++++++++++++-------------- gi/_glib/Makefile.am | 100 +++++++++++++++++++++++++++++---------------- gi/_gobject/Makefile.am | 85 ++++++++++++++++++++------------------ gi/overrides/Makefile.am | 4 +- gi/repository/Makefile.am | 4 +- 6 files changed, 162 insertions(+), 114 deletions(-) commit 3dd59b07d1f4a93ee1f65d6a64e1afb6f5e84232 Author: Dieter Verfaillie Date: Fri Sep 9 14:57:36 2011 +0200 Remove all PLATFORM_VERSION = 2.0 traces https://bugzilla.gnome.org/show_bug.cgi?id=658652 gi/Makefile.am | 2 -- gi/overrides/Makefile.am | 1 - gi/repository/Makefile.am | 1 - 3 files changed, 0 insertions(+), 4 deletions(-) commit db1e484bfa157967de55ee2e0e18a82b8e388b61 Author: Dieter Verfaillie Date: Fri Sep 9 14:57:25 2011 +0200 Remove gi/tests/ directory as all the tests now live in tests/ https://bugzilla.gnome.org/show_bug.cgi?id=658652 gi/tests/Makefile.am | 24 ------------------------ gi/tests/runtests.py | 21 --------------------- 2 files changed, 0 insertions(+), 45 deletions(-) commit b0ecbf00138ef1147e478ebf3c66f0e9b3f85dfc Author: Dieter Verfaillie Date: Fri Sep 9 14:55:25 2011 +0200 autogen.sh: Use autoreconf instead of a custom script and honor ACLOCAL_FLAGS https://bugzilla.gnome.org/show_bug.cgi?id=658652 Makefile.am | 2 +- autogen.sh | 95 +++++++---------------------------------------------------- 2 files changed, 12 insertions(+), 85 deletions(-) commit 4671f5397003f376f00830e3fd1c214de594619f Author: Dieter Verfaillie Date: Fri Sep 9 14:55:01 2011 +0200 use improved python.m4 macros to search for Python headers and libs https://bugzilla.gnome.org/show_bug.cgi?id=658652 configure.ac | 3 ++- m4/python.m4 | 47 +++++++++++++++++++++++++++++++++++++---------- 2 files changed, 39 insertions(+), 11 deletions(-) commit 2c9fd09da196d35db968bff4ae63fcce2d891e69 Author: Javier Jardón Date: Fri Sep 9 15:38:22 2011 +0100 Make maintiner mode enabled by default See http://blogs.gnome.org/desrt/2011/09/08/am_maintainer_mode-is-not-cool/ configure.ac | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit b24dcb415406668931e02a1f669ef9861bb3a660 Author: Dieter Verfaillie Date: Wed Aug 24 09:58:10 2011 +0200 Disable documentation for now since they are completely wrong for GI. https://bugzilla.gnome.org/show_bug.cgi?id=657054 Makefile.am | 2 +- configure.ac | 25 ------------------------- 2 files changed, 1 insertions(+), 26 deletions(-) commit ecea2358a379c8ff44dff2f8f9c30a9092af1681 Author: Dieter Verfaillie Date: Wed Sep 7 10:38:28 2011 +0200 Fix documentation installation directory https://bugzilla.gnome.org/show_bug.cgi?id=657054 docs/Makefile.am | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) commit 8d3125c8ce9890c70400dd8a3ac273b590fe6a31 Author: Dieter Verfaillie Date: Tue Sep 6 22:22:11 2011 +0200 Remove distutils based build system. The only reason this might be brought back to life again is when the whole stack can be built with Visual Studio (including gobject-introspection) again. Building with MinGW/MSYS can now be done with the usual autogen.sh/configure/make/make install dance. https://bugzilla.gnome.org/show_bug.cgi?id=657054 MANIFEST.in | 7 - Makefile.am | 25 +-- README.win32 | 21 -- dsextras.py | 509 ---------------------------------------------- pygobject_postinstall.py | 9 - setup.py | 351 -------------------------------- 6 files changed, 7 insertions(+), 915 deletions(-) commit b82d916635aa0b732840548088a3fcfcb2e41bc4 Author: Dieter Verfaillie Date: Wed Sep 7 10:40:36 2011 +0200 [gtk-demo] Fix syntax highlighter encoding issue With Python 3, Gtk.TextBuffer.get_text returns a str (not bytes), with Python 2 however we get a str (not unicode). So with Python 2 the tokenizer returned bogus data when ran over a demo that contains real UTF-8 codepoints (like rotatedtext.py for example). This patch thus fixes the "Gtk-CRITICAL **: gtk_text_iter_set_line_offset: assertion `char_on_line <= chars_in_line` failed" assertions when selecting the rotated text demo in the treeview. demos/gtk-demo/gtk-demo.py | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) commit 31db3ed3d233bd495c3a2f99b3fa51031bfa30c6 Author: Ignacio Casal Quinteiro Date: Tue Sep 6 22:13:54 2011 +0200 overrides: add constants for atoms gi/overrides/Gdk.py | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 49 insertions(+), 0 deletions(-) commit 81861bc2d664eb38d46e5c38ff755d436f040f63 Author: Steve Frécinaux Date: Wed Aug 31 14:18:56 2011 +0200 Drop pygobject_construct() from public API. These functions were introduced in 2005 because python objects could not "just" be instantiated using g_object_new(), but this is not true anymore since the introduction of new-style constructors. Hence this API has no reason to be there anymore. Nowadays, people who want to construct GObjects defined in python should just use g_object_new(). https://bugzilla.gnome.org/show_bug.cgi?id=657814 gi/_gobject/gobjectmodule.c | 118 +++++++++------------------------------ gi/_gobject/pygobject-private.h | 3 - gi/_gobject/pygobject.h | 8 --- 3 files changed, 26 insertions(+), 103 deletions(-) commit c4c55a98ccf9e39ed0d10ed49b66a76dc7d7c509 Author: Ignacio Casal Quinteiro Date: Wed Aug 31 18:00:44 2011 +0200 post release version bump configure.ac | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit ac5a0f46242abdd3cd98ec5f9f2bf8e5b05f3845 Author: Ignacio Casal Quinteiro Date: Wed Aug 31 17:58:37 2011 +0200 Release 2.90.3 NEWS | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-)