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:
parent
13afd91bad
commit
4bb221349c
@ -1220,12 +1220,9 @@ class CellRendererInvoker(Invoker):
|
|||||||
self.notify_mouse_leave()
|
self.notify_mouse_leave()
|
||||||
|
|
||||||
def _redraw_path(self, path):
|
def _redraw_path(self, path):
|
||||||
for column in self._tree_view.get_columns():
|
model = self._tree_view.get_model()
|
||||||
if self._cell_renderer in column.get_cell_renderers():
|
iter = model.get_iter(path)
|
||||||
break
|
model.row_changed(path, iter)
|
||||||
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)
|
|
||||||
|
|
||||||
def __leave_notify_event_cb(self, widget, event):
|
def __leave_notify_event_cb(self, widget, event):
|
||||||
self.notify_mouse_leave()
|
self.notify_mouse_leave()
|
||||||
|
Loading…
Reference in New Issue
Block a user