From 0a71e607b1840e9e984337a02d09f88c750f7359 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Wed, 11 Jul 2001 10:17:52 +0000 Subject: Made the amount to scroll by smaller here. 2001-07-11 Christopher James Lahey * e-table.c (group_key_press), e-tree.c (item_key_press): Made the amount to scroll by smaller here. svn path=/trunk/; revision=10992 --- widgets/table/e-table.c | 4 ++-- widgets/table/e-tree.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/widgets/table/e-table.c b/widgets/table/e-table.c index dca3a74049..8b6a1b8d0d 100644 --- a/widgets/table/e-table.c +++ b/widgets/table/e-table.c @@ -486,7 +486,7 @@ group_key_press (ETableGroup *etg, int row, int col, GdkEvent *event, ETable *et switch (key->keyval) { case GDK_Page_Down: vadj = gtk_layout_get_vadjustment (GTK_LAYOUT (et->table_canvas)); - y = CLAMP(vadj->value + (2 * vadj->page_size - 20), 0, vadj->upper); + y = CLAMP(vadj->value + (2 * vadj->page_size - 50), 0, vadj->upper); y -= vadj->value; e_table_get_cell_at (et, 30, y, &row_local, &col_local); row_local = e_table_view_to_model_row (et, row_local); @@ -496,7 +496,7 @@ group_key_press (ETableGroup *etg, int row, int col, GdkEvent *event, ETable *et break; case GDK_Page_Up: vadj = gtk_layout_get_vadjustment (GTK_LAYOUT (et->table_canvas)); - y = CLAMP(vadj->value - (vadj->page_size - 20), 0, vadj->upper); + y = CLAMP(vadj->value - (vadj->page_size - 50), 0, vadj->upper); y -= vadj->value; e_table_get_cell_at (et, 30, y, &row_local, &col_local); row_local = e_table_view_to_model_row (et, row_local); diff --git a/widgets/table/e-tree.c b/widgets/table/e-tree.c index 5064e582c6..29555ed785 100644 --- a/widgets/table/e-tree.c +++ b/widgets/table/e-tree.c @@ -535,7 +535,7 @@ item_key_press (ETableItem *eti, int row, int col, GdkEvent *event, ETree *et) switch (key->keyval) { case GDK_Page_Down: vadj = gtk_layout_get_vadjustment (GTK_LAYOUT (et->priv->table_canvas)); - y = CLAMP(vadj->value + (2 * vadj->page_size - 20), 0, vadj->upper); + y = CLAMP(vadj->value + (2 * vadj->page_size - 50), 0, vadj->upper); y -= vadj->value; e_tree_get_cell_at (et, 30, y, &row_local, &col_local); row_local = e_tree_view_to_model_row (et, row_local); @@ -545,7 +545,7 @@ item_key_press (ETableItem *eti, int row, int col, GdkEvent *event, ETree *et) break; case GDK_Page_Up: vadj = gtk_layout_get_vadjustment (GTK_LAYOUT (et->priv->table_canvas)); - y = CLAMP(vadj->value - (vadj->page_size - 20), 0, vadj->upper); + y = CLAMP(vadj->value - (vadj->page_size - 50), 0, vadj->upper); y -= vadj->value; e_tree_get_cell_at (et, 30, y, &row_local, &col_local); row_local = e_tree_view_to_model_row (et, row_local); -- cgit