aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-tree-selection-model.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-06-10 12:42:22 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-06-10 12:42:22 +0800
commitdf7a1be4857b4d1a8980a85c9353d5215c40719a (patch)
tree4829356b358786aaa8c1fde76aca7259884c6ee0 /widgets/table/e-tree-selection-model.c
parent6fb3b7c6de68f783220aaa18996803508c6f1102 (diff)
downloadgsoc2013-evolution-df7a1be4857b4d1a8980a85c9353d5215c40719a.tar
gsoc2013-evolution-df7a1be4857b4d1a8980a85c9353d5215c40719a.tar.gz
gsoc2013-evolution-df7a1be4857b4d1a8980a85c9353d5215c40719a.tar.bz2
gsoc2013-evolution-df7a1be4857b4d1a8980a85c9353d5215c40719a.tar.lz
gsoc2013-evolution-df7a1be4857b4d1a8980a85c9353d5215c40719a.tar.xz
gsoc2013-evolution-df7a1be4857b4d1a8980a85c9353d5215c40719a.tar.zst
gsoc2013-evolution-df7a1be4857b4d1a8980a85c9353d5215c40719a.zip
add new api for setting the whole selection in one go. See #59546.
2004-06-10 Not Zed <NotZed@Ximian.com> * e-tree-selection-model.c (e_tree_selection_model_select_paths): add new api for setting the whole selection in one go. See #59546. svn path=/trunk/; revision=26277
Diffstat (limited to 'widgets/table/e-tree-selection-model.c')
-rw-r--r--widgets/table/e-tree-selection-model.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/widgets/table/e-tree-selection-model.c b/widgets/table/e-tree-selection-model.c
index 8aa8cb3239..6d45b6257c 100644
--- a/widgets/table/e-tree-selection-model.c
+++ b/widgets/table/e-tree-selection-model.c
@@ -672,6 +672,20 @@ e_tree_selection_model_select_single_path (ETreeSelectionModel *etsm, ETreePath
}
void
+e_tree_selection_model_select_paths (ETreeSelectionModel *etsm, GPtrArray *paths)
+{
+ ETreePath path;
+ int i;
+
+ for (i=0;i<paths->len;i++) {
+ path = paths->pdata[i];
+ change_one_path(etsm, path, TRUE);
+ }
+
+ e_selection_model_selection_changed(E_SELECTION_MODEL(etsm));
+}
+
+void
e_tree_selection_model_add_to_selection (ETreeSelectionModel *etsm, ETreePath path)
{
change_one_path(etsm, path, TRUE);