aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/text/e-text.c
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/text/e-text.c')
-rw-r--r--widgets/text/e-text.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/widgets/text/e-text.c b/widgets/text/e-text.c
index 8e2f4451a6..330fa25e81 100644
--- a/widgets/text/e-text.c
+++ b/widgets/text/e-text.c
@@ -1474,6 +1474,10 @@ e_text_realize (GnomeCanvasItem *item)
text->i_cursor = gdk_cursor_new (GDK_XTERM);
text->default_cursor = gdk_cursor_new (GDK_LEFT_PTR);
+ if (text->font == NULL) {
+ text->font = GTK_WIDGET(item->canvas)->style->font;
+ gdk_font_ref(text->font);
+ }
}
/* Unrealize handler for the text item */