aboutsummaryrefslogtreecommitdiffstats
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
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
-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);