[Sugar-devel] [PATCH v2 PaintActivity] Paint - Rect. Marquee icon changes erratically(olpc #5882)

anubhav at seeta.in anubhav at seeta.in
Wed Oct 20 15:55:51 EDT 2010


From: Anubhav Aggarwal <anubhav at seeta.in>

Earlier the cursor shown on selcting using rectangular marquee, was either a
rectangle with a dashed border or a cross-hairs.Now a else if condition has
been added

v1 -> v2.  the condition has been modified and replaced  as suggested
---
 Area.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/Area.py b/Area.py
index 2dca7da..b01b7ba 100644
--- a/Area.py
+++ b/Area.py
@@ -1127,6 +1127,8 @@ class Area(gtk.DrawingArea):
             if self.tool['name'] in cursors:
                 name = cursors[self.tool['name']]
                 cursor = gtk.gdk.cursor_new_from_name(display, name)
+            elif tool['name'] == 'marquee-rectangular':
+                cursor = gtk.gdk.Cursor(gtk.gdk.TCROSS)
             else:
                 filename = os.path.join('images', tool['name'] + '.png')
                 pixbuf = gtk.gdk.pixbuf_new_from_file(filename)
-- 
1.7.0.4



More information about the Sugar-devel mailing list