+commit ab0ee3c606b89a0db03f34256efbebae3c1886a0
+Author: Martin Pitt <martin.pitt@ubuntu.com>
+Date: Thu Mar 22 10:58:04 2012 +0100
+
+ Release 3.1.93
+
+ NEWS | 8 ++++++++
+ 1 files changed, 8 insertions(+), 0 deletions(-)
+
+commit a43992fc3ecdcdd28024980bd9e98e5d21ede37f
+Author: Martin Pitt <martin.pitt@ubuntu.com>
+Date: Wed Mar 21 15:21:02 2012 +0100
+
+ pygtkcompat test: Properly clean up PixbufLoader
+
+ Tests currently give
+
+ (runtests.py:15072): GdkPixbuf-WARNING **: GdkPixbufLoader finalized
+ without calling gdk_pixbuf_loader_close() - this is not allowed. You
+ must explicitly end the data stream to the loader before dropping
+ the last reference.
+
+ Fix this by calling close().
+
+ tests/test_pygtkcompat.py | 3 ++-
+ 1 files changed, 2 insertions(+), 1 deletions(-)
+
+commit df44fdd3f8bcb285dc6abfe7b32ee816077f95eb
+Author: Martin Pitt <martin.pitt@ubuntu.com>
+Date: Thu Mar 22 09:58:21 2012 +0100
+
+ test_overrides: Find local gsettings schema with current glib
+
+ With current glib, gsettings now fails to find the gschemas.compiled
+ during the
+ tests. Move the setting of $GSETTINGS_SCHEMA_DIR before the module
+ import,
+ which makes this work again.
+
+ tests/test_overrides.py | 9 +++++----
+ 1 files changed, 5 insertions(+), 4 deletions(-)
+
+commit d931b26ac1ee8a36c5daef933720982a3f31c116
+Author: Alberto Mardegan <alberto.mardegan@canonical.com>
+Date: Tue Mar 20 14:55:07 2012 +0400
+
+ Support marshalling GI_TYPE_TAG_INTERFACE
+
+ Marshalling of interfaces got broken with commit
+ 7746d2188ac4933c2c9011d84525d1e62fc18953.
+
+ Also, do not abort on unsupported types, but log a critical failure
+ and
+ continue.
+
+ https://bugzilla.gnome.org/show_bug.cgi?id=668903
+
+ gi/pygi-marshal-from-py.c | 3 ++-
+ gi/pygi-marshal-to-py.c | 3 ++-
+ 2 files changed, 4 insertions(+), 2 deletions(-)
+
+commit 1b3f8b1fde2ba25592eb038341eabf6157f12c25
+Author: Martin Pitt <martin.pitt@ubuntu.com>
+Date: Wed Mar 21 14:34:36 2012 +0100
+
+ Fix warnings on None values in added tree/list store rows
+
+ Commit bf8c95836e1c changed the List/TreeStore overrides to use
+ insert_with_valuesv(), but supplied all columns instead of just
+ those which are
+ not None. With this, None values cause warnings like
+
+ (runtests.py:12375): Gtk-WARNING **:
+ /build/buildd/gtk+3.0-3.3.20/./gtk/gtkliststore.c:851: Unable to
+ convert from (null) to gboolean
+
+ Update the tests to make warnings fatal, to catch this better.
+
+ Change _convert_row() to skip the None entries and return the list
+ of not-None
+ columns, and use the latter instead of a simple range(n_columns). This
+ matches
+ the behaviour before bf8c95836e1c, where columns with None values
+ were skipped
+ as well.
+
+ https://bugzilla.gnome.org/show_bug.cgi?id=672463
+
+ gi/overrides/Gtk.py | 26 ++++++++++++++------------
+ tests/test_overrides.py | 5 +++++
+ 2 files changed, 19 insertions(+), 12 deletions(-)
+
+commit 5e0e5e72a4436badd09f0aa07f62960afcdca8c6
+Author: Martin Pitt <martin.pitt@ubuntu.com>
+Date: Mon Mar 19 16:58:22 2012 +0100
+
+ post-release bump
+
+ Use 3.1.93 for now, this will most likely become 3.2.0 as it is.
+
+ configure.ac | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
commit 88924e399d7ccf7af2e9a78720e0c508cd6080d8
Author: Martin Pitt <martin.pitt@ubuntu.com>
Date: Mon Mar 19 16:41:17 2012 +0100
+3.1.93 22-Mar-2012
+ - Fix warnings on None values in added tree/list store rows.
+ (#672463, Martin Pitt)
+ - Support marshalling GI_TYPE_TAG_INTERFACE (#668903, Alberto Mardegan)
+ - test_overrides: Find local gsettings schema with current glib
+ (Martin Pitt)
+ - pygtkcompat test: Properly clean up PixbufLoader (Martin Pitt)
+
3.1.92 19-Mar-2012
- Correct Gtk.TreePath.__iter__ to work with Python 3 (Johan Dahlin)
- Fix test_everything.TestSignals.test_object_param_signal test case
Metadata-Version: 1.0
Name: PyGObject
-Version: 3.1.92
+Version: 3.1.93
Summary: Python bindings for GObject
Home-page: http://www.pygtk.org/
Author: James Henstridge
Maintainer: Johan Dahlin
Maintainer-email: johan@gnome.org
License: GNU LGPL
-Download-url: ftp://ftp.gnome.org/pub/GNOME/sources/pygobject/3.1/pygobject-3.1.92.tar.gz
+Download-url: ftp://ftp.gnome.org/pub/GNOME/sources/pygobject/3.1/pygobject-3.1.93.tar.gz
Description: Python bindings for GLib and GObject
Platform: POSIX, Windows
Classifier: Development Status :: 5 - Production/Stable
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.68 for pygobject 3.1.92.
+# Generated by GNU Autoconf 2.68 for pygobject 3.1.93.
#
# Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=pygobject>.
#
# Identity of this package.
PACKAGE_NAME='pygobject'
PACKAGE_TARNAME='pygobject'
-PACKAGE_VERSION='3.1.92'
-PACKAGE_STRING='pygobject 3.1.92'
+PACKAGE_VERSION='3.1.93'
+PACKAGE_STRING='pygobject 3.1.93'
PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=pygobject'
PACKAGE_URL=''
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures pygobject 3.1.92 to adapt to many kinds of systems.
+\`configure' configures pygobject 3.1.93 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of pygobject 3.1.92:";;
+ short | recursive ) echo "Configuration of pygobject 3.1.93:";;
esac
cat <<\_ACEOF
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-pygobject configure 3.1.92
+pygobject configure 3.1.93
generated by GNU Autoconf 2.68
Copyright (C) 2010 Free Software Foundation, Inc.
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by pygobject $as_me 3.1.92, which was
+It was created by pygobject $as_me 3.1.93, which was
generated by GNU Autoconf 2.68. Invocation command line was
$ $0 $@
PYGOBJECT_MINOR_VERSION=1
-$as_echo "#define PYGOBJECT_MICRO_VERSION 92" >>confdefs.h
+$as_echo "#define PYGOBJECT_MICRO_VERSION 93" >>confdefs.h
-PYGOBJECT_MICRO_VERSION=92
+PYGOBJECT_MICRO_VERSION=93
ac_config_headers="$ac_config_headers config.h"
# Define the identity of the package.
PACKAGE='pygobject'
- VERSION='3.1.92'
+ VERSION='3.1.93'
cat >>confdefs.h <<_ACEOF
Report bugs to <bug-libtool@gnu.org>."
lt_cl_version="\
-pygobject config.lt 3.1.92
+pygobject config.lt 3.1.93
configured by $0, generated by GNU Autoconf 2.68.
Copyright (C) 2011 Free Software Foundation, Inc.
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by pygobject $as_me 3.1.92, which was
+This file was extended by pygobject $as_me 3.1.93, which was
generated by GNU Autoconf 2.68. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
-pygobject config.status 3.1.92
+pygobject config.status 3.1.93
configured by $0, generated by GNU Autoconf 2.68,
with options \\"\$ac_cs_config\\"
dnl the pygobject version number
m4_define(pygobject_major_version, 3)
m4_define(pygobject_minor_version, 1)
-m4_define(pygobject_micro_version, 92)
+m4_define(pygobject_micro_version, 93)
m4_define(pygobject_version, pygobject_major_version.pygobject_minor_version.pygobject_micro_version)
dnl versions of packages we require ...
raise ValueError('row sequence has the incorrect number of elements')
result = []
- for i in range(n_columns):
- value = row[i]
- result.append(self._convert_value(i, value))
- return result
+ columns = []
+ for cur_col, value in enumerate(row):
+ # do not try to set None values, they are causing warnings
+ if value is None:
+ continue
+ result.append(self._convert_value(cur_col, value))
+ columns.append(cur_col)
+ return (result, columns)
def set_row(self, treeiter, row):
- converted_row = self._convert_row(row)
- for i in range(self.get_n_columns()):
- value = row[i]
+ converted_row, columns = self._convert_row(row)
+ for column in columns:
+ value = row[column]
if value is None:
continue # None means skip this row
- self.set_value(treeiter, i, value)
+ self.set_value(treeiter, column, value)
def _convert_value(self, column, value):
if value is None:
def _do_insert(self, position, row):
if row is not None:
- row = self._convert_row(row)
- columns = range(len(row))
+ row, columns = self._convert_row(row)
treeiter = self.insert_with_valuesv(position, columns, row)
else:
treeiter = Gtk.ListStore.insert(self, position)
def _do_insert(self, parent, position, row):
if row is not None:
- row = self._convert_row(row)
- columns = range(len(row))
+ row, columns = self._convert_row(row)
treeiter = self.insert_with_values(parent, position, columns, row)
else:
treeiter = Gtk.TreeStore.insert(self, parent, position)
return GINT_TO_POINTER(arg->v_int32);
case GI_TYPE_TAG_UTF8:
case GI_TYPE_TAG_FILENAME:
+ case GI_TYPE_TAG_INTERFACE:
return arg->v_pointer;
default:
- g_assert_not_reached();
+ g_critical("Unsupported type %s", g_type_tag_to_string(type_tag));
return arg->v_pointer;
}
}
break;
case GI_TYPE_TAG_UTF8:
case GI_TYPE_TAG_FILENAME:
+ case GI_TYPE_TAG_INTERFACE:
break;
default:
- g_assert_not_reached();
+ g_critical("Unsupported type %s", g_type_tag_to_string(type_tag));
}
}
from compathelper import _long, _unicode, _bytes
+os.environ['GSETTINGS_BACKEND'] = 'memory'
+# support a separate build tree, so look in build dir first
+os.environ['GSETTINGS_SCHEMA_DIR'] = os.environ.get('TESTS_BUILDDIR',
+ os.path.dirname(__file__))
+
from gi.repository import GLib
from gi.repository import GObject
from gi.repository import Gdk
import gi.overrides as overrides
import gi.types
+# in general we don't want tests to raise warnings, except when explicitly
+# testing with bad values; in those cases it will temporarily be set back to
+# ERROR
+GLib.log_set_always_fatal(GLib.LogLevelFlags.LEVEL_WARNING)
+
class TestGLib(unittest.TestCase):
def test_gvariant_create(self):
class TestGio(unittest.TestCase):
def setUp(self):
- os.environ['GSETTINGS_BACKEND'] = 'memory'
- # support a separate build tree, so look in build dir first
- os.environ['GSETTINGS_SCHEMA_DIR'] = os.environ.get('TESTS_BUILDDIR',
- os.path.dirname(__file__))
self.settings = Gio.Settings('org.gnome.test')
# we change the values in the tests, so set them to predictable start
# value
gtk.gdk.Pixbuf()
def testPixbufLoader(self):
- gtk.gdk.PixbufLoader('png')
+ loader = gtk.gdk.PixbufLoader('png')
+ loader.close()
def testGdkWindow(self):
w = gtk.Window()