aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/e-table/e-table-item.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-06-30 03:22:24 +0800
committerChris Lahey <clahey@src.gnome.org>2000-06-30 03:22:24 +0800
commit3649d5dc6d7279d6c218d241232dea73c5c773d2 (patch)
tree89520e235371866a92f889e885eb30ed09f44b6c /widgets/e-table/e-table-item.c
parentf0bcf06559405a3de5271f4aeb3472c8a2b7aeb3 (diff)
downloadgsoc2013-evolution-3649d5dc6d7279d6c218d241232dea73c5c773d2.tar
gsoc2013-evolution-3649d5dc6d7279d6c218d241232dea73c5c773d2.tar.gz
gsoc2013-evolution-3649d5dc6d7279d6c218d241232dea73c5c773d2.tar.bz2
gsoc2013-evolution-3649d5dc6d7279d6c218d241232dea73c5c773d2.tar.lz
gsoc2013-evolution-3649d5dc6d7279d6c218d241232dea73c5c773d2.tar.xz
gsoc2013-evolution-3649d5dc6d7279d6c218d241232dea73c5c773d2.tar.zst
gsoc2013-evolution-3649d5dc6d7279d6c218d241232dea73c5c773d2.zip
From mail:
2000-06-29 Christopher James Lahey <clahey@helixcode.com> * message-list.c, mail-ops.c: Changed the name of e_table_select_row to e_table_set_cursor_row. From widgets/e-table: 2000-06-29 Christopher James Lahey <clahey@helixcode.com> * e-table-click-to-add.c: Made this appear a bit better. * e-table-defines.h: Cleaned this up a bit, added ETableForeachFunc. * e-table-group-container.c, e-table-group-leaf.c, e-table-group.c, e-table-group.h, e-table-item.c, e-table-item.h, e-table.c, e-table.h: Changed e_table_select_row to e_table_set_cursor_row. Changed e_table_get_selected_view_row to e_table_get_cursor_row. Added e_table_selected_row_foreach. * e-table-header-item.c: Fixed some warnings. * e-table-sorted-variable.c: Removed some unneeded debugging print statments. * e-tree-example-1.c: Changed e_table_get_selected_view_row to e_table_get_cursor_row. svn path=/trunk/; revision=3799
Diffstat (limited to 'widgets/e-table/e-table-item.c')
-rw-r--r--widgets/e-table/e-table-item.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/widgets/e-table/e-table-item.c b/widgets/e-table/e-table-item.c
index 9eca340472..6bf8bb702b 100644
--- a/widgets/e-table/e-table-item.c
+++ b/widgets/e-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)
{