From fb0a5ab40383987b3e0a7832b9601282acce05f4 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Thu, 2 Aug 2001 18:21:45 +0000 Subject: Changed all e_table_model_is_cell_editable calls in this file to be on the 2001-08-02 Christopher James Lahey * e-table-item.c: Changed all e_table_model_is_cell_editable calls in this file to be on the model column instead of the view column. svn path=/trunk/; revision=11589 --- widgets/table/e-table-item.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'widgets') diff --git a/widgets/table/e-table-item.c b/widgets/table/e-table-item.c index ad1e9fef5a..d09465e68f 100644 --- a/widgets/table/e-table-item.c +++ b/widgets/table/e-table-item.c @@ -1762,7 +1762,7 @@ eti_event (GnomeCanvasItem *item, GdkEvent *e) eti->click_count ++; eti->row_guess = row; - if ((!eti_editing(eti)) && e_table_model_is_cell_editable(eti->table_model, col, row)) { + if ((!eti_editing(eti)) && e_table_model_is_cell_editable(eti->table_model, cursor_col, row)) { e_table_item_enter_edit (eti, col, row); } @@ -2030,7 +2030,7 @@ eti_event (GnomeCanvasItem *item, GdkEvent *e) NULL); if (cursor_col >= 0 && cursor_row >= 0 && return_val && - (!eti_editing(eti)) && e_table_model_is_cell_editable(eti->table_model, model_to_view_col(eti, cursor_col), model_to_view_row(eti, cursor_row))) { + (!eti_editing(eti)) && e_table_model_is_cell_editable(eti->table_model, cursor_col, model_to_view_row (eti, cursor_row))) { e_table_item_enter_edit (eti, model_to_view_col(eti, cursor_col), model_to_view_row(eti, cursor_row)); } break; @@ -2090,7 +2090,7 @@ eti_event (GnomeCanvasItem *item, GdkEvent *e) gint col, row; row = model_to_view_row(eti, cursor_row); col = model_to_view_col(eti, cursor_col); - if (col != -1 && row != -1 && e_table_model_is_cell_editable(eti->table_model, col, row)) { + if (col != -1 && row != -1 && e_table_model_is_cell_editable(eti->table_model, cursor_col, row)) { e_table_item_enter_edit (eti, col, row); } } -- cgit