Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Area.py
Commit message (Collapse)AuthorAgeFilesLines
* 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
*