Revert "MouseMap: draw paths only if there is a child widget"

This reverts commit 295d298f6e.
This commit is contained in:
Peter Hutterer
2017-07-27 21:24:10 +10:00
committed by GitHub
parent f73c3ad35b
commit d67c98fc3c

View File

@@ -39,7 +39,6 @@ class _MouseMapChild:
self._is_left = is_left
self._svg_id = svg_id
self._svg_leader = svg_id + "-leader"
self._svg_path = svg_id + "-path"
@property
def widget(self):
@@ -58,12 +57,6 @@ class _MouseMapChild:
# widget is paired.
return self._svg_leader
@property
def svg_path(self):
# The identifier of the SVG element's path with which this child's
# widget is paired.
return self._svg_path
@property
def is_left(self):
# True iff this child's widget is allocated to the left of the SVG.
@@ -398,6 +391,4 @@ class MouseMap(Gtk.Container):
self._handle.render_cairo_sub(highlight_context,
self._highlight_element)
cr.mask_surface(highlight_surface, 0, 0)
for child in self._children:
self._handle.render_cairo_sub(cr, id=child.svg_path)
self._handle.render_cairo_sub(cr, id=child.svg_leader)
self._handle.render_cairo_sub(cr, id=self._layer)