From d69cf86b685c94f8b0892b24444f24b36a57a234 Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Fri, 16 Apr 1999 20:16:40 +0000 Subject: Kill all grabs from the CList before running the new dialog box. 1999-04-16 Miguel de Icaza * gncal-todo.c (edit_activated): Kill all grabs from the CList before running the new dialog box. This fixes the problem of button-3/Edit on the todo item blocking the GUI (actually, the main window responds, but not the todo window). svn path=/trunk/; revision=817 --- calendar/gui/gncal-todo.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'calendar/gui/gncal-todo.c') diff --git a/calendar/gui/gncal-todo.c b/calendar/gui/gncal-todo.c index 0b7579bb7c..4f2f0345bb 100644 --- a/calendar/gui/gncal-todo.c +++ b/calendar/gui/gncal-todo.c @@ -264,6 +264,11 @@ add_activated (GtkWidget *widget, GncalTodo *todo) static void edit_activated (GtkWidget *widget, GncalTodo *todo) { + GtkWidget *w; + + while ((w = gtk_grab_get_current ()) != NULL) + gtk_grab_remove (w); + edit_todo (todo); } -- cgit v1.2.3