From da621e54066d5121c1f789c946eb8b1a1910777b Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Wed, 15 Jan 2003 21:45:51 +0000 Subject: apply the patch NotZed and I came up with to fix the height of the 2003-01-15 Chris Toshok * gal/e-text/e-text.c (show_pango_rectangle): apply the patch NotZed and I came up with to fix the height of the evolution composer entries. svn path=/trunk/; revision=19486 --- widgets/text/e-text.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'widgets/text/e-text.c') diff --git a/widgets/text/e-text.c b/widgets/text/e-text.c index b278e7c614..f31b27dfa9 100644 --- a/widgets/text/e-text.c +++ b/widgets/text/e-text.c @@ -151,10 +151,6 @@ static void _selection_received (GtkInvisible *invisible, guint time, EText *text); -static void get_text_extents_with_objects (EText *etext, EFontStyle style, - const gchar *text, gint bytelen, - int *width, int *height); - static void calc_height (EText *text); static GnomeCanvasItemClass *parent_class; @@ -696,6 +692,11 @@ e_text_set_property (GObject *object, case PROP_CLIP_HEIGHT: text->clip_height = fabs (g_value_get_double (value)); text->needs_recalc_bounds = 1; + /* toshok: kind of a hack - set needs_reset_layout + here so when something about the style/them + changes, we redraw the text at the proper size/with + the proper font. */ + text->needs_reset_layout = 1; needs_reflow = 1; break; @@ -1223,7 +1224,7 @@ show_pango_rectangle (EText *text, PangoRectangle rect) if (clip_height >= 0) { if (2 + y2 - clip_height > new_yofs_edit) - new_yofs_edit = 2 + y2 /*- clip_height*/; + new_yofs_edit = y2 - clip_height; } else { new_yofs_edit = 0; } -- cgit v1.2.3