[sugar] [PATCH] Bug #3742 CanvasRoundBox ignores border_color

Andrés Ambrois andresambrois at gmail.com
Sat Sep 6 14:55:39 EDT 2008


  I've come across this bug while cleaning up HippoCanvas usage from the
Chat activity code I'm using for the embeddable chat. This bug causes
CanvasRoundBox to ignore the border_color parameter passed to its
constructor and set it always to COLOR_BLACK.

  From http://dev.laptop.org/ticket/3742

Replying to morgs <http://dev.laptop.org/ticket/3742>:

       | Passing border_color to init doesn't work as it is overridden to
COLOR_BLACK, so I have to set it separately

  This is solved by not overriding border_color in CanvasRoundBox when one
is provided. I believe the attached patch fixes this bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.laptop.org/pipermail/sugar/attachments/20080906/99522352/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: roundbox-border-color.patch
Type: text/x-diff
Size: 1016 bytes
Desc: not available
Url : http://lists.laptop.org/pipermail/sugar/attachments/20080906/99522352/attachment.patch 


More information about the Sugar mailing list