[gnome-calendar/wip/exalm/dark: 3/3] core: Remove follow-night-light
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/wip/exalm/dark: 3/3] core: Remove follow-night-light
- Date: Sat, 11 Dec 2021 15:40:06 +0000 (UTC)
commit 83249b0d840b9b3b5774adeb44c2b805a4a1b3d9
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Sat Dec 11 20:40:00 2021 +0500
core: Remove follow-night-light
The system will do the scheduling instead.
data/org.gnome.calendar.gschema.xml.in | 5 -
src/core/gcal-context.c | 6 -
src/core/gcal-night-light-monitor.c | 208 ---------------------------------
src/core/gcal-night-light-monitor.h | 34 ------
src/core/meson.build | 1 -
5 files changed, 254 deletions(-)
---
diff --git a/data/org.gnome.calendar.gschema.xml.in b/data/org.gnome.calendar.gschema.xml.in
index f8b0eff8..4310b33a 100644
--- a/data/org.gnome.calendar.gschema.xml.in
+++ b/data/org.gnome.calendar.gschema.xml.in
@@ -26,10 +26,5 @@
<summary>Weather Service Configuration</summary>
<description>Whether weather reports are shown, automatic locations are used and a
location-name</description>
</key>
- <key name="follow-night-light" type="b">
- <default>false</default>
- <summary>Follow system night light</summary>
- <description>Use GNOME night light setting to activate night-mode.</description>
- </key>
</schema>
</schemalist>
diff --git a/src/core/gcal-context.c b/src/core/gcal-context.c
index 7dbadecf..c3c84676 100644
--- a/src/core/gcal-context.c
+++ b/src/core/gcal-context.c
@@ -21,7 +21,6 @@
#define G_LOG_DOMAIN "GcalContext"
#include "gcal-context.h"
-#include "gcal-night-light-monitor.h"
#include "gcal-time-zone-monitor.h"
struct _GcalContext
@@ -37,7 +36,6 @@ struct _GcalContext
GcalTimeFormat time_format;
GcalWeatherService *weather_service;
- GcalNightLightMonitor *night_light_monitor;
GcalTimeZoneMonitor *timezone_monitor;
};
@@ -121,7 +119,6 @@ gcal_context_finalize (GObject *object)
g_clear_object (&self->clock);
g_clear_object (&self->desktop_settings);
g_clear_object (&self->manager);
- g_clear_object (&self->night_light_monitor);
g_clear_object (&self->timezone_monitor);
g_clear_object (&self->weather_service);
@@ -395,8 +392,5 @@ gcal_context_startup (GcalContext *self)
{
g_return_if_fail (GCAL_IS_CONTEXT (self));
- /* Night Light requires GTK to be initialized */
- self->night_light_monitor = gcal_night_light_monitor_new (self);
-
gcal_manager_startup (self->manager);
}
diff --git a/src/core/meson.build b/src/core/meson.build
index 90c0624b..ef39bbc8 100644
--- a/src/core/meson.build
+++ b/src/core/meson.build
@@ -8,7 +8,6 @@ sources += files(
'gcal-event.c',
'gcal-log.c',
'gcal-manager.c',
- 'gcal-night-light-monitor.c',
'gcal-range.c',
'gcal-range-tree.c',
'gcal-recurrence.c',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]