From da2b3c2c01dfb0fb6e3862f0f2a11b1f36d1b7f5 Mon Sep 17 00:00:00 2001
From: Li Yuan
Date: Tue, 11 Jul 2006 12:08:30 +0000
Subject: ** Fixes bug #345402
2006-06-20 Li Yuan
** Fixes bug #345402
* e-dateedit.c: (on_date_popup_key_press):
Grab the popup window when some key except ESC is pressed.
svn path=/trunk/; revision=32283
---
widgets/misc/e-dateedit.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
(limited to 'widgets/misc/e-dateedit.c')
diff --git a/widgets/misc/e-dateedit.c b/widgets/misc/e-dateedit.c
index 563f0af188..b24a67cb05 100644
--- a/widgets/misc/e-dateedit.c
+++ b/widgets/misc/e-dateedit.c
@@ -1323,8 +1323,10 @@ on_date_popup_key_press (GtkWidget *widget,
GdkEventKey *event,
EDateEdit *dedit)
{
- if (event->keyval != GDK_Escape)
+ if (event->keyval != GDK_Escape) {
+ gdk_keyboard_grab (dedit->priv->cal_popup->window, TRUE, GDK_CURRENT_TIME);
return FALSE;
+ }
g_signal_stop_emission_by_name (widget, "key_press_event");
hide_date_popup (dedit);
--
cgit