From 720a792d11bbcadfd8bddfa8d68a0fbe0eb817d0 Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Wed, 4 Jul 2001 01:33:05 +0000 Subject: Add new columns for information specification (meeting_page_destroy): save 2001-07-03 JP Rosevear * gui/dialogs/meeting-page.c: Add new columns for information specification (meeting_page_destroy): save the table state (build_etable): load new table state * gui/dialogs/task-editor.c (task_editor_destroy): unref pages * gui/dialogs/event-editor.c (event_editor_destroy): unref pages * gui/dialogs/comp-editor.c (setup_widgets): kill warning (comp_editor_append_page): ref page passed in (close_dialog): unref pages svn path=/trunk/; revision=10777 --- calendar/gui/dialogs/comp-editor.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'calendar/gui/dialogs/comp-editor.c') diff --git a/calendar/gui/dialogs/comp-editor.c b/calendar/gui/dialogs/comp-editor.c index c001207783..ea42980c2c 100644 --- a/calendar/gui/dialogs/comp-editor.c +++ b/calendar/gui/dialogs/comp-editor.c @@ -201,7 +201,7 @@ setup_widgets (CompEditor *editor) /* Notebook */ priv->notebook = GTK_NOTEBOOK (gtk_notebook_new ()); - gtk_widget_show (priv->notebook); + gtk_widget_show (GTK_WIDGET (priv->notebook)); gtk_box_pack_start (GTK_BOX (vbox), GTK_WIDGET (priv->notebook), TRUE, TRUE, 0); } @@ -273,6 +273,8 @@ comp_editor_append_page (CompEditor *editor, priv = editor->priv; + gtk_object_ref (GTK_OBJECT (page)); + /* If we are editing something, fill the widgets with current info */ if (priv->comp != NULL) { CalComponent *comp; @@ -723,11 +725,15 @@ static void close_dialog (CompEditor *editor) { CompEditorPrivate *priv; - + GList *l; + priv = editor->priv; g_assert (priv->window != NULL); + for (l = priv->pages; l != NULL; l = l->next) + gtk_object_unref (GTK_OBJECT (l->data)); + gtk_object_destroy (GTK_OBJECT (editor)); } -- cgit v1.2.3