aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorHarry Lu <harry.lu@sun.com>2003-12-18 11:59:42 +0800
committerHarry Lu <haip@src.gnome.org>2003-12-18 11:59:42 +0800
commit4e71399fd50cbb050a37eaf6ae667549841760df (patch)
tree39867854e497dae373c45ae69eff78a05c26d27c /widgets
parente4a68478f7fed9fdf32feae4cca56fb1f4b71411 (diff)
downloadgsoc2013-evolution-4e71399fd50cbb050a37eaf6ae667549841760df.tar.gz
gsoc2013-evolution-4e71399fd50cbb050a37eaf6ae667549841760df.tar.zst
gsoc2013-evolution-4e71399fd50cbb050a37eaf6ae667549841760df.zip
call gdk_window_focus() so that keyboard works correctly.
2003-12-18 Harry Lu <harry.lu@sun.com> * e-cell-date-edit.c: (e_cell_date_edit_do_popup): call gdk_window_focus() so that keyboard works correctly. svn path=/trunk/; revision=23975
Diffstat (limited to 'widgets')
-rw-r--r--widgets/misc/ChangeLog5
-rw-r--r--widgets/misc/e-cell-date-edit.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/widgets/misc/ChangeLog b/widgets/misc/ChangeLog
index e5d357b31e..bbc66fd5c1 100644
--- a/widgets/misc/ChangeLog
+++ b/widgets/misc/ChangeLog
@@ -1,3 +1,8 @@
+2003-12-18 Harry Lu <harry.lu@sun.com>
+
+ * e-cell-date-edit.c: (e_cell_date_edit_do_popup): call
+ gdk_window_focus() so that keyboard works correctly.
+
2003-12-04 Harry Lu <harry.lu@sun.com>
Fix for bugzilla bug #51624 and #51627.
diff --git a/widgets/misc/e-cell-date-edit.c b/widgets/misc/e-cell-date-edit.c
index d37def6140..737c7da14f 100644
--- a/widgets/misc/e-cell-date-edit.c
+++ b/widgets/misc/e-cell-date-edit.c
@@ -450,11 +450,11 @@ e_cell_date_edit_do_popup (ECellPopup *ecp,
time = event->key.time;
}
- gdk_keyboard_grab (ecde->popup_window->window, TRUE, time);
gtk_grab_add (ecde->popup_window);
/* Set the focus to the first widget. */
gtk_widget_grab_focus (ecde->time_entry);
+ gdk_window_focus (ecde->popup_window->window, GDK_CURRENT_TIME);
return TRUE;
}