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
This commit is contained in:
JP Rosevear
2000-12-07 21:33:27 +00:00
committed by JP Rosevear
parent cce9a0787e
commit 92708e6f44

View File

@ -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);
}