From 7b9622f8e072a98ae8dcf449347a6d6383ba4cea Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Wed, 11 Jul 2001 10:30:51 +0000 Subject: Created this function for key presses that move in some way other than 2001-07-11 Christopher James Lahey * gal/widgets/e-selection-model.c, gal/widgets/e-selection-model.h (e_selection_model_select_as_key_press): Created this function for key presses that move in some way other than just to the next or previous row. (e_selection_model_key_press): Use e_selection_model_select_as_key_press for handling home and end here. svn path=/trunk/; revision=10993 --- widgets/table/e-table.c | 8 ++++---- widgets/table/e-tree.c | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'widgets/table') diff --git a/widgets/table/e-table.c b/widgets/table/e-table.c index 8b6a1b8d0d..a11d940bfe 100644 --- a/widgets/table/e-table.c +++ b/widgets/table/e-table.c @@ -490,8 +490,8 @@ group_key_press (ETableGroup *etg, int row, int col, GdkEvent *event, ETable *et 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); - col_local = e_selection_model_cursor_col(E_SELECTION_MODEL (et->selection)); - e_selection_model_do_something(E_SELECTION_MODEL (et->selection), row_local, col_local, key->state); + col_local = e_selection_model_cursor_col (E_SELECTION_MODEL (et->selection)); + e_selection_model_select_as_key_press (E_SELECTION_MODEL (et->selection), row_local, col_local, key->state); return_val = 1; break; case GDK_Page_Up: @@ -500,8 +500,8 @@ group_key_press (ETableGroup *etg, int row, int col, GdkEvent *event, ETable *et 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); - col_local = e_selection_model_cursor_col(E_SELECTION_MODEL (et->selection)); - e_selection_model_do_something(E_SELECTION_MODEL (et->selection), row_local, col_local, key->state); + col_local = e_selection_model_cursor_col (E_SELECTION_MODEL (et->selection)); + e_selection_model_select_as_key_press (E_SELECTION_MODEL (et->selection), row_local, col_local, key->state); return_val = 1; break; default: diff --git a/widgets/table/e-tree.c b/widgets/table/e-tree.c index 29555ed785..4af1cc2dab 100644 --- a/widgets/table/e-tree.c +++ b/widgets/table/e-tree.c @@ -539,8 +539,8 @@ item_key_press (ETableItem *eti, int row, int col, GdkEvent *event, ETree *et) 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); - col_local = e_selection_model_cursor_col(E_SELECTION_MODEL (et->priv->selection)); - e_selection_model_do_something(E_SELECTION_MODEL (et->priv->selection), row_local, col_local, key->state); + col_local = e_selection_model_cursor_col (E_SELECTION_MODEL (et->priv->selection)); + e_selection_model_select_as_key_press (E_SELECTION_MODEL (et->priv->selection), row_local, col_local, key->state); return_val = 1; break; case GDK_Page_Up: @@ -549,8 +549,8 @@ item_key_press (ETableItem *eti, int row, int col, GdkEvent *event, ETree *et) 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); - col_local = e_selection_model_cursor_col(E_SELECTION_MODEL (et->priv->selection)); - e_selection_model_do_something(E_SELECTION_MODEL (et->priv->selection), row_local, col_local, key->state); + col_local = e_selection_model_cursor_col (E_SELECTION_MODEL (et->priv->selection)); + e_selection_model_select_as_key_press (E_SELECTION_MODEL (et->priv->selection), row_local, col_local, key->state); return_val = 1; break; case '=': -- cgit v1.2.3