aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-cell-date-edit.c
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/misc/e-cell-date-edit.c')
-rw-r--r--widgets/misc/e-cell-date-edit.c2
1 files changed, 1 insertions, 1 deletions
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;
}