From 0a898d1c96145bcc37fef5dad685f8c47bd98189 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Fri, 2 Jun 2000 00:18:00 +0000 Subject: Added e_table_get_selected_view_row. 2000-06-01 Christopher James Lahey * e-table-group-container.c, e-table-group-leaf.c, e-table-group.c, e-table-group.h, e-table-item.c, e-table.c, e-table.h: Added e_table_get_selected_view_row. svn path=/trunk/; revision=3351 --- widgets/table/e-table-group.c | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) (limited to 'widgets/table/e-table-group.c') diff --git a/widgets/table/e-table-group.c b/widgets/table/e-table-group.c index 4258640a97..2e7f94bb1f 100644 --- a/widgets/table/e-table-group.c +++ b/widgets/table/e-table-group.c @@ -180,6 +180,18 @@ e_table_group_select_row (ETableGroup *etg, ETG_CLASS (etg)->select_row (etg, row); } +int +e_table_group_get_selected_view_row (ETableGroup *etg) +{ + g_return_val_if_fail (etg != NULL, -1); + g_return_val_if_fail (E_IS_TABLE_GROUP (etg), -1); + + if (ETG_CLASS (etg)->get_selected_view_row) + return ETG_CLASS (etg)->get_selected_view_row (etg); + else + return -1; +} + void e_table_group_unfocus (ETableGroup *etg) { @@ -314,11 +326,12 @@ etg_class_init (GtkObjectClass *object_class) klass->add = NULL; klass->add_all = NULL; klass->remove = NULL; - klass->get_count = NULL; - klass->row_count = NULL; - klass->increment = NULL; - klass->set_focus = NULL; + klass->get_count = NULL; + klass->row_count = NULL; + klass->increment = NULL; + klass->set_focus = NULL; klass->select_row = NULL; + klass->get_selected_view_row = NULL; klass->unfocus = NULL; klass->get_focus = etg_get_focus; klass->get_ecol = NULL; -- cgit