diff options
author | Federico Mena Quintero <federico@ximian.com> | 2001-08-09 14:24:27 +0800 |
---|---|---|
committer | Federico Mena Quintero <federico@src.gnome.org> | 2001-08-09 14:24:27 +0800 |
commit | 8f3673b5fe40cf73bdb5fa8000c96969a9de9353 (patch) | |
tree | af241ed149445a2d9f54c3dd5a4e53c0d138a4b2 /e-util | |
parent | 2f419416b8818dd448a4130322d6d8b25a3d2319 (diff) | |
download | gsoc2013-evolution-8f3673b5fe40cf73bdb5fa8000c96969a9de9353.tar gsoc2013-evolution-8f3673b5fe40cf73bdb5fa8000c96969a9de9353.tar.gz gsoc2013-evolution-8f3673b5fe40cf73bdb5fa8000c96969a9de9353.tar.bz2 gsoc2013-evolution-8f3673b5fe40cf73bdb5fa8000c96969a9de9353.tar.lz gsoc2013-evolution-8f3673b5fe40cf73bdb5fa8000c96969a9de9353.tar.xz gsoc2013-evolution-8f3673b5fe40cf73bdb5fa8000c96969a9de9353.tar.zst gsoc2013-evolution-8f3673b5fe40cf73bdb5fa8000c96969a9de9353.zip |
Chain to the destroy handler in the parent class!
2001-08-09 Federico Mena Quintero <federico@ximian.com>
* 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
Diffstat (limited to 'e-util')
-rw-r--r-- | e-util/ChangeLog | 9 | ||||
-rw-r--r-- | e-util/e-categories-master-list-wombat.c | 3 | ||||
-rw-r--r-- | e-util/e-list-iterator.c | 5 | ||||
-rw-r--r-- | e-util/e-list.c | 3 |
4 files changed, 19 insertions, 1 deletions
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 <federico@ximian.com> + + * 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 <ettore@ximian.com> * 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); } |