aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2001-02-06 05:16:13 +0800
committerChris Lahey <clahey@src.gnome.org>2001-02-06 05:16:13 +0800
commit707cce7733ad5bd9fda46ed3b48259df4e2d73f0 (patch)
tree07aa6939683351d1633da650fb1f9b4580842641 /widgets/table/e-table.c
parentf5ab7142647eaee7b701bc49bc8ce1ba0f3455fb (diff)
downloadgsoc2013-evolution-707cce7733ad5bd9fda46ed3b48259df4e2d73f0.tar
gsoc2013-evolution-707cce7733ad5bd9fda46ed3b48259df4e2d73f0.tar.gz
gsoc2013-evolution-707cce7733ad5bd9fda46ed3b48259df4e2d73f0.tar.bz2
gsoc2013-evolution-707cce7733ad5bd9fda46ed3b48259df4e2d73f0.tar.lz
gsoc2013-evolution-707cce7733ad5bd9fda46ed3b48259df4e2d73f0.tar.xz
gsoc2013-evolution-707cce7733ad5bd9fda46ed3b48259df4e2d73f0.tar.zst
gsoc2013-evolution-707cce7733ad5bd9fda46ed3b48259df4e2d73f0.zip
Added a "changed" signal.
2001-02-05 Christopher James Lahey <clahey@helixcode.com> * e-table-config.c, e-table-config.h (dialog_apply): Added a "changed" signal. * e-table-sort-info.c, e-table-sort-info.h (e_table_sort_info_duplicate): Added this function. * e-table.c (e_table_set_state_object): Duplicate the state's sort_info object here. svn path=/trunk/; revision=7985
Diffstat (limited to 'widgets/table/e-table.c')
-rw-r--r--widgets/table/e-table.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/widgets/table/e-table.c b/widgets/table/e-table.c
index 238183ec8d..19db9e807e 100644
--- a/widgets/table/e-table.c
+++ b/widgets/table/e-table.c
@@ -831,16 +831,16 @@ e_table_set_state_object(ETable *e_table, ETableState *state)
e_table->group_info_change_id);
gtk_object_unref(GTK_OBJECT(e_table->sort_info));
}
- e_table->sort_info = state->sort_info;
- if (e_table->sort_info) {
- gtk_object_ref(GTK_OBJECT(e_table->sort_info));
+ if (state->sort_info) {
+ e_table->sort_info = e_table_sort_info_duplicate(state->sort_info);
e_table->group_info_change_id =
- gtk_signal_connect (
- GTK_OBJECT (e_table->sort_info),
- "group_info_changed",
- GTK_SIGNAL_FUNC (sort_info_changed),
- e_table);
+ gtk_signal_connect (GTK_OBJECT (e_table->sort_info),
+ "group_info_changed",
+ GTK_SIGNAL_FUNC (sort_info_changed),
+ e_table);
}
+ else
+ e_table->sort_info = NULL;
if (e_table->sorter)
gtk_object_set(GTK_OBJECT(e_table->sorter),