[gnome-calendar] window: remove GSourceFunc once run
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] window: remove GSourceFunc once run
- Date: Tue, 18 Apr 2017 10:55:05 +0000 (UTC)
commit 1c9686b9378a943ab23ee2219c64b3a312ce2404
Author: Mohammed Sadiq <sadiq sadiqpk org>
Date: Tue Apr 18 08:53:50 2017 +0530
window: remove GSourceFunc once run
The function is supposed to run once every minute. So after
the function is run, just remove it from main thread. So that it won't
act as a time bomb.
https://bugzilla.gnome.org/show_bug.cgi?id=781081
src/gcal-window.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gcal-window.c b/src/gcal-window.c
index b0e39fa..1ab5335 100644
--- a/src/gcal-window.c
+++ b/src/gcal-window.c
@@ -481,7 +481,7 @@ update_current_date (GcalWindow *window)
out:
g_timeout_add_seconds (60, (GSourceFunc) update_current_date, window);
- GCAL_RETURN (G_SOURCE_CONTINUE);
+ GCAL_RETURN (G_SOURCE_REMOVE);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]