Cannot reorder a custom treemodel, no rows_reordered function svn: r20425
This commit is contained in:
parent
9f836a7ee9
commit
2e1b94b0d1
@ -619,7 +619,11 @@ class ListView(NavigationView):
|
||||
filter_info = (False, value, value[0] in self.exact_search())
|
||||
|
||||
if same_col:
|
||||
##TODO GTK3 rows_reordered not exposed by gi, we need to reconnect
|
||||
## model to obtain desired effect, but this collapses nodes ...
|
||||
self.list.set_model(None)
|
||||
self.model.reverse_order()
|
||||
self.list.set_model(self.model)
|
||||
else:
|
||||
self.model = self.make_model(self.dbstate.db, self.sort_col,
|
||||
self.sort_order,
|
||||
|
@ -717,7 +717,8 @@ class TreeBaseModel(GObject.Object, Gtk.TreeModel):
|
||||
else:
|
||||
iternode = self.get_iter(node)
|
||||
path = self.do_get_path(iternode)
|
||||
self.rows_reordered(path, iter, rows)
|
||||
##TODO GTK3: rows_reordered is not exposed in gi
|
||||
#self.rows_reordered(path, iter, rows)
|
||||
if self.nrgroups > 1:
|
||||
for child in node.children:
|
||||
self._reverse_level(self.nodemap.node(child[1]))
|
||||
|
Loading…
Reference in New Issue
Block a user