aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-dateedit.c
diff options
context:
space:
mode:
authorLi Yuan <li.yuan@sun.com>2006-07-11 20:08:30 +0800
committerLi Yuan <liyuan@src.gnome.org>2006-07-11 20:08:30 +0800
commitda2b3c2c01dfb0fb6e3862f0f2a11b1f36d1b7f5 (patch)
treed9dec90791c9a2f7ba146ddf572d764201fcc19a /widgets/misc/e-dateedit.c
parent0a441d94cf8cfeb8fdbeeeac210669163528a998 (diff)
downloadgsoc2013-evolution-da2b3c2c01dfb0fb6e3862f0f2a11b1f36d1b7f5.tar.gz
gsoc2013-evolution-da2b3c2c01dfb0fb6e3862f0f2a11b1f36d1b7f5.tar.zst
gsoc2013-evolution-da2b3c2c01dfb0fb6e3862f0f2a11b1f36d1b7f5.zip
** Fixes bug #345402
2006-06-20 Li Yuan <li.yuan@sun.com> ** 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
Diffstat (limited to 'widgets/misc/e-dateedit.c')
-rw-r--r--widgets/misc/e-dateedit.c4
1 files changed, 3 insertions, 1 deletions
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);