From a7a767287fa0bc03c9e56d5ef3a791bcc1302d57 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Sat, 27 Jan 2001 22:21:10 +0000 Subject: Make home and end keys move to the beginning and end of the row if cursor 2001-01-27 Christopher James Lahey * e-table-item.c (eti_event): Make home and end keys move to the beginning and end of the row if cursor mode is set to E_TABLE_CURSOR_SIMPLE. Otherwise have %ETableSelectionModel handle them. * e-table-selection-model.c, e-table-selection-model.h: Added a "cursor_mode" argument. (e_table_selection_model_key_press): Made home and end keys move the beginning and end of the table if cursor_mode is E_TABLE_CURSOR_MODE_LINE. * e-table.c: Set the cursor-mode argument of our %ETableSelectionModel. svn path=/trunk/; revision=7864 --- widgets/table/e-table.c | 1 + 1 file changed, 1 insertion(+) (limited to 'widgets/table/e-table.c') diff --git a/widgets/table/e-table.c b/widgets/table/e-table.c index 3c9c2d2659..238183ec8d 100644 --- a/widgets/table/e-table.c +++ b/widgets/table/e-table.c @@ -1010,6 +1010,7 @@ et_real_construct (ETable *e_table, ETableModel *etm, ETableExtras *ete, gtk_object_set(GTK_OBJECT(e_table->selection), "selection_mode", specification->selection_mode, + "cursor_mode", specification->cursor_mode, NULL); e_table->model = etm; -- cgit