aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2001-03-26 00:55:03 +0800
committerDan Winship <danw@src.gnome.org>2001-03-26 00:55:03 +0800
commit768085542752167f63ed51a614dd884d4d72fb21 (patch)
tree579187378665d27e6683592caec63f71839ee9fa /widgets
parente29d5a8a7adbc9363d4a054b6ab70ada182ae15d (diff)
downloadgsoc2013-evolution-768085542752167f63ed51a614dd884d4d72fb21.tar
gsoc2013-evolution-768085542752167f63ed51a614dd884d4d72fb21.tar.gz
gsoc2013-evolution-768085542752167f63ed51a614dd884d4d72fb21.tar.bz2
gsoc2013-evolution-768085542752167f63ed51a614dd884d4d72fb21.tar.lz
gsoc2013-evolution-768085542752167f63ed51a614dd884d4d72fb21.tar.xz
gsoc2013-evolution-768085542752167f63ed51a614dd884d4d72fb21.tar.zst
gsoc2013-evolution-768085542752167f63ed51a614dd884d4d72fb21.zip
ref the sort_info taken from the state object. Ditto. Fixes the last ETree
* e-table.c (et_real_construct): ref the sort_info taken from the state object. * e-tree.c (et_real_construct): Ditto. Fixes the last ETree crash-on-exit bug for me. svn path=/trunk/; revision=8929
Diffstat (limited to 'widgets')
-rw-r--r--widgets/table/e-table.c1
-rw-r--r--widgets/table/e-tree.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/widgets/table/e-table.c b/widgets/table/e-table.c
index f1f68242f0..4a2edcb6f1 100644
--- a/widgets/table/e-table.c
+++ b/widgets/table/e-table.c
@@ -961,6 +961,7 @@ et_real_construct (ETable *e_table, ETableModel *etm, ETableExtras *ete,
e_table->horizontal_scrolling = specification->horizontal_scrolling;
e_table->sort_info = state->sort_info;
+ gtk_object_ref (GTK_OBJECT (state->sort_info));
e_table->group_info_change_id =
gtk_signal_connect (GTK_OBJECT (e_table->sort_info), "group_info_changed",
diff --git a/widgets/table/e-tree.c b/widgets/table/e-tree.c
index ba394d3f71..773089df3f 100644
--- a/widgets/table/e-tree.c
+++ b/widgets/table/e-tree.c
@@ -734,6 +734,7 @@ et_real_construct (ETree *e_tree, ETreeModel *etm, ETableExtras *ete,
e_tree->horizontal_scrolling = specification->horizontal_scrolling;
e_tree->sort_info = state->sort_info;
+ gtk_object_ref (GTK_OBJECT (e_tree->sort_info));
gtk_object_set(GTK_OBJECT(e_tree->header),
"sort_info", e_tree->sort_info,