From df0dbaef4aa3530ca72ff879b51472d6dc1a8ad0 Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Thu, 9 Aug 2001 06:25:54 +0000 Subject: Chain to the destroy handler in the parent class! 2001-08-09 Federico Mena Quintero * gui/e-itip-control.c (destroy): Chain to the destroy handler in the parent class! * gui/dialogs/comp-editor-page.c (comp_editor_page_destroy): Likewise. Sigh. * gui/cal-search-bar.c (cal_search_bar_destroy): Whoops, added a destroy handler. svn path=/trunk/; revision=11820 --- calendar/gui/dialogs/comp-editor-page.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'calendar/gui/dialogs/comp-editor-page.c') diff --git a/calendar/gui/dialogs/comp-editor-page.c b/calendar/gui/dialogs/comp-editor-page.c index 4e15ebeda9..27f4041d3a 100644 --- a/calendar/gui/dialogs/comp-editor-page.c +++ b/calendar/gui/dialogs/comp-editor-page.c @@ -32,6 +32,8 @@ static void comp_editor_page_class_init (CompEditorPageClass *class); static void comp_editor_page_init (CompEditorPage *page); static void comp_editor_page_destroy (GtkObject *object); +static GtkObjectClass *parent_class = NULL; + /* Signal IDs */ enum { @@ -89,6 +91,8 @@ comp_editor_page_class_init (CompEditorPageClass *class) object_class = (GtkObjectClass *) class; + parent_class = gtk_type_class (GTK_TYPE_OBJECT); + comp_editor_page_signals[CHANGED] = gtk_signal_new ("changed", GTK_RUN_FIRST, @@ -166,6 +170,9 @@ comp_editor_page_destroy (GtkObject *object) gtk_object_ref (GTK_OBJECT (page->client)); page->client = NULL; } + + if (GTK_OBJECT_CLASS (parent_class)->destroy) + (* GTK_OBJECT_CLASS (parent_class)->destroy) (object); } -- cgit