[gnome-calendar/calendar-editor] window: release timeout source after undo
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/calendar-editor] window: release timeout source after undo
- Date: Wed, 25 Mar 2015 02:34:29 +0000 (UTC)
commit e4b66d3cef0d869c939bd9b95dd7284561c0c3bc
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Tue Mar 24 23:34:19 2015 -0300
window: release timeout source after undo
src/gcal-window.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/gcal-window.c b/src/gcal-window.c
index 0aa7ef7..4e13097 100644
--- a/src/gcal-window.c
+++ b/src/gcal-window.c
@@ -1257,6 +1257,8 @@ remove_event (GtkWidget *notification,
g_error_free (error);
}
}
+
+
}
static void
@@ -1301,7 +1303,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);
+ }
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]