aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-01-16 00:52:43 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-01-16 01:11:31 +0800
commitd1b440a268b6f43f86114df12b543f7e7c6d6588 (patch)
tree8717cb7ffa86737f3344917062bacdc746e570bd /widgets/misc
parenta4d8c30310cfcd95a54153930336ff8196adde76 (diff)
downloadgsoc2013-evolution-d1b440a268b6f43f86114df12b543f7e7c6d6588.tar.gz
gsoc2013-evolution-d1b440a268b6f43f86114df12b543f7e7c6d6588.tar.zst
gsoc2013-evolution-d1b440a268b6f43f86114df12b543f7e7c6d6588.zip
Remove some unused gnome-canvas options.
Simplifies the drawing code a bit. Public API removed: GnomeCanvas.center_scroll_region (is always TRUE) GnomeCanvas.pixels_per_unit (is always 1.0) gnome_canvas_set_center_scroll_region() gnome_canvas_get_center_scroll_region() gnome_canvas_set_pixels_per_unit()
Diffstat (limited to 'widgets/misc')
-rw-r--r--widgets/misc/e-canvas.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/widgets/misc/e-canvas.c b/widgets/misc/e-canvas.c
index 21a7796b15..0c239b1a0c 100644
--- a/widgets/misc/e-canvas.c
+++ b/widgets/misc/e-canvas.c
@@ -272,8 +272,8 @@ pick_current_item (GnomeCanvas *canvas, GdkEvent *event)
/* world coords */
- x = canvas->scroll_x1 + x / canvas->pixels_per_unit;
- y = canvas->scroll_y1 + y / canvas->pixels_per_unit;
+ x = canvas->scroll_x1 + x;
+ y = canvas->scroll_y1 + y;
/* find the closest item */