No subject
Mon Mar 15 02:42:15 EDT 2010
x #813 problem with clipboard , OLPC #9022 also<br>
<br>This resolves pasting of a image from Browse to Paint or inside Paint<b=
r>Not resolves draging one image from the frame to Paint<br>---<br>=A0Area.=
py |=A0=A0=A0 6 ++++++<br>=A01 files changed, 6 insertions(+), 0 deletions(=
-)<br>
<br>diff --git a/Area.py b/Area.py<br>index 7b921b8..8340d50 100644<br>--- =
a/Area.py<br>+++ b/Area.py<br>@@ -69,6 +69,7 @@ import math<br>=A0import pa=
ngo<br>=A0from fill import *<br>=A0from Desenho import Desenho<br>+from url=
parse import urlparse<br>
=A0<br>=A0##Tools and events manipulation are handle with this class.<br>=
=A0class Area(gtk.DrawingArea):<br>@@ -741,6 +742,11 @@ class Area(gtk.Draw=
ingArea):<br>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 self.tool['name']=
=3D 'marquee-rectangular'<br>
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 self.window.set_cursor(gtk.gdk.Cursor(=
gtk.gdk.FLEUR)) <br>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 self.emit('sel=
ect')<br>+=A0=A0=A0=A0=A0=A0=A0 elif clipBoard.wait_is_uris_available()=
:<br>+=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 selection =3D clipBoard.wait_for_co=
ntents('text/uri-list') <br>
+=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 if selection !=3D None:<br>+=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 for uri in selection.get_uris():<br>+=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 self.loadImage(urlpa=
rse(uri).path, self)<br>=A0=A0=A0=A0=A0=A0=A0=A0 else:<br>=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0 self.loadImage(tempPath, self)<br>
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 logging.debug('Area.past(self): Lo=
ad from clipboard fails, loading from tempPatch')<br>-- <br>1.6.6.1<br>=
<br clear=3D"all"><br>
--000e0cd4cfda2f94760488dbdbca--
More information about the Sugar-devel
mailing list