aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/text/e-text.c
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2003-01-16 05:45:51 +0800
committerChris Toshok <toshok@src.gnome.org>2003-01-16 05:45:51 +0800
commitda621e54066d5121c1f789c946eb8b1a1910777b (patch)
treec3e88b76165a0c8447ff15b8468421d176ec09a4 /widgets/text/e-text.c
parent01b8e380164a9f8505b81811e28e68351f5168be (diff)
downloadgsoc2013-evolution-da621e54066d5121c1f789c946eb8b1a1910777b.tar.gz
gsoc2013-evolution-da621e54066d5121c1f789c946eb8b1a1910777b.tar.zst
gsoc2013-evolution-da621e54066d5121c1f789c946eb8b1a1910777b.zip
apply the patch NotZed and I came up with to fix the height of the
2003-01-15 Chris Toshok <toshok@ximian.com> * 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
Diffstat (limited to 'widgets/text/e-text.c')
-rw-r--r--widgets/text/e-text.c11
1 files changed, 6 insertions, 5 deletions
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;
}