diff options
author | Bruno Coudoin <bcoudoin@src.gnome.org> | 2007-09-26 23:04:39 (GMT) |
---|---|---|
committer | Bruno Coudoin <bcoudoin@src.gnome.org> | 2007-09-26 23:04:39 (GMT) |
commit | 3f857b1720070afd50e62d3fa6a20040b370cd14 (patch) | |
tree | ad57fb3914008cd448ab662553075c14c71f28a2 /src/libgnomecanvas | |
parent | dde4910f55e3a7817815c15365af860c7b3ba7c4 (diff) |
Major little change. Now all the images get the focus went the mouse enter it's bounding
box and not when it's on a non transparent area.
It's sometimes hard to click on images when they have transparent area in them.
Please make a test to check there are no side effects to this change.
svn path=/trunk/; revision=3048
Diffstat (limited to 'src/libgnomecanvas')
-rw-r--r-- | src/libgnomecanvas/gnome-canvas-pixbuf.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/libgnomecanvas/gnome-canvas-pixbuf.c b/src/libgnomecanvas/gnome-canvas-pixbuf.c index 585184c..e16e9e5 100644 --- a/src/libgnomecanvas/gnome-canvas-pixbuf.c +++ b/src/libgnomecanvas/gnome-canvas-pixbuf.c @@ -1000,7 +1000,6 @@ gnome_canvas_pixbuf_point (GnomeCanvasItem *item, double x, double y, int cx, in ArtPoint c, p; int px, py; double no_hit; - guchar *src; GdkPixbuf *pixbuf; gcp = GNOME_CANVAS_PIXBUF (item); @@ -1031,14 +1030,7 @@ gnome_canvas_pixbuf_point (GnomeCanvasItem *item, double x, double y, int cx, in if (!gdk_pixbuf_get_has_alpha (pixbuf)) return 0.0; - src = gdk_pixbuf_get_pixels (pixbuf) + - py * gdk_pixbuf_get_rowstride (pixbuf) + - px * gdk_pixbuf_get_n_channels (pixbuf); - - if (src[3] < 128) - return no_hit; - else - return 0.0; + return 0.0; } |