Bug#702504: python-gi: none

debbug at gmx.com debbug at gmx.com
Thu Mar 7 14:27:12 UTC 2013


Package: python-gi
Version: 3.2.2-2
Severity: normal

Dear Maintainer,

The user_data property of the TreeIter is always set to None, when returning it from the do_get_iter function. Here a minimal example:

from gi.repository import Gtk, GObject 

class Model(GObject.Object, Gtk.TreeModel):
    def do_get_iter(self, path):
        it = Gtk.TreeIter()
        it.user_data = 23
        return (True, it)
    def do_get_value(self, it, column):
        return it.user_data

m = Model()
it = m.get_iter_first()
it.user_data  # returns None
m.get_value(it, 0)  # returns None

Bug seems to be known and fixed in newer versions, see also: http://old.nabble.com/Problem-understanding-how-to-port-GenericTreeModel-to-gi-td34846802.html


-- System Information:
Debian Release: 7.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-gi depends on:
ii  gir1.2-glib-2.0        1.32.1-1
ii  libc6                  2.13-38
ii  libffi5                3.0.10-3
ii  libgirepository-1.0-1  1.32.1-1
ii  libglib2.0-0           2.33.12+really2.32.4-5
ii  python                 2.7.3-4

python-gi recommends no packages.

Versions of packages python-gi suggests:
ii  python-gi-cairo  3.2.2-2

-- no debconf information




More information about the pkg-gnome-maintainers mailing list