6112: use get_indices method on TreePath for "old" Gtk version (e.g, 3.6.1)

svn: r20904
This commit is contained in:
Jérôme Rapinat 2012-12-31 13:41:55 +00:00
parent a2b941140c
commit 62e56c09ac

View File

@ -250,7 +250,7 @@ def update_rows(model, path, iter, user_data):
"""
#path: (8,) iter: <GtkTreeIter at 0xbfa89fa0>
#path: (8, 0) iter: <GtkTreeIter at 0xbfa89f60>
if len(path) == 2:
if len(path.get_indices()) == 2:
row = model[path]
row[0] = user_data
model.row_changed(path, iter)