Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Area.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix bucket color - SL #4622Gonzalo Odiard2013-12-201-5/+8
| | | | | | | | Divide and multiply the color numbers to use them in the different formats needed produce rounding errors and change the color. Store the bucket colors as integer in a separated property. Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Fix the operation of end a selectionGonzalo Odiard2013-12-201-4/+8
| | | | | | | Now, when a tool is selected, and a selection is active, the selection finish. Also the canvas is updated properly. Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Fix invert colors tool - SL #3618 & SL #4674Gonzalo Odiard2013-12-191-5/+6
| | | | Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Let the user to paste text SL#4559Agustin Zubiaga2013-11-191-1/+11
| | | | | Signed-off-by: Agustin Zubiaga <aguz@sugarlabs.org> Reviewed-by: Gonzalo Odiard <gonzalo@laptop.org>
* Pyflakes fixesGonzalo Odiard2013-09-021-2/+1
| | | | Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Pep8 fixesGonzalo Odiard2013-09-021-95/+99
|
* Save and restore tools state in the metadata - SL #2708Gonzalo Odiard2013-09-021-1/+2
| | | | | Signed-off-by: Puneet Kaur <puneet.gkaur@gmail.com> Acked-by: Gonzalo Odiard <gonzalo@laptop.org>
* Fix rotation of selections with a part out of the canvas - SL #4519Gonzalo Odiard2013-05-301-1/+2
| | | | | | | Instead of recreate the selection surface, we should use the surfaces already used to do the rotation. Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Use GdkPixbuf to open files - SL #4418Gonzalo Odiard2013-03-061-2/+7
| | | | | | | | | | | | | Instead of use a cairo.ImageSurface, use a GdkPixbuf to load files and paint it over the ImageSurface. In this way we can open more file types than png, like in previous Paint versions. This solves opening a clipboard object, like in the ticket SL #4418 Also the cairo developers said the ImageSurface.create_from_png method is not designed to use in production but only to help in testing. This patch is a simpler version based in the work of Manuel Kauffman. Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Selection disapear - SL #4375Gonzalo Odiard2013-01-111-0/+13
| | | | | | | | | | If there are a selection already finished, should be painted, when draw the selected area. Redraw can be triggered by events externals to what the user do, like canvas scroll due to open or close subtoolbars, or a window opened over the canvas (ObjectChooser) Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Avoid execute tool_end before the last tool_move - OLPC #12405Gonzalo Odiard2013-01-111-2/+2
| | | | | | | | | | | We are using a timeout in the mousemove events to avoid flood with more events than the application can draw, but this can produce get a move event after the method to finish the draw was executed. As they draw in different canvas, the last part of the draw is lost. This patch add a timeout a little bigger to the toolend call, to avoid this situation. Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Less time in the mousemove timeout - OLPC #12405Gonzalo Odiard2013-01-091-1/+1
| | | | | | To process more positions and draw better curves. Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Fix memory leak in flood_fill method - SL #4334Gonzalo Odiard2012-12-191-0/+2
| | | | | | | | | | Important information about refcounting in python [1] and [2] Te binaries for different architectures need be recompiled. [1] http://docs.python.org/release/2.5.2/api/refcountDetails.html [2] http://edcjones.tripod.com/refcount.html Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Fix pick color math - SL #4333Gonzalo Odiard2012-12-181-3/+10
| | | | | | | | | | | | | | | | The value obtained by read the pick color tool was wrong, because the range is 0 to 255, and we use it between 0 and 65535 A similar problem is described here [1] Aditionally, this patch set the right mouse cursor for the case where the bucket do not fill anything, because the selected color is the same to the color in the point to fill. Previously the clock cursor was not removed, and confused the user. Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org> [1] http://old.nabble.com/-cairo--Getting-wrong-cairo-pixel-color.-td31256086.html
*