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-leaf.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'widgets/table/e-table-group-leaf.c') diff --git a/widgets/table/e-table-group-leaf.c b/widgets/table/e-table-group-leaf.c index 50241f9990..29273c4f73 100644 --- a/widgets/table/e-table-group-leaf.c +++ b/widgets/table/e-table-group-leaf.c @@ -198,6 +198,17 @@ etgl_select_row (ETableGroup *etg, gint row) e_table_item_focus(etgl->item, 0, row); } +static int +etgl_get_selected_view_row (ETableGroup *etg) +{ + ETableGroupLeaf *etgl = E_TABLE_GROUP_LEAF (etg); + int row; + gtk_object_get(GTK_OBJECT(etgl->item), + "cursor_row", &row, + NULL); + return row; +} + static void etgl_unfocus (ETableGroup *etg) { @@ -321,6 +332,7 @@ etgl_class_init (GtkObjectClass *object_class) e_group_class->set_focus = etgl_set_focus; e_group_class->select_row = etgl_select_row; e_group_class->unfocus = etgl_unfocus; + e_group_class->get_selected_view_row = etgl_get_selected_view_row; e_group_class->get_focus_column = etgl_get_focus_column; gtk_object_add_arg_type ("ETableGroupLeaf::drawgrid", GTK_TYPE_BOOL, -- cgit v1.2.3