From 8f3673b5fe40cf73bdb5fa8000c96969a9de9353 Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Thu, 9 Aug 2001 06:24:27 +0000 Subject: Chain to the destroy handler in the parent class! 2001-08-09 Federico Mena Quintero * e-categories-master-list-wombat.c (ecmlw_destroy): Chain to the destroy handler in the parent class! * e-list-iterator.c (e_list_iterator_destroy): Likewise. Sigh. * e-list.c (e_list_destroy): Likewise. Double sigh. svn path=/trunk/; revision=11819 --- e-util/ChangeLog | 9 +++++++++ e-util/e-categories-master-list-wombat.c | 3 +++ e-util/e-list-iterator.c | 5 ++++- e-util/e-list.c | 3 +++ 4 files changed, 19 insertions(+), 1 deletion(-) diff --git a/e-util/ChangeLog b/e-util/ChangeLog index dbd507943b..d8a843f40b 100644 --- a/e-util/ChangeLog +++ b/e-util/ChangeLog @@ -1,3 +1,12 @@ +2001-08-09 Federico Mena Quintero + + * e-categories-master-list-wombat.c (ecmlw_destroy): Chain to the + destroy handler in the parent class! + + * e-list-iterator.c (e_list_iterator_destroy): Likewise. Sigh. + + * e-list.c (e_list_destroy): Likewise. Double sigh. + 2001-08-08 Ettore Perazzoli * e-dialog-utils.h: New. diff --git a/e-util/e-categories-master-list-wombat.c b/e-util/e-categories-master-list-wombat.c index 4cf8e78879..6eb0a2562d 100644 --- a/e-util/e-categories-master-list-wombat.c +++ b/e-util/e-categories-master-list-wombat.c @@ -123,6 +123,9 @@ ecmlw_destroy (GtkObject *object) bonobo_object_release_unref (ecmlw->priv->db, &ev); CORBA_exception_free (&ev); + + if (GTK_OBJECT_CLASS (parent_class)->destroy) + (* GTK_OBJECT_CLASS (parent_class)->destroy) (object); } diff --git a/e-util/e-list-iterator.c b/e-util/e-list-iterator.c index 64f7c299f3..7d3d644fc2 100644 --- a/e-util/e-list-iterator.c +++ b/e-util/e-list-iterator.c @@ -33,7 +33,7 @@ static void e_list_iterator_destroy (GtkObject *object); #define PARENT_TYPE (e_iterator_get_type ()) -static GtkObjectClass *parent_class; +static EIteratorClass *parent_class; #define PARENT_CLASS (E_ITERATOR_CLASS(parent_class)) /** @@ -124,6 +124,9 @@ e_list_iterator_destroy (GtkObject *object) EListIterator *iterator = E_LIST_ITERATOR(object); e_list_remove_iterator(iterator->list, E_ITERATOR(iterator)); gtk_object_unref(GTK_OBJECT(iterator->list)); + + if (GTK_OBJECT_CLASS (parent_class)->destroy) + (* GTK_OBJECT_CLASS (parent_class)->destroy) (object); } static const void * diff --git a/e-util/e-list.c b/e-util/e-list.c index f501be5ae5..64ccea728c 100644 --- a/e-util/e-list.c +++ b/e-util/e-list.c @@ -172,5 +172,8 @@ e_list_destroy (GtkObject *object) EList *list = E_LIST(object); g_list_foreach(list->list, (GFunc) list->free, list->closure); g_list_free(list->list); + + if (GTK_OBJECT_CLASS (parent_class)->destroy) + (* GTK_OBJECT_CLASS (parent_class)->destroy) (object); } -- cgit v1.2.3