aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2001-03-22 18:31:14 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2001-03-22 18:31:14 +0800
commit65d31b5b24719ee9d5e16459d102b2f93ec87d3f (patch)
tree72984e2f3054b29553d998bca37a21726a1a8662
parentbbaba8e024fdd4634f220df61e8fb2a3e2b52148 (diff)
downloadgsoc2013-evolution-65d31b5b24719ee9d5e16459d102b2f93ec87d3f.tar
gsoc2013-evolution-65d31b5b24719ee9d5e16459d102b2f93ec87d3f.tar.gz
gsoc2013-evolution-65d31b5b24719ee9d5e16459d102b2f93ec87d3f.tar.bz2
gsoc2013-evolution-65d31b5b24719ee9d5e16459d102b2f93ec87d3f.tar.lz
gsoc2013-evolution-65d31b5b24719ee9d5e16459d102b2f93ec87d3f.tar.xz
gsoc2013-evolution-65d31b5b24719ee9d5e16459d102b2f93ec87d3f.tar.zst
gsoc2013-evolution-65d31b5b24719ee9d5e16459d102b2f93ec87d3f.zip
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
-rw-r--r--widgets/table/e-table-sort-info.c2
-rw-r--r--widgets/table/e-table-state.c2
2 files changed, 3 insertions, 1 deletions
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);