From 3080e47960f93bfa08bbdac6ed2af50372753d93 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Thu, 15 Feb 2001 09:34:46 +0000 Subject: Made it so that if you set the row or col to something not equal to -1, it 2001-02-15 Christopher James Lahey * e-table-selection-model.c (e_table_selection_model_do_something): Made it so that if you set the row or col to something not equal to -1, it makes sure that the other one is also not equal to -1. svn path=/trunk/; revision=8240 --- widgets/table/e-table-selection-model.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'widgets/table') diff --git a/widgets/table/e-table-selection-model.c b/widgets/table/e-table-selection-model.c index 636c3a4f32..42734bd74e 100644 --- a/widgets/table/e-table-selection-model.c +++ b/widgets/table/e-table-selection-model.c @@ -536,6 +536,12 @@ e_table_selection_model_do_something (ETableSelectionModel *selection, { gint shift_p = state & GDK_SHIFT_MASK; gint ctrl_p = state & GDK_CONTROL_MASK; + + if (row == -1 && col != -1) + row = 0; + if (col == -1 && row != -1) + col = 0; + if (selection->row_count < 0) { if (selection->model) { selection->row_count = e_table_model_row_count(selection->model); -- cgit v1.2.3