Request an update if just our line widths needed recalculation. This fixes

2001-05-07  Federico Mena Quintero  <federico@ximian.com>

	* gal/e-text/e-text.c (e_text_reflow): Request an update if just
	our line widths needed recalculation.  This fixes the bug where
	the text item would not repaint itself if the canvas lost the
	focus.

svn path=/trunk/; revision=9705
This commit is contained in:
Federico Mena Quintero
2001-05-08 00:08:19 +00:00
committed by Federico Mena Quintero
parent 0f0089d684
commit 36e820522e
2 changed files with 3 additions and 1 deletions

View File

@ -201,7 +201,7 @@ canvas_focus_in_event (GtkWidget *widget, GdkEventFocus *focus, EEntry *entry)
if (entry->canvas->focused_item != GNOME_CANVAS_ITEM(entry->item))
gnome_canvas_item_grab_focus(GNOME_CANVAS_ITEM(entry->item));
return 0;
return FALSE;
}
static void

View File

@ -1716,6 +1716,8 @@ e_text_reflow (GnomeCanvasItem *item, int flags)
(text->clip_height != -1 ? text->clip_height : text->height) > text->yofs_edit)
text->yofs_edit = e_font_height (text->font) * (i + 1) -
(text->clip_height != -1 ? text->clip_height : text->height);
gnome_canvas_item_request_update (item);
}
if ( text->needs_calc_height ) {
calc_height (text);