aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-item.c
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/table/e-table-item.c')
-rw-r--r--widgets/table/e-table-item.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/widgets/table/e-table-item.c b/widgets/table/e-table-item.c
index 9eca340472..6bf8bb702b 100644
--- a/widgets/table/e-table-item.c
+++ b/widgets/table/e-table-item.c
@@ -1617,6 +1617,16 @@ e_table_item_is_row_selected (ETableItem *eti, int row)
return FALSE;
}
+void e_table_item_selected_row_foreach (ETableItem *eti,
+ ETableForeachFunc func,
+ gpointer closure)
+{
+ GSList *list = eti->selection;
+ for (; list; list = g_slist_next(list)) {
+ (func) (GPOINTER_TO_INT(list->data), closure);
+ }
+}
+
static void
e_table_item_unselect_row (ETableItem *eti, int row)
{