summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Berg <bberg@redhat.com>2018-06-05 15:17:38 +0200
committerCarlos Garnacho <mrgarnacho@gmail.com>2018-06-20 13:58:20 +0000
commit47573e0dbbe88a478430bb6a3e1a43e726dcf19a (patch)
tree78fc8fd4410c814e7055bed80ca3ce4c955e43ce
parent9ddf480a07bbbe3eec7bb8a76e3160dad772f28c (diff)
downloadgnome-settings-daemon-47573e0dbbe88a478430bb6a3e1a43e726dcf19a.tar.gz
color: Update nightlight when the system time is changed
Otherwise we might not be updating the night light status for a long time after the system time is updated. https://bugzilla.gnome.org/show_bug.cgi?id=788026
-rw-r--r--plugins/color/gsd-night-light.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/color/gsd-night-light.c b/plugins/color/gsd-night-light.c
index 2fd4c2eb..a28a0e0e 100644
--- a/plugins/color/gsd-night-light.c
+++ b/plugins/color/gsd-night-light.c
@@ -407,8 +407,8 @@ poll_timeout_create (GsdNightLight *self)
dt_now = gsd_night_light_get_date_time_now (self);
dt_expiry = g_date_time_add_seconds (dt_now, GSD_NIGHT_LIGHT_POLL_TIMEOUT);
self->source = _gnome_datetime_source_new (dt_now,
- dt_expiry,
- FALSE);
+ dt_expiry,
+ TRUE);
g_source_set_callback (self->source,
night_light_recheck_cb,
self, NULL);