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

Gonzalo Odiard godiard at gmail.com
Wed Oct 20 17:12:33 EDT 2010


Congratulations, Commited !

Gonzalo

On Wed, Oct 20, 2010 at 4:55 PM, <anubhav at seeta.in> wrote:

> 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
>
>


-- 
Gonzalo Odiard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20101020/6b065a2d/attachment.html>


More information about the Sugar-devel mailing list