[Expired for pygobject (Ubuntu) because there has been no activity for
60 days.]
** Changed in: pygobject (Ubuntu)
Status: Incomplete => Expired
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to pygobject in Ubuntu.
https://bugs.launchpad.net/bugs/986343
Title:
liststore cannot use custom function for sorting
Status in “pygobject” package in Ubuntu:
Expired
Bug description:
This code crashes in python3.2 but works perfectly in python2
def compare(model, row1, row2, user_data):
sort_column, dummy = model.get_sort_column_id()
value1 = model.get_value(row1, sort_column)
value2 = model.get_value(row2, sort_column)
return -1
if value1 < value2:
return -1
elif value1 == value2:
return -1
else:
return -1
model = Gtk.ListStore(str, str)
model.set_sort_func(1, compare, 'ddod')
model.set_sort_column_id(1, Gtk.SortType.ASCENDING)
model.append(['20', 'Newton'])
model.append(['20', 'Einstein'])
model.append(['20', 'Tesla'])
model.append(['25', 'Shuttleworth'])
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: python3-gi 3.2.0-3
ProcVersionSignature: Ubuntu 3.2.0-23.36-generic 3.2.14
Uname: Linux 3.2.0-23-generic x86_64
ApportVersion: 2.0.1-0ubuntu5
Architecture: amd64
Date: Fri Apr 20 19:54:01 2012
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Beta amd64 (20120328)
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
LANG=sk_SK.UTF-8
SHELL=/bin/bash
SourcePackage: pygobject
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pygobject/+bug/986343/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp