aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc
diff options
context:
space:
mode:
authorJP Rosevear <jpr@helixcode.com>2000-12-08 05:33:27 +0800
committerJP Rosevear <jpr@src.gnome.org>2000-12-08 05:33:27 +0800
commit92708e6f44956ebcb0dc616922f8ec844c6027cc (patch)
treeff19906dfa8ffd50afc91913caf1a090d0dad786 /widgets/misc
parentcce9a0787ee9bbce959ec8181ec72de0f36738df (diff)
downloadgsoc2013-evolution-92708e6f44956ebcb0dc616922f8ec844c6027cc.tar.gz
gsoc2013-evolution-92708e6f44956ebcb0dc616922f8ec844c6027cc.tar.zst
gsoc2013-evolution-92708e6f44956ebcb0dc616922f8ec844c6027cc.zip
Destroy the gdkIC if we have one
2000-12-07 JP Rosevear <jpr@helixcode.com> * gal/widgets/e-canvas.c (e_canvas_destroy): Destroy the gdkIC if we have one svn path=/trunk/; revision=6847
Diffstat (limited to 'widgets/misc')
-rw-r--r--widgets/misc/e-canvas.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/widgets/misc/e-canvas.c b/widgets/misc/e-canvas.c
index 78961ae530..d82f96e722 100644
--- a/widgets/misc/e-canvas.c
+++ b/widgets/misc/e-canvas.c
@@ -120,8 +120,13 @@ static void
e_canvas_destroy (GtkObject *object)
{
ECanvas *canvas = E_CANVAS(object);
+
if (canvas->idle_id)
g_source_remove(canvas->idle_id);
+
+ if (canvas->ic)
+ gdk_ic_destroy (canvas->ic);
+
if ((GTK_OBJECT_CLASS (parent_class))->destroy)
(*(GTK_OBJECT_CLASS (parent_class))->destroy) (object);
}