Package: pygobject-2 / 2.28.6-10

Metadata

Package Version Patches format
pygobject-2 2.28.6-10 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
00git_enum_properties.patch | (download)

gobject/propertyhelper.py | 23 16 + 7 - 0 !
tests/test_properties.py | 40 36 + 4 - 0 !
2 files changed, 52 insertions(+), 11 deletions(-)

 [patch 1/4] add support for enums in gobject.property

https://bugzilla.gnome.org/show_bug.cgi?id=653488

00git_cairo_init.patch | (download)

gi/pygi-foreign-cairo.c | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 [patch 3/4] correctly initialize the _gi_cairo_functions array to be
 zero filled


00git_textiter_crash.patch | (download)

gi/overrides/Gtk.py | 10 8 + 2 - 0 !
1 file changed, 8 insertions(+), 2 deletions(-)

 [patch 4/4] fix crash in gtk.textiter overrides

With commit 17cd0fb3 Gtk.TextIter.{forward,backward}_search() returns undefined
pointers when the search was unsuccessful. Actually check the "success" return
value; if it is False return None, just like PyGTK used to.

Thanks to Michael Vogt for discovering this and writing the test case!

Test case:


00git_test_case_hang.patch | (download)

tests/test_gdbus.py | 6 4 + 2 - 0 !
1 file changed, 4 insertions(+), 2 deletions(-)

 [patch] gdbus tests: fix hang if test case fails

In the TestGDBusClient.test_native_calls_async() test case, the main loop was
never quit when the call failed.

00git_gio_test.patch | (download)

tests/test_properties.py | 38 19 + 19 - 0 !
1 file changed, 19 insertions(+), 19 deletions(-)

 [patch 4/4] [gi] port test_properties from static gio to gi gio

As we ripped out the static gio bindings a while ago, this test case was using
the system installed gio bindings with Python 2, and now fails completely with
Python 3. Rewrite it to use gi.repository.Gio.

00git_messagebox_type.patch | (download)

gi/overrides/Gtk.py | 10 8 + 2 - 0 !
1 file changed, 8 insertions(+), 2 deletions(-)

 [patch 1/4] [gi-overrides] fix messagebox so it correctly handles
 the type constructor param


00git_python3_build.patch | (download)

gi/pygi-foreign-cairo.c | 7 6 + 1 - 0 !
1 file changed, 6 insertions(+), 1 deletion(-)

 [patch 3/4] [python3] fix build. pycairo_import doesn't exists
 anymore


00git_python3 maketrans.patch | (download)

gi/module.py | 8 6 + 2 - 0 !
1 file changed, 6 insertions(+), 2 deletions(-)

 [patch 2/4] [python3] fix maketrans import

Python3 moved the maketrans() function from the string module to a str method.
This unbreaks gi/module.py for Python 3 again.

00git_fix_qdata_warning.patch | (download)

gobject/pygobject.c | 4 3 + 1 - 0 !
1 file changed, 3 insertions(+), 1 deletion(-)

 [patch 1/2] fix set_qdata warning on accessing null gobject property

https://bugzilla.gnome.org/show_bug.cgi?id=661155

00git_gio_flag_type.patch | (download)

gio/gio-types.defs | 6 3 + 3 - 0 !
1 file changed, 3 insertions(+), 3 deletions(-)

 gio-types.defs: change some enums to flags

These flags types were originally incorrectly handled in glib as being
enums.  That bug was fixed, but they're still enums here, leading to
warnings about the mismatch.

Change them to flags.

https://bugzilla.gnome.org/show_bug.cgi?id=668522

20_deprecated_spam.patch | (download)

gobject/pygobject.c | 3 0 + 3 - 0 !
1 file changed, 3 deletions(-)

---