aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table.c
diff options
context:
space:
mode:
authorChris Toshok <toshok@helixcode.com>2000-12-08 07:55:56 +0800
committerChris Toshok <toshok@src.gnome.org>2000-12-08 07:55:56 +0800
commitadf19f49fbdf0e0e69a6ed80fe0cddaf4f3978d1 (patch)
treeaeb72fd07d7471fba4758833f413fd23b9687052 /widgets/table/e-table.c
parentfaa1509add9fc71ea4c3f206f0a05ee02d8be86c (diff)
downloadgsoc2013-evolution-adf19f49fbdf0e0e69a6ed80fe0cddaf4f3978d1.tar
gsoc2013-evolution-adf19f49fbdf0e0e69a6ed80fe0cddaf4f3978d1.tar.gz
gsoc2013-evolution-adf19f49fbdf0e0e69a6ed80fe0cddaf4f3978d1.tar.bz2
gsoc2013-evolution-adf19f49fbdf0e0e69a6ed80fe0cddaf4f3978d1.tar.lz
gsoc2013-evolution-adf19f49fbdf0e0e69a6ed80fe0cddaf4f3978d1.tar.xz
gsoc2013-evolution-adf19f49fbdf0e0e69a6ed80fe0cddaf4f3978d1.tar.zst
gsoc2013-evolution-adf19f49fbdf0e0e69a6ed80fe0cddaf4f3978d1.zip
set "sort_info" on our sorter when we get a new sort_info to keep things
2000-12-07 Chris Toshok <toshok@helixcode.com> * e-table.c (e_table_set_state_object): set "sort_info" on our sorter when we get a new sort_info to keep things in sync. * e-table-sorter.c (ets_set_arg): new function, allowing the setting of "sort_info". (ets_get_arg): new function, allowing the getting of "sort_info". (ets_class_init): fill in GtkObject::set_arg and get_arg. (ets_sort): set ets->needs_sorting to 0 so we don't sort unnecessarily. (e_table_sorter_model_to_sorted): we may have ets->backsorted (and should use it if we do) even if we didn't need to sort. (e_table_sorter_sorted_to_model): same, except ets->sorted. svn path=/trunk/; revision=6857
Diffstat (limited to 'widgets/table/e-table.c')
-rw-r--r--widgets/table/e-table.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/widgets/table/e-table.c b/widgets/table/e-table.c
index 15e7f2d7f6..d0404525a8 100644
--- a/widgets/table/e-table.c
+++ b/widgets/table/e-table.c
@@ -747,6 +747,10 @@ e_table_set_state_object(ETable *e_table, ETableState *state)
e_table);
}
+ if (e_table->sorter)
+ gtk_object_set(GTK_OBJECT(e_table->sorter),
+ "sort_info", e_table->sort_info,
+ NULL);
if (e_table->header_item)
gtk_object_set(GTK_OBJECT(e_table->header_item),
"ETableHeader", e_table->header,