Codebase list mirage / b699ad4
Use Gtk.TreePaths instead of ints Thomas Ross 3 years ago
1 changed file(s) with 9 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
24532453 Gtk.main_iteration()
24542454 # Keep item in visible rect:
24552455 visible_rect = treeview.get_visible_rect()
2456 row_rect = treeview.get_background_area(rownum, self.tvcolumn1)
2456 row_rect = treeview.get_background_area(
2457 Gtk.TreePath(rownum), self.tvcolumn1
2458 )
24572459 if row_rect.y + row_rect.height > visible_rect.height:
24582460 top_coord = (
24592461 row_rect.y + row_rect.height - visible_rect.height
25062508 # Keep item in visible rect:
25072509 rownum = rownum + 1
25082510 visible_rect = treeview.get_visible_rect()
2509 row_rect = treeview.get_background_area(rownum, self.tvcolumn1)
2511 row_rect = treeview.get_background_area(
2512 Gtk.TreePath(rownum), self.tvcolumn1
2513 )
25102514 if row_rect.y + row_rect.height > visible_rect.height:
25112515 top_coord = (
25122516 row_rect.y + row_rect.height - visible_rect.height
25462550 # Keep item in visible rect:
25472551 rownum = rownum - 1
25482552 visible_rect = treeview.get_visible_rect()
2549 row_rect = treeview.get_background_area(rownum, self.tvcolumn1)
2553 row_rect = treeview.get_background_area(
2554 Gtk.TreePath(rownum), self.tvcolumn1
2555 )
25502556 if row_rect.y + row_rect.height > visible_rect.height:
25512557 top_coord = (
25522558 row_rect.y + row_rect.height - visible_rect.height