aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--widgets/table/e-cell-text.c1
-rw-r--r--widgets/text/e-text.c5
2 files changed, 3 insertions, 3 deletions
diff --git a/widgets/table/e-cell-text.c b/widgets/table/e-cell-text.c
index 8fcfd35173..ded6e93c0d 100644
--- a/widgets/table/e-cell-text.c
+++ b/widgets/table/e-cell-text.c
@@ -394,6 +394,7 @@ ect_unrealize (ECellView *ecv)
if (text_view->font)
e_font_unref (text_view->font);
+ text_view->font = NULL;
if (text_view->stipple)
gdk_bitmap_unref (text_view->stipple);
diff --git a/widgets/text/e-text.c b/widgets/text/e-text.c
index f56e9fea55..b0dd3261e7 100644
--- a/widgets/text/e-text.c
+++ b/widgets/text/e-text.c
@@ -476,6 +476,7 @@ e_text_destroy (GtkObject *object)
if (text->font)
e_font_unref (text->font);
+ text->font = NULL;
#if 0
if (text->suckfont)
@@ -1265,6 +1266,7 @@ e_text_set_arg (GtkObject *object, GtkArg *arg, guint arg_id)
e_font_unref (text->font);
text->font = GTK_VALUE_POINTER (*arg);
+ e_font_ref (text->font);
calc_ellipsis (text);
if (text->line_wrap)
@@ -2797,9 +2799,6 @@ _do_tooltip (gpointer data)
"fill_color", "light gray",
NULL);
- /* Ref the font so that it is not destroyed
- when the tooltip text is destroyed */
- e_font_ref (text->font);
tooltip_text = gnome_canvas_item_new (gnome_canvas_root (GNOME_CANVAS (canvas)),
e_text_get_type (),
"anchor", GTK_ANCHOR_NW,