From 879dbf98d742303050d5c94cd58dd1331b69510b Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Tue, 11 Apr 2000 19:44:35 +0000 Subject: Moved some logic a bit. Minor changes. 2000-04-11 Christopher James Lahey * widgets/e-text/e-text.c: Moved some logic a bit. Minor changes. svn path=/trunk/; revision=2396 --- widgets/text/e-text.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'widgets/text/e-text.c') diff --git a/widgets/text/e-text.c b/widgets/text/e-text.c index 294795986f..3a4361b8fa 100644 --- a/widgets/text/e-text.c +++ b/widgets/text/e-text.c @@ -595,7 +595,6 @@ get_bounds (EText *text, double *px1, double *py1, double *px2, double *py2) *px2 = text->cx + text->max_width; *py2 = text->cy + text->height; } - } static void @@ -1058,7 +1057,6 @@ e_text_set_arg (GtkObject *object, GtkArg *arg, guint arg_id) else text->needs_calc_line_widths = 1; needs_reflow = 1; - text->needs_recalc_bounds = 1; break; case ARG_CLIP_HEIGHT: @@ -1185,7 +1183,6 @@ e_text_set_arg (GtkObject *object, GtkArg *arg, guint arg_id) else text->needs_calc_line_widths = 1; needs_reflow = 1; - text->needs_recalc_bounds = 1; break; default: @@ -1382,6 +1379,7 @@ e_text_reflow (GnomeCanvasItem *item, int flags) calc_height (text); gnome_canvas_item_request_update(item); text->needs_calc_height = 0; + text->needs_recalc_bounds = 1; } } @@ -1862,11 +1860,6 @@ e_text_point (GnomeCanvasItem *item, double x, double y, lines = text->lines; -#if 0 - if ( lines ) - return 1; -#endif - for (i = 0; i < text->num_lines; i++) { /* Compute the coordinates of rectangle for the current line, * clipping if appropriate. -- cgit v1.2.3