aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/text
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/text')
-rw-r--r--widgets/text/e-text.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/widgets/text/e-text.c b/widgets/text/e-text.c
index b740a6d36b..49108cb918 100644
--- a/widgets/text/e-text.c
+++ b/widgets/text/e-text.c
@@ -1545,7 +1545,9 @@ e_text_unrealize (GnomeCanvasItem *item)
text->gc = NULL;
gdk_cursor_destroy (text->i_cursor);
+ text->i_cursor = NULL;
gdk_cursor_destroy (text->default_cursor);
+ text->default_cursor = NULL;
if (parent_class->unrealize)
(* parent_class->unrealize) (item);
@@ -2567,6 +2569,9 @@ e_text_event (GnomeCanvasItem *item, GdkEvent *event)
gint return_val = 0;
+ if (GTK_OBJECT_DESTROYED (item))
+ return FALSE;
+
e_tep_event.type = event->type;
switch (event->type) {
case GDK_FOCUS_CHANGE: