aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--widgets/misc/ChangeLog7
-rw-r--r--widgets/misc/e-dateedit.c4
2 files changed, 10 insertions, 1 deletions
diff --git a/widgets/misc/ChangeLog b/widgets/misc/ChangeLog
index 0402458ddf..c75508d3f9 100644
--- a/widgets/misc/ChangeLog
+++ b/widgets/misc/ChangeLog
@@ -1,3 +1,10 @@
+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.
+
2006-07-04 Andre Klapper <a9016009@gmx.de>
* e-search-bar.c: fixing two typos, adding translator comments.
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);