From 707cce7733ad5bd9fda46ed3b48259df4e2d73f0 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Mon, 5 Feb 2001 21:16:13 +0000 Subject: Added a "changed" signal. 2001-02-05 Christopher James Lahey * 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 --- widgets/table/e-table-sort-info.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'widgets/table/e-table-sort-info.c') diff --git a/widgets/table/e-table-sort-info.c b/widgets/table/e-table-sort-info.c index 47f22ee5ff..c723ded8d8 100644 --- a/widgets/table/e-table-sort-info.c +++ b/widgets/table/e-table-sort-info.c @@ -428,3 +428,20 @@ e_table_sort_info_save_to_node (ETableSortInfo *info, return grouping; } +ETableSortInfo * +e_table_sort_info_duplicate (ETableSortInfo *info) +{ + ETableSortInfo *new_info; + + new_info = e_table_sort_info_new(); + + new_info->group_count = info->group_count; + new_info->groupings = g_new(ETableSortColumn, new_info->group_count); + memmove(new_info->groupings, info->groupings, sizeof (ETableSortColumn) * new_info->group_count); + + new_info->sort_count = info->sort_count; + new_info->sortings = g_new(ETableSortColumn, new_info->sort_count); + memmove(new_info->sortings, info->sortings, sizeof (ETableSortColumn) * new_info->sort_count); + + return new_info; +} -- cgit v1.2.3