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/ChangeLog | 9 +++++++++ calendar/gncal-todo.c | 5 +++++ calendar/gui/gncal-todo.c | 5 +++++ 3 files changed, 19 insertions(+) (limited to 'calendar') diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 8e77abf3cd..b63cbbc630 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,12 @@ +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). + 1999-04-08 Miguel de Icaza * gncal-todo.c (gncal_todo_init): Make sure we can get events for diff --git a/calendar/gncal-todo.c b/calendar/gncal-todo.c index 0b7579bb7c..4f2f0345bb 100644 --- a/calendar/gncal-todo.c +++ b/calendar/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); } 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