Emit a row_changed signal to redraw the CellRendererIcon on prelight.

This fixes a problem where the wrong part of the treeview was redrawn.
This commit is contained in:
Benjamin Berg 2009-06-14 14:08:52 +02:00
parent 13afd91bad
commit 4bb221349c

View File

@ -1220,12 +1220,9 @@ class CellRendererInvoker(Invoker):
self.notify_mouse_leave()
def _redraw_path(self, path):
for column in self._tree_view.get_columns():
if self._cell_renderer in column.get_cell_renderers():
break
area = self._tree_view.get_background_area(path, column)
x, y = self._tree_view.convert_tree_to_widget_coords(area.x, area.y)
self._tree_view.queue_draw_area(x, y, area.width, area.height)
model = self._tree_view.get_model()
iter = model.get_iter(path)
model.row_changed(path, iter)
def __leave_notify_event_cb(self, widget, event):
self.notify_mouse_leave()