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
This commit is contained in:
Mohammed Sadiq
2017-04-18 07:54:04 -03:00
committed by Georges Basile Stavracas Neto
parent 3be142a207
commit 1c9686b937
+1 -1
View File
@@ -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