intel / dleyna-control

dLeyna-control is a Digital Media Player written in python to demonstrate how to use the dleyna DMS APIs. It detects Digital Media Servers on the local area network and allows users to browse, search and play their contents.
https://01.org/dleyna/
GNU Lesser General Public License v2.1
8 stars 12 forks source link

[GenericModel] Workaround a bug in python-gi 3.8 #37

Closed jku closed 11 years ago

jku commented 11 years ago

Recent python GI wrappers have a bug where Gtk.TreeIter.userdata cannot hold value 0 (it will become None). Workaround by setting 'value+1' and getting 'value-1'.

See https://bugzilla.gnome.org/show_bug.cgi?id=698366 for the python-gi bug.

Fixes #36.

Signed-off-by: Jussi Kukkonen jussi.kukkonen@intel.com

markdryan commented 11 years ago

Okay, so by the sounds of things the error is not related to this patch, so I can go ahead and apply it now. Is this correct?

jku commented 11 years ago

@markdryan as far as I can see it's unrelated -- but it's possible that it just shows up on 3.8.