[gnome-settings-daemon/benzea/nightlight-fixes: 4/5] color: Update nightlight when the system time is changed



commit 47573e0dbbe88a478430bb6a3e1a43e726dcf19a
Author: Benjamin Berg <bberg redhat com>
Date:   Tue Jun 5 15:17:38 2018 +0200

    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

 plugins/color/gsd-night-light.c | 4 ++--
 1 file 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]