No subject
Gonzalo
Gonzalo
Mon Mar 15 02:42:15 EDT 2010
se standard cursors<br><br>---<br>=A0Area.py |=A0=A0 15 ++++++++++++---<br>=
=A01 files changed, 12 insertions(+), 3 deletions(-)<br>
<br>diff --git a/Area.py b/Area.py<br>index 611f944..44edebb 100644<br>--- =
a/Area.py<br>+++ b/Area.py<br>@@ -1057,11 +1057,20 @@ class Area(gtk.Drawin=
gArea):<br>=A0=A0=A0=A0=A0=A0=A0=A0 <br>=A0=A0=A0=A0=A0=A0=A0=A0 # Setting =
the cursor<br>=A0=A0=A0=A0=A0=A0=A0=A0 try:<br>
-=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 pixbuf =3D gtk.gdk.pixbuf_new_from_file(=
'./images/' + tool['name'] + '.png')<br>-=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0 cursor =3D gtk.gdk.Cursor(gtk.gdk.display_get_defa=
ult() , pixbuf, 6, 21)<br>+=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 if (self.tool[=
'name'] is 'pencil'):<br>
+=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 cursor =3D gtk.gdk.cursor_ne=
w_from_name(gtk.gdk.display_get_default(), 'pencil')<br>+=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0 elif (self.tool['name'] is 'brush'=
):<br>+=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 cursor =3D gtk.gdk.cur=
sor_new_from_name(gtk.gdk.display_get_default(), 'paintbrush')<br>
+=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 elif (self.tool['name'] is '=
eraser'):<br>+=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 cursor =3D =
gtk.gdk.cursor_new_from_name(gtk.gdk.display_get_default(), 'eraser'=
;)<br>+=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 elif (self.tool['name'] is=
'bucket'):<br>
+=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 cursor =3D gtk.gdk.cursor_ne=
w_from_name(gtk.gdk.display_get_default(), 'paint-bucket')<br>+=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 else: <br>+=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0 pixbuf =3D gtk.gdk.pixbuf_new_from_file('./images/' + =
tool['name'] + '.png')<br>
+=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 cursor =3D gtk.gdk.Cursor(gt=
k.gdk.display_get_default() , pixbuf, 6, 21)<br>=A0=A0=A0=A0=A0=A0=A0=A0 ex=
cept gobject.GError:<br>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 cursor =3D Non=
e<br>-=A0=A0=A0=A0=A0=A0=A0 <br>+<br>=A0=A0=A0=A0=A0=A0=A0=A0 self.window.s=
et_cursor(cursor)<br>=A0=A0=A0=A0=A0=A0=A0=A0 <br>
=A0=A0=A0=A0 def getout(self,undo=3DFalse,widget=3DNone):<br>-- <br>1.6.6.1=
<br><br><br>Gonzalo<br>
--000e0cdf0f0290d544048767f366--
--000e0cdf0f0290d55b048767f368
Content-Type: application/octet-stream;
name="0001-use-standard-cursors.patch"
Content-Disposition: attachment; filename="0001-use-standard-cursors.patch"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_g9mjdfey0
RnJvbSAxNGIwM2E3M2JiMDYwM2ZhYmVlYjJlMjY0MGRiZWY3NDE5ZmE1NDljIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBHb256YWxvIE9kaWFyZCA8Z29kaWFyZEBnbWFpbC5jb20+CkRh
dGU6IFR1ZSwgMjUgTWF5IDIwMTAgMDY6MzY6MjYgLTAzMDAKU3ViamVjdDogW1BBVENIXSB1c2Ug
c3RhbmRhcmQgY3Vyc29ycwoKLS0tCiBBcmVhLnB5IHwgICA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RrLmdkay5j
dXJzb3JfbmV3X2Zyb21fbmFtZShndGsuZ2RrLmRpc3BsYXlfZ2V0X2RlZmF1bHQoKSwgJ2VyYXNl
cicpCisgICAgICAgICAgICBlbGlmIChzZWxmLnRvb2xbJ25hbWUnXSBpcyAnYnVja2V0Jyk6Cisg
ICAgICAgICAgICAgICAgY3Vyc29yID0gZ3RrLmdkay5jdXJzb3JfbmV3X2Zyb21fbmFtZShndGsu
Z2RrLmRpc3BsYXlfZ2V0X2RlZmF1bHQoKSwgJ3BhaW50LWJ1Y2tldCcpCisgICAgICAgICAgICBl
bHNlOiAKKyAgICAgICAgICAgICAgICBwaXhidWYgPSBndGsuZ2RrLnBpeGJ1Zl9uZXdfZnJvbV9m
aWxlKCcuL2ltYWdlcy8nICsgdG9vbFsnbmFtZSddICsgJy5wbmcnKQorICAgICAgICAgICAgICAg
IGN1cnNvciA9IGd0ay5nZGsuQ3Vyc29yKGd0ay5nZGsuZGlzcGxheV9nZXRfZGVmYXVsdCgpICwg
cGl4YnVmLCA2LCAyMSkKICAgICAgICAgZXhjZXB0IGdvYmplY3QuR0Vycm9yOgogICAgICAgICAg
ICAgY3Vyc29yID0gTm9uZQotICAgICAgICAKKwogICAgICAgICBzZWxmLndpbmRvdy5zZXRfY3Vy
c29yKGN1cnNvcikKICAgICAgICAgCiAgICAgZGVmIGdldG91dChzZWxmLHVuZG89RmFsc2Usd2lk
Z2V0PU5vbmUpOgotLSAKMS42LjYuMQoK
--000e0cdf0f0290d55b048767f368--
More information about the Sugar-devel
mailing list