aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorBoby Wang <boby.wang@sun.com>2005-12-07 17:48:08 +0800
committerHarry Lu <haip@src.gnome.org>2005-12-07 17:48:08 +0800
commit366fb95772625b6a681599f19c7ece313e6815bf (patch)
tree3c29efccadfe362123e2d3187d08cd6f52d0af7f /widgets
parente9655751fb054f9b81d070b3d1264fa2906ed632 (diff)
downloadgsoc2013-evolution-366fb95772625b6a681599f19c7ece313e6815bf.tar
gsoc2013-evolution-366fb95772625b6a681599f19c7ece313e6815bf.tar.gz
gsoc2013-evolution-366fb95772625b6a681599f19c7ece313e6815bf.tar.bz2
gsoc2013-evolution-366fb95772625b6a681599f19c7ece313e6815bf.tar.lz
gsoc2013-evolution-366fb95772625b6a681599f19c7ece313e6815bf.tar.xz
gsoc2013-evolution-366fb95772625b6a681599f19c7ece313e6815bf.tar.zst
gsoc2013-evolution-366fb95772625b6a681599f19c7ece313e6815bf.zip
Fixes #322740. change the condition expression for GDK_RIGHT and GDK_LEFT.
2005-12-07 Boby Wang <boby.wang@sun.com> Fixes #322740. * e-tree.c: (item_key_press): change the condition expression for GDK_RIGHT and GDK_LEFT. svn path=/trunk/; revision=30736
Diffstat (limited to 'widgets')
-rw-r--r--widgets/table/ChangeLog6
-rw-r--r--widgets/table/e-tree.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/widgets/table/ChangeLog b/widgets/table/ChangeLog
index 58b7b19302..cdc3165262 100644
--- a/widgets/table/ChangeLog
+++ b/widgets/table/ChangeLog
@@ -1,3 +1,9 @@
+2005-12-07 Boby Wang <boby.wang@sun.com>
+
+ Fixes #322740.
+ * e-tree.c: (item_key_press): change the condition
+ expression for GDK_RIGHT and GDK_LEFT.
+
2005-12-06 Li Yuan <li.yuan@sun.com>
* e-tree.c: (table_canvas_focus_event_cb):
diff --git a/widgets/table/e-tree.c b/widgets/table/e-tree.c
index dc72272dac..aa644f09ea 100644
--- a/widgets/table/e-tree.c
+++ b/widgets/table/e-tree.c
@@ -886,7 +886,7 @@ item_key_press (ETableItem *eti, int row, int col, GdkEvent *event, ETree *et)
case GDK_Right:
case GDK_KP_Right:
/* Only allow if the Shift modifier is used -- eg. Ctrl-Equal shouldn't be handled. */
- if (key->state & ~(GDK_SHIFT_MASK | GDK_LOCK_MASK))
+ if ((key->state == 0) || (key->state & ~(GDK_SHIFT_MASK | GDK_LOCK_MASK)))
break;
if (row != -1) {
path = e_tree_table_adapter_node_at_row(et->priv->etta, row);
@@ -899,7 +899,7 @@ item_key_press (ETableItem *eti, int row, int col, GdkEvent *event, ETree *et)
case GDK_Left:
case GDK_KP_Left:
/* Only allow if the Shift modifier is used -- eg. Ctrl-Minus shouldn't be handled. */
- if (key->state & ~(GDK_SHIFT_MASK | GDK_LOCK_MASK))
+ if ((key->state == 0) || (key->state & ~(GDK_SHIFT_MASK | GDK_LOCK_MASK)))
break;
if (row != -1) {
path = e_tree_table_adapter_node_at_row(et->priv->etta, row);