diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2007-03-05 11:43:32 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <mpg@redhat.com> | 2007-03-05 11:43:32 (GMT) |
commit | 5cc06cb5ebaba91a272b34082de21166809cf742 (patch) | |
tree | afd1f3cd0f36441fb31dca648094e76be6b45f20 /sugar | |
parent | 5ae521be777cec863fcd5e2e838a3e41daa4c7af (diff) |
Tweak optionmenu and entry paddings
Diffstat (limited to 'sugar')
-rw-r--r-- | sugar/graphics/entry.py | 1 | ||||
-rw-r--r-- | sugar/graphics/optionmenu.py | 2 | ||||
-rw-r--r-- | sugar/graphics/roundbox.py | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/sugar/graphics/entry.py b/sugar/graphics/entry.py index 40604bb..ad92d0f 100644 --- a/sugar/graphics/entry.py +++ b/sugar/graphics/entry.py @@ -58,6 +58,7 @@ class Entry(hippo.CanvasBox, hippo.CanvasItem): self._round_box = RoundBox() self._round_box.props.border_color = color.FRAME_BORDER.get_int() + self._round_box.props.padding = units.points_to_pixels(2) self.append(self._round_box, hippo.PACK_EXPAND) self._canvas_widget = hippo.CanvasWidget() diff --git a/sugar/graphics/optionmenu.py b/sugar/graphics/optionmenu.py index 335956e..3ffaf4a 100644 --- a/sugar/graphics/optionmenu.py +++ b/sugar/graphics/optionmenu.py @@ -66,7 +66,7 @@ class OptionMenu(hippo.CanvasBox, hippo.CanvasItem): self._round_box = RoundBox() self._round_box.props.border_color = color.FRAME_BORDER.get_int() self._round_box.props.spacing = units.points_to_pixels(3) - self._round_box.props.padding = units.points_to_pixels(1) + self._round_box.props.padding = units.points_to_pixels(3) self.append(self._round_box, hippo.PACK_EXPAND) self._canvas_text = hippo.CanvasText(text=_('No options'), diff --git a/sugar/graphics/roundbox.py b/sugar/graphics/roundbox.py index 160bccb..f638a44 100644 --- a/sugar/graphics/roundbox.py +++ b/sugar/graphics/roundbox.py @@ -25,7 +25,7 @@ from sugar.graphics import color class RoundBox(hippo.CanvasBox, hippo.CanvasItem): __gtype_name__ = 'SugarRoundBox' - _BORDER_DEFAULT = 2.0 + _BORDER_DEFAULT = units.points_to_pixels(1.0) def __init__(self, **kwargs): hippo.CanvasBox.__init__(self, **kwargs) |