aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
Diffstat (limited to 'calendar')
-rw-r--r--calendar/ChangeLog4
-rw-r--r--calendar/gncal-todo.c5
-rw-r--r--calendar/gui/gncal-todo.c5
3 files changed, 14 insertions, 0 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index b63cbbc630..948146f481 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,7 @@
+1999-04-19 Miguel de Icaza <miguel@nuclecu.unam.mx>
+
+ * gncal-todo.c (add_activated): Use same hack used in edit_activated
+
1999-04-16 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gncal-todo.c (edit_activated): Kill all grabs from the CList
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);
}
diff --git a/calendar/gui/gncal-todo.c b/calendar/gui/gncal-todo.c
index 4f2f0345bb..599f85a6c0 100644
--- a/calendar/gui/gncal-todo.c
+++ b/calendar/gui/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);
}