[gnome-calendar] window: remove refresh timeout on exit
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] window: remove refresh timeout on exit
- Date: Sun, 18 Jun 2017 17:58:07 +0000 (UTC)
commit e07590d1cf0386c3c2fc7f6c9c673069b0c3fe4b
Author: Milan Crha <mcrha redhat com>
Date: Mon Jun 5 12:50:00 2017 -0300
window: remove refresh timeout on exit
https://bugzilla.gnome.org/show_bug.cgi?id=783441
src/gcal-window.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/gcal-window.c b/src/gcal-window.c
index d9880a4..adf8594 100644
--- a/src/gcal-window.c
+++ b/src/gcal-window.c
@@ -1295,6 +1295,12 @@ gcal_window_finalize (GObject *object)
window->open_edit_dialog_timeout_id = 0;
}
+ if (window->refresh_timeout_id > 0)
+ {
+ g_source_remove (window->refresh_timeout_id);
+ window->refresh_timeout_id = 0;
+ }
+
/* If we have a queued event to delete, remove it now */
if (window->event_to_delete)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]