diff options
author | Federico Mena Quintero <federico@ximian.com> | 2001-05-08 08:08:19 +0800 |
---|---|---|
committer | Federico Mena Quintero <federico@src.gnome.org> | 2001-05-08 08:08:19 +0800 |
commit | 36e820522ea303a510753fc5cd5a052b790b169c (patch) | |
tree | 2bfa9d650eed2f0033130f838dee306bb5f4adf8 | |
parent | 0f0089d684410a45eaa15b1224216cadba41f0b3 (diff) | |
download | gsoc2013-evolution-36e820522ea303a510753fc5cd5a052b790b169c.tar gsoc2013-evolution-36e820522ea303a510753fc5cd5a052b790b169c.tar.gz gsoc2013-evolution-36e820522ea303a510753fc5cd5a052b790b169c.tar.bz2 gsoc2013-evolution-36e820522ea303a510753fc5cd5a052b790b169c.tar.lz gsoc2013-evolution-36e820522ea303a510753fc5cd5a052b790b169c.tar.xz gsoc2013-evolution-36e820522ea303a510753fc5cd5a052b790b169c.tar.zst gsoc2013-evolution-36e820522ea303a510753fc5cd5a052b790b169c.zip |
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
-rw-r--r-- | widgets/text/e-entry.c | 2 | ||||
-rw-r--r-- | widgets/text/e-text.c | 2 |
2 files changed, 3 insertions, 1 deletions
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); |