On Sat, Sep 6, 2008 at 3:55 PM, Andrés Ambrois <[EMAIL PROTECTED]>wrote:

>    This is solved by not overriding border_color in CanvasRoundBox when
> one is provided. I believe the attached patch fixes this bug.
>
>    Ha! Just testing your attention :P.

  Ok, this really fixes it for me :) I apologize.
diff --git a/src/sugar/graphics/roundbox.py b/src/sugar/graphics/roundbox.py
index 573344e..65ebb1d 100644
--- a/src/sugar/graphics/roundbox.py
+++ b/src/sugar/graphics/roundbox.py
@@ -26,8 +26,8 @@ class CanvasRoundBox(hippo.CanvasBox, hippo.CanvasItem):
 
     _BORDER_DEFAULT = style.LINE_WIDTH
 
-    def __init__(self, **kwargs):
-        hippo.CanvasBox.__init__(self, **kwargs)
+    def __init__(self, border_color=style.COLOR_BLACK.get_int(), **kwargs):
+        hippo.CanvasBox.__init__(self, border_color=border_color,**kwargs)
 
         # TODO: we should calculate radius depending on the height of the box.
         self._radius = style.zoom(10)
@@ -36,7 +36,6 @@ class CanvasRoundBox(hippo.CanvasBox, hippo.CanvasItem):
         self.props.border = self._BORDER_DEFAULT
         self.props.border_left = self._radius
         self.props.border_right = self._radius
-        self.props.border_color = style.COLOR_BLACK.get_int()
             
     def do_paint_background(self, cr, damaged_box):
         [width, height] = self.get_allocation()
_______________________________________________
Sugar mailing list
[email protected]
http://lists.laptop.org/listinfo/sugar

Reply via email to