[gnome-calendar/gnome-3-24] window: remove GSourceFunc once run
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/gnome-3-24] window: remove GSourceFunc once run
- Date: Tue, 18 Apr 2017 10:55:00 +0000 (UTC)
commit b4efb9019358e2ce889358773eee398e8244e1a8
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 3d33be1..d299758 100644
--- a/src/gcal-window.c
+++ b/src/gcal-window.c
@@ -439,7 +439,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]