From 9162088ec2323c4db3939aec07621b8328e117eb Mon Sep 17 00:00:00 2001
From: Li Yuan
Date: Thu, 25 Aug 2005 06:54:58 +0000
Subject: Fixes #314352. if accessibility is enabled, we enable horizontal
cusor
2005-08-24 Li Yuan
Fixes #314352.
* e-table-item.c: (eti_event):
if accessibility is enabled, we enable horizontal cusor
movement for line selection.
svn path=/trunk/; revision=30244
---
widgets/table/ChangeLog | 7 +++++++
widgets/table/e-table-item.c | 8 ++++++--
2 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/widgets/table/ChangeLog b/widgets/table/ChangeLog
index 8e5da1c3fd..823e8928c8 100644
--- a/widgets/table/ChangeLog
+++ b/widgets/table/ChangeLog
@@ -1,3 +1,10 @@
+2005-08-24 Li Yuan
+
+ Fixes #314352.
+ * e-table-item.c: (eti_event):
+ if accessibility is enabled, we enable horizontal cusor
+ movement for line selection.
+
2005-08-23 Not Zed
* e-table-config.c (setup_fields): fix some missing casts.
diff --git a/widgets/table/e-table-item.c b/widgets/table/e-table-item.c
index 881736e8bc..9f6ba38709 100644
--- a/widgets/table/e-table-item.c
+++ b/widgets/table/e-table-item.c
@@ -2646,7 +2646,9 @@ eti_event (GnomeCanvasItem *item, GdkEvent *e)
g_signal_emit (eti, eti_signals [KEY_PRESS], 0,
model_to_view_row(eti, cursor_row), cursor_col, e, &return_val);
- if ((!return_val) && eti->cursor_mode != E_CURSOR_LINE && cursor_col != view_to_model_col(eti, 0))
+ if ((!return_val) &&
+ (atk_get_root() || eti->cursor_mode != E_CURSOR_LINE) &&
+ cursor_col != view_to_model_col(eti, 0))
eti_cursor_move_left (eti);
return_val = 1;
break;
@@ -2660,7 +2662,9 @@ eti_event (GnomeCanvasItem *item, GdkEvent *e)
g_signal_emit (eti, eti_signals [KEY_PRESS], 0,
model_to_view_row(eti, cursor_row), cursor_col, e, &return_val);
- if ((!return_val) && eti->cursor_mode != E_CURSOR_LINE && cursor_col != view_to_model_col(eti, eti->cols - 1))
+ if ((!return_val) &&
+ (atk_get_root() || eti->cursor_mode != E_CURSOR_LINE) &&
+ cursor_col != view_to_model_col(eti, eti->cols - 1))
eti_cursor_move_right (eti);
return_val = 1;
break;
--
cgit v1.2.3