CellRendererInvoker: in Gtk.TreeViewColumn get_cell_renderers is now get_cells

Signed-off-by: Simon Schampijer <simon@laptop.org>
Acked-by: Manuel Quiñones <manuq@laptop.org>
This commit is contained in:
Simon Schampijer 2012-09-06 13:15:56 +02:00
parent 1ed4eb8ad5
commit 447cfc2df1

View File

@ -1221,7 +1221,7 @@ class CellRendererInvoker(Invoker):
def _redraw_path(self, path): def _redraw_path(self, path):
column = None column = None
for column in self._tree_view.get_columns(): for column in self._tree_view.get_columns():
if self._cell_renderer in column.get_cell_renderers(): if self._cell_renderer in column.get_cells():
break break
assert column is not None assert column is not None
area = self._tree_view.get_background_area(path, column) area = self._tree_view.get_background_area(path, column)
@ -1255,7 +1255,7 @@ class CellRendererInvoker(Invoker):
path_, column, x, y_ = pos path_, column, x, y_ = pos
for cell_renderer in column.get_cell_renderers(): for cell_renderer in column.get_cells():
if cell_renderer == self._cell_renderer: if cell_renderer == self._cell_renderer:
cell_x, cell_width = column.cell_get_position(cell_renderer) cell_x, cell_width = column.cell_get_position(cell_renderer)
if x > cell_x and x < (cell_x + cell_width): if x > cell_x and x < (cell_x + cell_width):