diff options
author | Harish Krishnaswamy <kharish@novell.com> | 2006-12-04 22:09:54 +0800 |
---|---|---|
committer | Harish Krishnaswamy <kharish@src.gnome.org> | 2006-12-04 22:09:54 +0800 |
commit | 433790881e9ee889c13f90f4c2201a8462d2c4bb (patch) | |
tree | 6eee07171e87ae35582ace9e9ac036594d8eb802 /widgets | |
parent | fea67eb0dc0f48373a9a0515d3017a4a59f03923 (diff) | |
download | gsoc2013-evolution-433790881e9ee889c13f90f4c2201a8462d2c4bb.tar.gz gsoc2013-evolution-433790881e9ee889c13f90f4c2201a8462d2c4bb.tar.zst gsoc2013-evolution-433790881e9ee889c13f90f4c2201a8462d2c4bb.zip |
Fixes bug #381642.
2006-12-04 Harish Krishnaswamy <kharish@novell.com>
* e-table.c: (canvas_vbox_event), (click_to_add_event):
Fixes bug #381642.
svn path=/trunk/; revision=33043
Diffstat (limited to 'widgets')
-rw-r--r-- | widgets/table/ChangeLog | 5 | ||||
-rw-r--r-- | widgets/table/e-table.c | 8 |
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: |