From 0025229dc5eac1ffe51ddcc2046fbaac251581d2 Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Fri, 11 Apr 2003 08:52:56 +0000 Subject: unref the main widget since we ref it when we un-parent it 2003-04-11 JP Rosevear * gui/dialogs/schedule-page.c (schedule_page_finalize): unref the main widget since we ref it when we un-parent it * gui/dialogs/alarm-page.c (alarm_page_finalize): ditto * gui/dialogs/task-page.c (task_page_finalize): ditto * gui/dialogs/event-page.c (event_page_finalize): ditto * gui/dialogs/task-details-page.c (task_details_page_finalize): ditto * gui/dialogs/recurrence-page.c (recurrence_page_finalize): ditto * gui/dialogs/meeting-page.c (meeting_page_finalize): ditto svn path=/trunk/; revision=20811 --- calendar/gui/dialogs/alarm-page.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'calendar/gui/dialogs/alarm-page.c') diff --git a/calendar/gui/dialogs/alarm-page.c b/calendar/gui/dialogs/alarm-page.c index 2008881ff3..d0639bde16 100644 --- a/calendar/gui/dialogs/alarm-page.c +++ b/calendar/gui/dialogs/alarm-page.c @@ -233,6 +233,9 @@ alarm_page_finalize (GObject *object) apage = ALARM_PAGE (object); priv = apage->priv; + if (priv->main) + gtk_widget_unref (priv->main); + if (priv->xml) { g_object_unref (priv->xml); priv->xml = NULL; @@ -407,6 +410,7 @@ alarm_page_fill_widgets (CompEditorPage *page, CalComponent *comp) gtk_widget_set_sensitive (l->data, TRUE); } + sensitize_buttons (apage); priv->updating = FALSE; } @@ -752,7 +756,6 @@ init_widgets (AlarmPage *apage) gtk_tree_view_column_add_attribute (column, cell_renderer, "text", E_ALARM_LIST_COLUMN_DESCRIPTION); gtk_tree_view_append_column (GTK_TREE_VIEW (priv->list), column); - sensitize_buttons (apage); #if 0 /* If we want the alarm setup widgets to reflect the currently selected alarm, we * need to do something like this */ -- cgit v1.2.3