From 65d31b5b24719ee9d5e16459d102b2f93ec87d3f Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Thu, 22 Mar 2001 10:31:14 +0000 Subject: Make `ETableSortInfo' non-floating and use _unref, not _destroy, to get rid of the ETableSortInfo in ETableState's destroy method. svn path=/trunk/; revision=8888 --- widgets/table/e-table-sort-info.c | 2 ++ widgets/table/e-table-state.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/widgets/table/e-table-sort-info.c b/widgets/table/e-table-sort-info.c index c723ded8d8..2566f7e264 100644 --- a/widgets/table/e-table-sort-info.c +++ b/widgets/table/e-table-sort-info.c @@ -45,6 +45,8 @@ etsi_destroy (GtkObject *object) static void e_table_sort_info_init (ETableSortInfo *info) { + GTK_OBJECT_UNSET_FLAGS (GTK_OBJECT (info), GTK_FLOATING); + info->group_count = 0; info->groupings = NULL; info->sort_count = 0; diff --git a/widgets/table/e-table-state.c b/widgets/table/e-table-state.c index 0bb3f2e0a4..c5b19b42a2 100644 --- a/widgets/table/e-table-state.c +++ b/widgets/table/e-table-state.c @@ -30,7 +30,7 @@ etst_destroy (GtkObject *object) { ETableState *etst = E_TABLE_STATE (object); - gtk_object_destroy (GTK_OBJECT (etst->sort_info)); + gtk_object_unref (GTK_OBJECT (etst->sort_info)); if (etst->columns) g_free (etst->columns); -- cgit v1.2.3