[Dextrose] [PATCH PaintActivity] Paint - Rect. Marquee icon changes erratically(OLPC #5882)

anubhav at seeta.in anubhav at seeta.in
Thu Oct 14 15:26:40 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 if condition has been
added .
---
 Area.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/Area.py b/Area.py
index 2dca7da..5cbee4c 100644
--- a/Area.py
+++ b/Area.py
@@ -1131,6 +1131,8 @@ class Area(gtk.DrawingArea):
                 filename = os.path.join('images', tool['name'] + '.png')
                 pixbuf = gtk.gdk.pixbuf_new_from_file(filename)
                 cursor = gtk.gdk.Cursor(display, pixbuf, 6, 21)
+                if tool['name'] == 'marquee-rectangular':                    
+                    cursor = gtk.gdk.Cursor(gtk.gdk.TCROSS)
         except gobject.GError:
             cursor = None
         
-- 
1.7.0.4



More information about the Dextrose mailing list