Reduce motion are for treeview palettes to the bin window
This commit is contained in:
parent
ecea76479b
commit
985edb0e4d
@ -1057,7 +1057,8 @@ class CellRendererIcon(gtk.GenericCellRenderer):
|
|||||||
|
|
||||||
return False
|
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,
|
has_prelit_colors = None not in [self._prelit_fill_color,
|
||||||
self._prelit_stroke_color]
|
self._prelit_stroke_color]
|
||||||
if flags & gtk.CELL_RENDERER_PRELIT and has_prelit_colors and \
|
if flags & gtk.CELL_RENDERER_PRELIT and has_prelit_colors and \
|
||||||
|
@ -1197,6 +1197,8 @@ class CellRendererInvoker(Invoker):
|
|||||||
return gtk.gdk.Rectangle(x, y, width, height)
|
return gtk.gdk.Rectangle(x, y, width, height)
|
||||||
|
|
||||||
def __motion_notify_event_cb(self, widget, event):
|
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):
|
if self._point_in_cell_renderer(event.x, event.y):
|
||||||
|
|
||||||
tree_view = self._tree_view
|
tree_view = self._tree_view
|
||||||
|
Loading…
Reference in New Issue
Block a user