diff options
author | Federico Mena Quintero <federico@helixcode.com> | 2000-12-10 04:04:18 +0800 |
---|---|---|
committer | Federico Mena Quintero <federico@src.gnome.org> | 2000-12-10 04:04:18 +0800 |
commit | 9cf73d61eb344bbbbf50d6932bff5ce23f2971e6 (patch) | |
tree | b1a619efe486ed7e01f1b4b32a8bbfa4a739164a /widgets/table | |
parent | 3ec0323ff6027be46f6897b439ab4084b45666f0 (diff) | |
download | gsoc2013-evolution-9cf73d61eb344bbbbf50d6932bff5ce23f2971e6.tar.gz gsoc2013-evolution-9cf73d61eb344bbbbf50d6932bff5ce23f2971e6.tar.zst gsoc2013-evolution-9cf73d61eb344bbbbf50d6932bff5ce23f2971e6.zip |
Unref the object instead of destroying it.
2000-12-09 Federico Mena Quintero <federico@helixcode.com>
* e-table-sorted.c (e_table_sorted_new): Unref the object instead
of destroying it.
* e-table-sorted-variable.c (e_table_sorted_variable_new): Likewise.
* e-table-subset.c (e_table_subset_new): Likewise.
* e-table-subset-variable.c (e_table_subset_variable_new): Likewise.
svn path=/trunk/; revision=6888
Diffstat (limited to 'widgets/table')
-rw-r--r-- | widgets/table/e-table-sorted-variable.c | 2 | ||||
-rw-r--r-- | widgets/table/e-table-sorted.c | 2 | ||||
-rw-r--r-- | widgets/table/e-table-subset-variable.c | 2 | ||||
-rw-r--r-- | widgets/table/e-table-subset.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/widgets/table/e-table-sorted-variable.c b/widgets/table/e-table-sorted-variable.c index 53a92371ae..5fd747eaff 100644 --- a/widgets/table/e-table-sorted-variable.c +++ b/widgets/table/e-table-sorted-variable.c @@ -271,7 +271,7 @@ e_table_sorted_variable_new (ETableModel *source, ETableHeader *full_header, ETa ETableSubsetVariable *etssv = E_TABLE_SUBSET_VARIABLE (etsv); if (e_table_subset_variable_construct (etssv, source) == NULL){ - gtk_object_destroy (GTK_OBJECT (etsv)); + gtk_object_unref (GTK_OBJECT (etsv)); return NULL; } diff --git a/widgets/table/e-table-sorted.c b/widgets/table/e-table-sorted.c index 99b4dc510f..8e703311af 100644 --- a/widgets/table/e-table-sorted.c +++ b/widgets/table/e-table-sorted.c @@ -59,7 +59,7 @@ e_table_sorted_new (ETableModel *source, int col, GCompareFunc compare) int i; if (e_table_subset_construct (etss, source, nvals) == NULL){ - gtk_object_destroy (GTK_OBJECT (ets)); + gtk_object_unref (GTK_OBJECT (ets)); return NULL; } diff --git a/widgets/table/e-table-subset-variable.c b/widgets/table/e-table-subset-variable.c index e0b9096f25..c94467da16 100644 --- a/widgets/table/e-table-subset-variable.c +++ b/widgets/table/e-table-subset-variable.c @@ -113,7 +113,7 @@ e_table_subset_variable_new (ETableModel *source) ETableSubsetVariable *etssv = gtk_type_new (E_TABLE_SUBSET_VARIABLE_TYPE); if (e_table_subset_variable_construct (etssv, source) == NULL){ - gtk_object_destroy (GTK_OBJECT (etssv)); + gtk_object_unref (GTK_OBJECT (etssv)); return NULL; } diff --git a/widgets/table/e-table-subset.c b/widgets/table/e-table-subset.c index 1d4f4038bd..12e882a5f2 100644 --- a/widgets/table/e-table-subset.c +++ b/widgets/table/e-table-subset.c @@ -290,7 +290,7 @@ e_table_subset_new (ETableModel *source, const int nvals) ETableSubset *etss = gtk_type_new (E_TABLE_SUBSET_TYPE); if (e_table_subset_construct (etss, source, nvals) == NULL){ - gtk_object_destroy (GTK_OBJECT (etss)); + gtk_object_unref (GTK_OBJECT (etss)); return NULL; } |