diff options
author | Christopher James Lahey <clahey@ximian.com> | 2001-02-15 17:34:46 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2001-02-15 17:34:46 +0800 |
commit | 3080e47960f93bfa08bbdac6ed2af50372753d93 (patch) | |
tree | 82881ee101bb3f8cc764ca366bca9ee2403deefd /widgets/table | |
parent | 29a1d573b77e2e5fe321f55acc33e92e1a397a6c (diff) | |
download | gsoc2013-evolution-3080e47960f93bfa08bbdac6ed2af50372753d93.tar gsoc2013-evolution-3080e47960f93bfa08bbdac6ed2af50372753d93.tar.gz gsoc2013-evolution-3080e47960f93bfa08bbdac6ed2af50372753d93.tar.bz2 gsoc2013-evolution-3080e47960f93bfa08bbdac6ed2af50372753d93.tar.lz gsoc2013-evolution-3080e47960f93bfa08bbdac6ed2af50372753d93.tar.xz gsoc2013-evolution-3080e47960f93bfa08bbdac6ed2af50372753d93.tar.zst gsoc2013-evolution-3080e47960f93bfa08bbdac6ed2af50372753d93.zip |
Made it so that if you set the row or col to something not equal to -1, it
2001-02-15 Christopher James Lahey <clahey@ximian.com>
* 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
Diffstat (limited to 'widgets/table')
-rw-r--r-- | widgets/table/e-table-selection-model.c | 6 |
1 files changed, 6 insertions, 0 deletions
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); |