aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorDamon Chaplin <damon@helixcode.com>2000-10-08 04:38:10 +0800
committerDamon Chaplin <damon@src.gnome.org>2000-10-08 04:38:10 +0800
commit5e56396c7a4e1366c2e69131bd7f627d600a94e7 (patch)
treeae0fd30f36d29c8aba5807a4117c5c9fed77b4bb /widgets
parent71605c0a38508ebea1732ce4f24882b042e1166e (diff)
downloadgsoc2013-evolution-5e56396c7a4e1366c2e69131bd7f627d600a94e7.tar
gsoc2013-evolution-5e56396c7a4e1366c2e69131bd7f627d600a94e7.tar.gz
gsoc2013-evolution-5e56396c7a4e1366c2e69131bd7f627d600a94e7.tar.bz2
gsoc2013-evolution-5e56396c7a4e1366c2e69131bd7f627d600a94e7.tar.lz
gsoc2013-evolution-5e56396c7a4e1366c2e69131bd7f627d600a94e7.tar.xz
gsoc2013-evolution-5e56396c7a4e1366c2e69131bd7f627d600a94e7.tar.zst
gsoc2013-evolution-5e56396c7a4e1366c2e69131bd7f627d600a94e7.zip
set cursors to NULL after destroying them, to avoid any possibility of
2000-10-07 Damon Chaplin <damon@helixcode.com> * gal/e-text/e-text.c (e_text_unrealize): set cursors to NULL after destroying them, to avoid any possibility of BadCursor. (e_text_event): just return if the EText item is destroyed. svn path=/trunk/; revision=5780
Diffstat (limited to 'widgets')
-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: