diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-01-16 00:52:43 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-06-30 00:41:19 +0800 |
commit | 5cc2615a37ebd621954d386639ae261165bc09ef (patch) | |
tree | cf65b6a0c2321768a652c134964a594d57ef8399 /libgnomecanvas/gnome-canvas-text.c | |
parent | 855ac5276542db2a3b236113dad6af7bc6af8d3c (diff) | |
download | gsoc2013-evolution-5cc2615a37ebd621954d386639ae261165bc09ef.tar gsoc2013-evolution-5cc2615a37ebd621954d386639ae261165bc09ef.tar.gz gsoc2013-evolution-5cc2615a37ebd621954d386639ae261165bc09ef.tar.bz2 gsoc2013-evolution-5cc2615a37ebd621954d386639ae261165bc09ef.tar.lz gsoc2013-evolution-5cc2615a37ebd621954d386639ae261165bc09ef.tar.xz gsoc2013-evolution-5cc2615a37ebd621954d386639ae261165bc09ef.tar.zst gsoc2013-evolution-5cc2615a37ebd621954d386639ae261165bc09ef.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 'libgnomecanvas/gnome-canvas-text.c')
-rw-r--r-- | libgnomecanvas/gnome-canvas-text.c | 12 |
1 files changed, 6 insertions, 6 deletions
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; |