From adf19f49fbdf0e0e69a6ed80fe0cddaf4f3978d1 Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Thu, 7 Dec 2000 23:55:56 +0000 Subject: set "sort_info" on our sorter when we get a new sort_info to keep things 2000-12-07 Chris Toshok * 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 --- widgets/table/e-table.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'widgets/table/e-table.c') 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, -- cgit