aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/table')
-rw-r--r--widgets/table/ChangeLog5
-rw-r--r--widgets/table/e-table.c8
2 files changed, 13 insertions, 0 deletions
diff --git a/widgets/table/ChangeLog b/widgets/table/ChangeLog
index 2b975d4728..f3cb87b727 100644
--- a/widgets/table/ChangeLog
+++ b/widgets/table/ChangeLog
@@ -1,3 +1,8 @@
+2006-12-04 Harish Krishnaswamy <kharish@novell.com>
+
+ * e-table.c: (canvas_vbox_event), (click_to_add_event):
+ Fixes bug #381642.
+
2006-08-24 Hiroyuki Ikezoe <poincare@ikezoe.net>
** Fixes bug #337582
diff --git a/widgets/table/e-table.c b/widgets/table/e-table.c
index cc64d854e1..2a3f37570f 100644
--- a/widgets/table/e-table.c
+++ b/widgets/table/e-table.c
@@ -1135,6 +1135,10 @@ table_canvas_focus_event_cb (GtkWidget *widget, GdkEventFocus *event, gpointer d
static gboolean
canvas_vbox_event (ECanvasVbox *vbox, GdkEventKey *key, ETable *etable)
{
+ if (key->type != GDK_KEY_PRESS &&
+ key->type != GDK_KEY_RELEASE) {
+ return FALSE;
+ }
switch (key->keyval) {
case GDK_Tab:
case GDK_KP_Tab:
@@ -1153,6 +1157,10 @@ canvas_vbox_event (ECanvasVbox *vbox, GdkEventKey *key, ETable *etable)
static gboolean
click_to_add_event (ETableClickToAdd *etcta, GdkEventKey *key, ETable *etable)
{
+ if (key->type != GDK_KEY_PRESS &&
+ key->type != GDK_KEY_RELEASE) {
+ return FALSE;
+ }
switch (key->keyval) {
case GDK_Tab:
case GDK_KP_Tab: