From d1b440a268b6f43f86114df12b543f7e7c6d6588 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() --- libgnomecanvas/gnome-canvas-text.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'libgnomecanvas/gnome-canvas-text.c') diff --git a/libgnomecanvas/gnome-canvas-text.c b/libgnomecanvas/gnome-canvas-text.c index 870b3272b1..a2dce90d64 100644 --- a/libgnomecanvas/gnome-canvas-text.c +++ b/libgnomecanvas/gnome-canvas-text.c @@ -569,8 +569,8 @@ get_bounds (GnomeCanvasText *text, /* Get canvas pixel coordinates for clip rectangle position */ gnome_canvas_w2c (item->canvas, wx, wy, &text->clip_cx, &text->clip_cy); - text->clip_cwidth = text->clip_width * item->canvas->pixels_per_unit; - text->clip_cheight = text->clip_height * item->canvas->pixels_per_unit; + text->clip_cwidth = text->clip_width; + text->clip_cheight = text->clip_height; /* Bounds */ @@ -1055,11 +1055,11 @@ gnome_canvas_text_get_property (GObject *object, break; case PROP_TEXT_WIDTH: - g_value_set_double (value, text->max_width / text->item.canvas->pixels_per_unit); + g_value_set_double (value, text->max_width); break; case PROP_TEXT_HEIGHT: - g_value_set_double (value, text->height / text->item.canvas->pixels_per_unit); + g_value_set_double (value, text->height); break; default: @@ -1299,8 +1299,8 @@ gnome_canvas_text_bounds (GnomeCanvasItem *item, width = text->clip_width; height = text->clip_height; } else { - width = text->max_width / item->canvas->pixels_per_unit; - height = text->height / item->canvas->pixels_per_unit; + width = text->max_width; + height = text->height; } *x2 = *x1 + width; -- cgit v1.2.3