diff options
-rw-r--r-- | widgets/menus/gal-define-views-dialog.c | 6 | ||||
-rw-r--r-- | widgets/menus/gal-define-views-model.c | 3 | ||||
-rw-r--r-- | widgets/menus/gal-view-etable.c | 3 | ||||
-rw-r--r-- | widgets/menus/gal-view-factory-etable.c | 3 | ||||
-rw-r--r-- | widgets/menus/gal-view-new-dialog.c | 6 |
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* |