aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-selection-model.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-08-10 03:40:04 +0800
committerChris Lahey <clahey@src.gnome.org>2000-08-10 03:40:04 +0800
commit62ca9f5fd718312c9ce4af70c9ecd0f2ab2b5fcd (patch)
tree30c82ef33f58f86b26d70fb43299d423be2348b2 /widgets/table/e-table-selection-model.c
parent4bbaf023cbc4e7b4b8da21de2bc13234ff54d236 (diff)
downloadgsoc2013-evolution-62ca9f5fd718312c9ce4af70c9ecd0f2ab2b5fcd.tar.gz
gsoc2013-evolution-62ca9f5fd718312c9ce4af70c9ecd0f2ab2b5fcd.tar.zst
gsoc2013-evolution-62ca9f5fd718312c9ce4af70c9ecd0f2ab2b5fcd.zip
Make right click select if the current row is not selected.
2000-08-09 Christopher James Lahey <clahey@helixcode.com> * 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
Diffstat (limited to 'widgets/table/e-table-selection-model.c')
-rw-r--r--widgets/table/e-table-selection-model.c13
1 files changed, 13 insertions, 0 deletions
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)
{