aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gncal-todo.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gncal-todo.c')
-rw-r--r--calendar/gncal-todo.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/calendar/gncal-todo.c b/calendar/gncal-todo.c
index 4f2f0345bb..599f85a6c0 100644
--- a/calendar/gncal-todo.c
+++ b/calendar/gncal-todo.c
@@ -258,6 +258,11 @@ delete_todo (GncalTodo *todo)
static void
add_activated (GtkWidget *widget, GncalTodo *todo)
{
+ GtkWidget *w;
+
+ while ((w = gtk_grab_get_current ()) != NULL)
+ gtk_grab_remove (w);
+
add_todo (todo);
}