From a588f367b2ef4fab4ec701667551454da084eed3 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Tue, 9 May 2000 17:18:31 +0000 Subject: Remove the tooltip callback when destroyed. 2000-05-09 Christopher James Lahey * widgets/e-text/e-text.c: Remove the tooltip callback when destroyed. svn path=/trunk/; revision=2952 --- ChangeLog | 5 +++++ widgets/e-text/e-text.c | 5 +++++ widgets/text/e-text.c | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/ChangeLog b/ChangeLog index 2a3569ee10..ff676fdec8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-05-09 Christopher James Lahey + + * widgets/e-text/e-text.c: Remove the tooltip callback when + destroyed. + 2000-05-09 Matt Loper * calendar/pcs/cal-backend.c (cal_backend_add_cal): Return nothing diff --git a/widgets/e-text/e-text.c b/widgets/e-text/e-text.c index 0086a80194..8e2f4451a6 100644 --- a/widgets/e-text/e-text.c +++ b/widgets/e-text/e-text.c @@ -419,6 +419,11 @@ e_text_destroy (GtkObject *object) text->timer = NULL; } + if ( text->tooltip_timeout ) { + gtk_timeout_remove (text->tooltip_timeout); + text->tooltip_timeout = 0; + } + if (GTK_OBJECT_CLASS (parent_class)->destroy) (* GTK_OBJECT_CLASS (parent_class)->destroy) (object); } diff --git a/widgets/text/e-text.c b/widgets/text/e-text.c index 0086a80194..8e2f4451a6 100644 --- a/widgets/text/e-text.c +++ b/widgets/text/e-text.c @@ -419,6 +419,11 @@ e_text_destroy (GtkObject *object) text->timer = NULL; } + if ( text->tooltip_timeout ) { + gtk_timeout_remove (text->tooltip_timeout); + text->tooltip_timeout = 0; + } + if (GTK_OBJECT_CLASS (parent_class)->destroy) (* GTK_OBJECT_CLASS (parent_class)->destroy) (object); } -- cgit