aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/e-table/e-table-selection-model.c
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/e-table/e-table-selection-model.c')
-rw-r--r--widgets/e-table/e-table-selection-model.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/widgets/e-table/e-table-selection-model.c b/widgets/e-table/e-table-selection-model.c
index a40298c992..09b1d6bf93 100644
--- a/widgets/e-table/e-table-selection-model.c
+++ b/widgets/e-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)
{