aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-07-11 18:30:51 +0800
committerChris Lahey <clahey@src.gnome.org>2001-07-11 18:30:51 +0800
commit7b9622f8e072a98ae8dcf449347a6d6383ba4cea (patch)
treebb548bb2265e68b8e378fe0f7482b96c41b392fa /widgets/table
parent0a71e607b1840e9e984337a02d09f88c750f7359 (diff)
downloadgsoc2013-evolution-7b9622f8e072a98ae8dcf449347a6d6383ba4cea.tar.gz
gsoc2013-evolution-7b9622f8e072a98ae8dcf449347a6d6383ba4cea.tar.zst
gsoc2013-evolution-7b9622f8e072a98ae8dcf449347a6d6383ba4cea.zip
Created this function for key presses that move in some way other than
2001-07-11 Christopher James Lahey <clahey@ximian.com> * 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
Diffstat (limited to 'widgets/table')
-rw-r--r--widgets/table/e-table.c8
-rw-r--r--widgets/table/e-tree.c8
2 files changed, 8 insertions, 8 deletions
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 '=':