From 62ca9f5fd718312c9ce4af70c9ecd0f2ab2b5fcd Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Wed, 9 Aug 2000 19:40:04 +0000 Subject: Make right click select if the current row is not selected. 2000-08-09 Christopher James Lahey * e-table-item.c, e-table-selection-model.c, e-table-selection-model.h: Make right click select if the current row is not selected. svn path=/trunk/; revision=4658 --- widgets/table/e-table-selection-model.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'widgets/table/e-table-selection-model.c') diff --git a/widgets/table/e-table-selection-model.c b/widgets/table/e-table-selection-model.c index a40298c992..09b1d6bf93 100644 --- a/widgets/table/e-table-selection-model.c +++ b/widgets/table/e-table-selection-model.c @@ -446,6 +446,19 @@ void e_table_selection_model_do_something (ETableSelectionModel } } +void e_table_selection_model_maybe_do_something (ETableSelectionModel *selection, + guint row, + guint col, + GdkModifierType state) +{ + if (e_table_selection_model_is_row_selected(selection, row)) { + selection->cursor_row = row; + selection->cursor_col = col; + } else { + e_table_selection_model_do_something(selection, row, col, state); + } +} + void e_table_selection_model_clear(ETableSelectionModel *selection) { -- cgit