diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-01-16 00:52:43 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-01-16 01:11:31 +0800 |
commit | d1b440a268b6f43f86114df12b543f7e7c6d6588 (patch) | |
tree | 8717cb7ffa86737f3344917062bacdc746e570bd /libgnomecanvas/gnome-canvas-text.c | |
parent | a4d8c30310cfcd95a54153930336ff8196adde76 (diff) | |
download | gsoc2013-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 '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; |