I thing is better do:<br><br> if self.tool['name'] in cursors:<br> name = cursors[self.tool['name']]<br> cursor = gtk.gdk.cursor_new_from_name(display, name)<br>+ elif tool['name'] == 'marquee-rectangular':<br>
+ cursor = gtk.gdk.Cursor(gtk.gdk.TCROSS)<br> else:<br> filename = os.path.join('images', tool['name'] + '.png')<br> pixbuf = gtk.gdk.pixbuf_new_from_file(filename)<br>
<br>Can you change it and attach the patch in the ticket?<br>Thanks<br><br>Gonzalo<br><br><br><div class="gmail_quote">On Thu, Oct 14, 2010 at 4:26 PM, <span dir="ltr"><<a href="mailto:anubhav@seeta.in">anubhav@seeta.in</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">From: Anubhav Aggarwal <<a href="mailto:anubhav@seeta.in">anubhav@seeta.in</a>><br>
<br>
Earlier the cursor shown on selcting using rectangular marquee, was either a<br>
rectangle with a dashed border or a cross-hairs.Now a if condition has been<br>
added .<br>
---<br>
Area.py | 2 ++<br>
1 files changed, 2 insertions(+), 0 deletions(-)<br>
<br>
diff --git a/Area.py b/Area.py<br>
index 2dca7da..5cbee4c 100644<br>
--- a/Area.py<br>
+++ b/Area.py<br>
@@ -1131,6 +1131,8 @@ class Area(gtk.DrawingArea):<br>
filename = os.path.join('images', tool['name'] + '.png')<br>
pixbuf = gtk.gdk.pixbuf_new_from_file(filename)<br>
cursor = gtk.gdk.Cursor(display, pixbuf, 6, 21)<br>
+ if tool['name'] == 'marquee-rectangular':<br>
+ cursor = gtk.gdk.Cursor(gtk.gdk.TCROSS)<br>
except gobject.GError:<br>
cursor = None<br>
<font color="#888888"><br>
--<br>
1.7.0.4<br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Gonzalo Odiard<br><br><br>