From 8fb12c9538858bbfdaa6e74f8c08c6f86acbe66d Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Thu, 24 Feb 2000 08:23:00 +0000 Subject: Made keyboard focus navigation work across groups. 2000-02-24 Christopher James Lahey * e-table-item.c: Made keyboard focus navigation work across groups. * e-table-header.c: Made e_table_header_col_diff not crash if you give it a column less than 0 (it truncates negative column values to 0.) * e-table-group.c, e-table-group.h: Added e_table_group_get_header to get the ETableHeader for this ETableGroup. * e-table-group-container.c: Made shift tab work. svn path=/trunk/; revision=1917 --- widgets/table/e-table-header.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'widgets/table/e-table-header.c') diff --git a/widgets/table/e-table-header.c b/widgets/table/e-table-header.c index af3989beff..91aa366932 100644 --- a/widgets/table/e-table-header.c +++ b/widgets/table/e-table-header.c @@ -1,3 +1,4 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* * E-table-col-head.c: TableColHead implementation * @@ -328,13 +329,14 @@ e_table_header_col_diff (ETableHeader *eth, int start_col, int end_col) g_return_val_if_fail (E_IS_TABLE_HEADER (eth), 0); { - const int max_col = eth->col_count; + if ( start_col < 0 ) + start_col = 0; + if ( end_col > eth->col_count ) + end_col = eth->col_count - 1; total = 0; for (col = start_col; col < end_col; col++){ - if (col == max_col) - break; total += eth->columns [col]->width; } } -- cgit v1.2.3