From e7af4632908a18761ff01ef5224b4c041f664ef5 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Tue, 24 Mar 2015 23:34:19 -0300 Subject: [PATCH] window: release timeout source after undo --- src/gcal-window.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/gcal-window.c b/src/gcal-window.c index 4e255b3a..4f644eee 100644 --- a/src/gcal-window.c +++ b/src/gcal-window.c @@ -1292,6 +1292,8 @@ remove_event (GtkWidget *notification, g_error_free (error); } } + + } static void @@ -1336,7 +1338,11 @@ undo_remove_action (GtkButton *button, priv->removed_source = NULL; } - gtk_revealer_set_reveal_child (GTK_REVEALER (priv->notification), FALSE); + if (priv->event_to_delete != NULL || priv->removed_source != NULL) + { + g_source_remove (priv->notification_timeout); + hide_notification (GCAL_WINDOW (user_data), NULL); + } }