aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-sort-info.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-sort-info.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-sort-info.c')
-rw-r--r--widgets/table/e-table-sort-info.c17
1 files changed, 17 insertions, 0 deletions
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;
+}