aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table.c
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/table/e-table.c')
-rw-r--r--widgets/table/e-table.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/widgets/table/e-table.c b/widgets/table/e-table.c
index 6da35fea39..e55e9ee010 100644
--- a/widgets/table/e-table.c
+++ b/widgets/table/e-table.c
@@ -731,11 +731,21 @@ e_table_set_state_object(ETable *e_table, ETableState *state)
if (e_table->header)
gtk_object_ref(GTK_OBJECT(e_table->header));
- if (e_table->sort_info)
+ if (e_table->sort_info) {
+ if (e_table->group_info_change_id)
+ gtk_signal_disconnect (GTK_OBJECT (e_table->sort_info),
+ 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)
+ if (e_table->sort_info) {
gtk_object_ref(GTK_OBJECT(e_table->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);
+ }
if (e_table->header_item)
gtk_object_set(GTK_OBJECT(e_table->header_item),