From 36e820522ea303a510753fc5cd5a052b790b169c Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Tue, 8 May 2001 00:08:19 +0000 Subject: Request an update if just our line widths needed recalculation. This fixes 2001-05-07 Federico Mena Quintero * 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 --- widgets/text/e-entry.c | 2 +- widgets/text/e-text.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/widgets/text/e-entry.c b/widgets/text/e-entry.c index b84e622de6..02ca564532 100644 --- a/widgets/text/e-entry.c +++ b/widgets/text/e-entry.c @@ -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 diff --git a/widgets/text/e-text.c b/widgets/text/e-text.c index c77c5d5d9b..0638134281 100644 --- a/widgets/text/e-text.c +++ b/widgets/text/e-text.c @@ -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); -- cgit v1.2.3