Reduce motion are for treeview palettes to the bin window

This commit is contained in:
Tomeu Vizoso 2009-06-27 16:06:13 +02:00
parent ecea76479b
commit 985edb0e4d
2 changed files with 4 additions and 1 deletions

View File

@ -1057,7 +1057,8 @@ class CellRendererIcon(gtk.GenericCellRenderer):
return False
def on_render(self, window, widget, background_area, cell_area, expose_area, flags):
def on_render(self, window, widget, background_area, cell_area, expose_area,
flags):
has_prelit_colors = None not in [self._prelit_fill_color,
self._prelit_stroke_color]
if flags & gtk.CELL_RENDERER_PRELIT and has_prelit_colors and \

View File

@ -1197,6 +1197,8 @@ class CellRendererInvoker(Invoker):
return gtk.gdk.Rectangle(x, y, width, height)
def __motion_notify_event_cb(self, widget, event):
if event.window != widget.get_bin_window():
return
if self._point_in_cell_renderer(event.x, event.y):
tree_view = self._tree_view