aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@ximian.com>2001-08-09 13:20:46 +0800
committerFederico Mena Quintero <federico@src.gnome.org>2001-08-09 13:20:46 +0800
commitcd0a7332190835f0137f7fb0fd42d90f9fa55f4a (patch)
tree0b2e5b5f175dea04811b0a4865d9422490e6c088
parent633656205f00b29de0cc4247391c1f4b6ff801a0 (diff)
downloadgsoc2013-evolution-cd0a7332190835f0137f7fb0fd42d90f9fa55f4a.tar
gsoc2013-evolution-cd0a7332190835f0137f7fb0fd42d90f9fa55f4a.tar.gz
gsoc2013-evolution-cd0a7332190835f0137f7fb0fd42d90f9fa55f4a.tar.bz2
gsoc2013-evolution-cd0a7332190835f0137f7fb0fd42d90f9fa55f4a.tar.lz
gsoc2013-evolution-cd0a7332190835f0137f7fb0fd42d90f9fa55f4a.tar.xz
gsoc2013-evolution-cd0a7332190835f0137f7fb0fd42d90f9fa55f4a.tar.zst
gsoc2013-evolution-cd0a7332190835f0137f7fb0fd42d90f9fa55f4a.zip
Chain to the destroy handler in the parent class!
2001-08-09 Federico Mena Quintero <federico@ximian.com> * gal-define-views-dialog.c (gal_define_views_dialog_destroy): Chain to the destroy handler in the parent class! * gal-define-views-model.c (gdvm_destroy): Likewise. Sigh. * gal-view-etable.c (gal_view_etable_destroy): Likewise. Double sigh. * gal-view-factory-etable.c (gal_view_factory_etable_destroy): Likewise. Triple sigh. * gal-view-new-dialog.c (gal_view_new_dialog_destroy): Likewise. Quadruple sigh. svn path=/trunk/; revision=11814
-rw-r--r--widgets/menus/gal-define-views-dialog.c6
-rw-r--r--widgets/menus/gal-define-views-model.c3
-rw-r--r--widgets/menus/gal-view-etable.c3
-rw-r--r--widgets/menus/gal-view-factory-etable.c3
-rw-r--r--widgets/menus/gal-view-new-dialog.c6
5 files changed, 19 insertions, 2 deletions
diff --git a/widgets/menus/gal-define-views-dialog.c b/widgets/menus/gal-define-views-dialog.c
index 8ca28adfac..f02db2875f 100644
--- a/widgets/menus/gal-define-views-dialog.c
+++ b/widgets/menus/gal-define-views-dialog.c
@@ -254,10 +254,14 @@ gal_define_views_dialog_init (GalDefineViewsDialog *dialog)
}
static void
-gal_define_views_dialog_destroy (GtkObject *object) {
+gal_define_views_dialog_destroy (GtkObject *object)
+{
GalDefineViewsDialog *gal_define_views_dialog = GAL_DEFINE_VIEWS_DIALOG(object);
gtk_object_unref(GTK_OBJECT(gal_define_views_dialog->gui));
+
+ if (GTK_OBJECT_CLASS (parent_class)->destroy)
+ (* GTK_OBJECT_CLASS (parent_class)->destroy) (object);
}
static void
diff --git a/widgets/menus/gal-define-views-model.c b/widgets/menus/gal-define-views-model.c
index 103b46af5c..c848bdf411 100644
--- a/widgets/menus/gal-define-views-model.c
+++ b/widgets/menus/gal-define-views-model.c
@@ -36,6 +36,9 @@ gdvm_destroy(GtkObject *object)
GalDefineViewsModel *model = GAL_DEFINE_VIEWS_MODEL(object);
gtk_object_unref(GTK_OBJECT(model->collection));
+
+ if (GTK_OBJECT_CLASS (parent_class)->destroy)
+ (* GTK_OBJECT_CLASS (parent_class)->destroy) (object);
}
/* This function returns the number of columns in our ETableModel. */
diff --git a/widgets/menus/gal-view-etable.c b/widgets/menus/gal-view-etable.c
index 34b14b3c50..5c6c25c95d 100644
--- a/widgets/menus/gal-view-etable.c
+++ b/widgets/menus/gal-view-etable.c
@@ -104,6 +104,9 @@ gal_view_etable_destroy (GtkObject *object)
gtk_object_unref(GTK_OBJECT(view->spec));
if (view->state)
gtk_object_unref(GTK_OBJECT(view->state));
+
+ if (GTK_OBJECT_CLASS (gal_view_etable_parent_class)->destroy)
+ (* GTK_OBJECT_CLASS (gal_view_etable_parent_class)->destroy) (object);
}
static void
diff --git a/widgets/menus/gal-view-factory-etable.c b/widgets/menus/gal-view-factory-etable.c
index 4fddcdc70a..95c5180844 100644
--- a/widgets/menus/gal-view-factory-etable.c
+++ b/widgets/menus/gal-view-factory-etable.c
@@ -44,6 +44,9 @@ gal_view_factory_etable_destroy (GtkObject *object)
if (factory->spec)
gtk_object_unref(GTK_OBJECT(factory->spec));
+
+ if (GTK_OBJECT_CLASS (gal_view_factory_etable_parent_class)->destroy)
+ (* GTK_OBJECT_CLASS (gal_view_factory_etable_parent_class)->destroy) (object);
}
static void
diff --git a/widgets/menus/gal-view-new-dialog.c b/widgets/menus/gal-view-new-dialog.c
index 4b7d298fb6..494e19ff75 100644
--- a/widgets/menus/gal-view-new-dialog.c
+++ b/widgets/menus/gal-view-new-dialog.c
@@ -116,10 +116,14 @@ gal_view_new_dialog_init (GalViewNewDialog *dialog)
}
static void
-gal_view_new_dialog_destroy (GtkObject *object) {
+gal_view_new_dialog_destroy (GtkObject *object)
+{
GalViewNewDialog *gal_view_new_dialog = GAL_VIEW_NEW_DIALOG(object);
gtk_object_unref(GTK_OBJECT(gal_view_new_dialog->gui));
+
+ if (GTK_OBJECT_CLASS (parent_class)->destroy)
+ (* GTK_OBJECT_CLASS (parent_class)->destroy) (object);
}
GtkWidget*