| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
To process more positions and draw better curves.
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|