aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-item.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-10-27 07:52:06 +0800
committerChris Lahey <clahey@src.gnome.org>2001-10-27 07:52:06 +0800
commit6450290c2082bdd938d3f8c5615714aea1127d1a (patch)
treeca0c2c8cbb6113fe55babc38799508bbfb1b828e /widgets/table/e-table-item.c
parenta590fb65bf76a69ba7236d1677a76ffa801d6b9b (diff)
downloadgsoc2013-evolution-6450290c2082bdd938d3f8c5615714aea1127d1a.tar
gsoc2013-evolution-6450290c2082bdd938d3f8c5615714aea1127d1a.tar.gz
gsoc2013-evolution-6450290c2082bdd938d3f8c5615714aea1127d1a.tar.bz2
gsoc2013-evolution-6450290c2082bdd938d3f8c5615714aea1127d1a.tar.lz
gsoc2013-evolution-6450290c2082bdd938d3f8c5615714aea1127d1a.tar.xz
gsoc2013-evolution-6450290c2082bdd938d3f8c5615714aea1127d1a.tar.zst
gsoc2013-evolution-6450290c2082bdd938d3f8c5615714aea1127d1a.zip
Chain the cursor_activated signal even if the row is -1.
2001-10-26 Christopher James Lahey <clahey@ximian.com> * e-table-item.c (eti_cursor_activated): Chain the cursor_activated signal even if the row is -1. * e-tree.c (item_cursor_activated): Don't error out here if path is NULL. svn path=/trunk/; revision=14185
Diffstat (limited to 'widgets/table/e-table-item.c')
-rw-r--r--widgets/table/e-table-item.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/widgets/table/e-table-item.c b/widgets/table/e-table-item.c
index ab6a65725b..1198de4d2e 100644
--- a/widgets/table/e-table-item.c
+++ b/widgets/table/e-table-item.c
@@ -2810,16 +2810,13 @@ eti_cursor_activated (ESelectionModel *selection, int row, int col, ETableItem *
view_row = model_to_view_row(eti, row);
view_col = model_to_view_col(eti, col);
- if (view_row == -1 || view_col == -1) {
- e_table_item_leave_edit_(eti);
- return;
- }
-
- if (! e_table_model_has_change_pending (eti->table_model)) {
- if (!eti->in_key_press) {
- eti_show_cursor(eti, DOUBLE_CLICK_TIME + 10);
- } else {
- eti_show_cursor(eti, 0);
+ if (view_row != -1 && view_col != -1) {
+ if (! e_table_model_has_change_pending (eti->table_model)) {
+ if (!eti->in_key_press) {
+ eti_show_cursor(eti, DOUBLE_CLICK_TIME + 10);
+ } else {
+ eti_show_cursor(eti, 0);
+ }
}
}