Fix aligment of menu icons

This commit is contained in:
Marco Pesenti Gritti 2007-03-05 12:29:52 +01:00
parent 52ca451a05
commit 5ae521be77

View File

@ -42,11 +42,11 @@ class MenuItem(hippo.CanvasBox):
self._action_id = action_id
self.props.padding = 5
self.props.spacing = 5
if icon_name:
icon = CanvasIcon(icon_name=icon_name,
scale=units.SMALL_ICON_SCALE)
scale=units.SMALL_ICON_SCALE,
box_width=units.microgrid_to_pixels(3))
if icon_color:
icon.props.xo_color = icon_color
self.append(icon)