From 5cc2615a37ebd621954d386639ae261165bc09ef Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sat, 15 Jan 2011 11:52:43 -0500 Subject: 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() --- widgets/misc/e-canvas.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'widgets/misc') 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 */ -- cgit