From 23bb03e9939cc86b68b546570edc7884d7a1b051 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Sat, 7 Jul 2001 22:21:12 +0000 Subject: Destroy the tooltip if we're the owner when we're destroyed. Also, keep a 2001-07-07 Christopher James Lahey * gal/e-text/e-text.c, gal/e-text/e-text.h (e_text_destroy): Destroy the tooltip if we're the owner when we're destroyed. Also, keep a reference to the text object in case we get a signal on the window after the text object is destroyed. * gal/widgets/e-canvas.c (e_canvas_destroy): Hide the tooltip if there is one when the canvas is destroyed. svn path=/trunk/; revision=10888 --- widgets/misc/e-canvas.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'widgets/misc/e-canvas.c') diff --git a/widgets/misc/e-canvas.c b/widgets/misc/e-canvas.c index e48c6bb821..fea3746ce1 100644 --- a/widgets/misc/e-canvas.c +++ b/widgets/misc/e-canvas.c @@ -139,6 +139,8 @@ e_canvas_destroy (GtkObject *object) canvas->toplevel = NULL; } + e_canvas_hide_tooltip(canvas); + if ((GTK_OBJECT_CLASS (parent_class))->destroy) (*(GTK_OBJECT_CLASS (parent_class))->destroy) (object); } -- cgit v1.2.3