aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-table-sort-info.h
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2014-02-25 18:09:34 +0800
committerMilan Crha <mcrha@redhat.com>2014-02-25 18:09:34 +0800
commit3a91092b4af34c9429adf92dc3af73cc3d85ddb4 (patch)
tree8c86825d59a76d0e4a2d26927af0b55467d4008b /e-util/e-table-sort-info.h
parentc0c420014922e0fb64d63130a9a0b82458e790dc (diff)
downloadgsoc2013-evolution-3a91092b4af34c9429adf92dc3af73cc3d85ddb4.tar
gsoc2013-evolution-3a91092b4af34c9429adf92dc3af73cc3d85ddb4.tar.gz
gsoc2013-evolution-3a91092b4af34c9429adf92dc3af73cc3d85ddb4.tar.bz2
gsoc2013-evolution-3a91092b4af34c9429adf92dc3af73cc3d85ddb4.tar.lz
gsoc2013-evolution-3a91092b4af34c9429adf92dc3af73cc3d85ddb4.tar.xz
gsoc2013-evolution-3a91092b4af34c9429adf92dc3af73cc3d85ddb4.tar.zst
gsoc2013-evolution-3a91092b4af34c9429adf92dc3af73cc3d85ddb4.zip
ETree/ETable: Allow easier adding of columns for sorting
This extends behaviour of left-clicking column header which is not used for sorting yet in an ETree/ETable in a way: a) alone left-click behaves like before, all current sorting is dropped and the ETree/ETable is sorted only by that column b) left-click with pressed Ctrl key adds the column as the first to sort by c) left-click with pressed Ctrl+Shift adds the column as the last to sort by
Diffstat (limited to 'e-util/e-table-sort-info.h')
-rw-r--r--e-util/e-table-sort-info.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/e-util/e-table-sort-info.h b/e-util/e-table-sort-info.h
index 1b1191108a..47ab851c4a 100644
--- a/e-util/e-table-sort-info.h
+++ b/e-util/e-table-sort-info.h
@@ -119,6 +119,11 @@ void e_table_sort_info_sorting_set_nth
guint n,
ETableColumnSpecification *spec,
GtkSortType sort_type);
+void e_table_sort_info_sorting_insert
+ (ETableSortInfo *sort_info,
+ guint n,
+ ETableColumnSpecification *spec,
+ GtkSortType sort_type);
void e_table_sort_info_load_from_node
(ETableSortInfo *sort_info,
xmlNode *node,