Do not emit the row-changed signal, but redraw the row for prelight.

This basically undos commit 4bb221349c
and fixes the code that was there before. Emitting the row-changed
signal causes any editing to be canceled.
This commit is contained in:
Benjamin Berg 2009-09-10 17:34:56 +02:00
parent d57320b985
commit c684950ecf

View File

@ -923,9 +923,13 @@ class CellRendererInvoker(Invoker):
self.notify_mouse_leave() self.notify_mouse_leave()
def _redraw_path(self, path): def _redraw_path(self, path):
model = self._tree_view.get_model() for column in self._tree_view.get_columns():
iterator = model.get_iter(path) if self._cell_renderer in column.get_cell_renderers():
model.row_changed(path, iterator) break
area = self._tree_view.get_background_area(path, column)
x, y = \
self._tree_view.convert_bin_window_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()