aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorHarish Krishnaswamy <kharish@novell.com>2006-12-04 22:09:54 +0800
committerHarish Krishnaswamy <kharish@src.gnome.org>2006-12-04 22:09:54 +0800
commit433790881e9ee889c13f90f4c2201a8462d2c4bb (patch)
tree6eee07171e87ae35582ace9e9ac036594d8eb802 /widgets
parentfea67eb0dc0f48373a9a0515d3017a4a59f03923 (diff)
downloadgsoc2013-evolution-433790881e9ee889c13f90f4c2201a8462d2c4bb.tar
gsoc2013-evolution-433790881e9ee889c13f90f4c2201a8462d2c4bb.tar.gz
gsoc2013-evolution-433790881e9ee889c13f90f4c2201a8462d2c4bb.tar.bz2
gsoc2013-evolution-433790881e9ee889c13f90f4c2201a8462d2c4bb.tar.lz
gsoc2013-evolution-433790881e9ee889c13f90f4c2201a8462d2c4bb.tar.xz
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/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: