Hi Jérôme,

Check boxes still don't look entirely correct on Ubuntu 7.10 under
VirtualBox. Do you see this as well?

Thanks, Frank



2009/5/13  <[email protected]>:
> Revision: 1937
>          http://taskcoach.svn.sourceforge.net/taskcoach/?rev=1937&view=rev
> Author:   fraca7
> Date:     2009-05-13 08:42:32 +0000 (Wed, 13 May 2009)
>
> Log Message:
> -----------
> Fix drawing of checkboxes for Linux
>
> Modified Paths:
> --------------
>    branches/Release0_72_Branch/changes.in/changes.py
>    branches/Release0_72_Branch/taskcoachlib/thirdparty/customtreectrl.py
>
> Modified: branches/Release0_72_Branch/changes.in/changes.py
> ===================================================================
> --- branches/Release0_72_Branch/changes.in/changes.py   2009-05-12 21:11:55 
> UTC (rev 1936)
> +++ branches/Release0_72_Branch/changes.in/changes.py   2009-05-13 08:42:32 
> UTC (rev 1937)
> @@ -31,7 +31,8 @@
>         Bug('''Work around a bug in wxPython 2.8.9.2 on Mac OS X that 
> prevented
>  dialogs to be opened for items that have a color set.''', '2789977'),
>         Bug('''Draw check boxes instead of black squares in the category 
> viewer
> -on Windows XP and Vista with the classic theme.''', )
> +on Windows XP and Vista with the classic theme.'''),
> +        Bug('''The background of checkboxes were corrupted under Linux.'''),
>         ]
>  ),
>
>
> Modified: 
> branches/Release0_72_Branch/taskcoachlib/thirdparty/customtreectrl.py
> ===================================================================
> --- branches/Release0_72_Branch/taskcoachlib/thirdparty/customtreectrl.py     
>   2009-05-12 21:11:55 UTC (rev 1936)
> +++ branches/Release0_72_Branch/taskcoachlib/thirdparty/customtreectrl.py     
>   2009-05-13 08:42:32 UTC (rev 1937)
> @@ -1930,7 +1930,7 @@
>         """
>         bmp = wx.EmptyBitmap(x, y)
>         mdc = wx.MemoryDC(bmp)
> -        dc = wx.GCDC(mdc)
> +        mdc.Clear()
>         render = wx.RendererNative.Get()
>
>         if checked:
> @@ -1942,9 +1942,9 @@
>             flag |= wx.CONTROL_DISABLED
>
>         if checkbox:
> -            render.DrawCheckBox(self, dc, (0, 0, x, y), flag)
> +            render.DrawCheckBox(self, mdc, (0, 0, x, y), flag)
>         else:
> -            render.DrawRadioButton(self, dc, (0, 0, x, y), flag)
> +            render.DrawRadioButton(self, mdc, (0, 0, x, y), flag)
>
>         mdc.SelectObject(wx.NullBitmap)
>         return bmp
>
>
> This was sent by the SourceForge.net collaborative development platform, the 
> world's largest Open Source development site.
>
> ------------------------------------------------------------------------------
> The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
> production scanning environment may not be a perfect world - but thanks to
> Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
> Series Scanner you'll get full speed at 300 dpi even with all image
> processing features enabled. http://p.sf.net/sfu/kodak-com
> _______________________________________________
> Taskcoach-commits mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/taskcoach-commits
>

<<attachment: Knipsel.PNG>>

Reply via email to