[Sugar-devel] Patch: use standard cursors in Paint
quozl at laptop.org
Mon May 31 06:59:18 EDT 2010
On Mon, May 31, 2010 at 01:07:35AM -0300, Gonzalo Odiard wrote:
> This patch change:
> * Show the shape and the size with the pencil, brush, eraser and rainbow.
> * Center this tools at the cursor coordinates
> I think it's more usable than before.
> My idea is enable the change of the size of the selected tool from the unused
> keys whith the circles in the XO.
Yes, it is more usable.
Tested fine on XO-1.5 os125 with Sugar 0.84.16.
Tested-by: James Cameron <quozl at laptop.org>
The patch introduced whitespace errors.
$ git am /tmp/0001-fix-OLPC-296.patch
Applying: fix OLPC #296
/home/james/olpc/paint.git/.git/rebase-apply/patch:26: trailing whitespace.
/home/james/olpc/paint.git/.git/rebase-apply/patch:30: trailing whitespace.
/home/james/olpc/paint.git/.git/rebase-apply/patch:180: trailing whitespace.
points = [(last - size/2,last - size/2), (coords - size/2, coords - size/2),
/home/james/olpc/paint.git/.git/rebase-apply/patch:183: trailing whitespace.
points = [(last + size/2,last - size/2), (coords + size/2, coords - size/2),
warning: 4 lines add whitespace errors.
> There are other bugs related like OLPC #8864 and OLPC #2154
> Sorry, the comment say OLC 296, but its Sugarlabs #296
You should mention the bugs in the patch itself.
There are many ways to make the patch again. If you need to do it, and
it was the most recent patch you made, then use "git commit --amend" ...
otherwise, if you have made other patches since, one way to do it is to:
1. "git checkout HASH" where hash is the patch to be fixed,
2. "git reset HEAD^" to undo this last commit without changing the
working copy, then
3. "git add" and "git commit" again.
More information about the Sugar-devel