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

svn: r20903
This commit is contained in:
Jérôme Rapinat 2012-12-31 13:39:32 +00:00
parent c18d73ea8f
commit 04baa6b50f

View File

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