aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2021-09-01 15:44:34 +0200
committerRobert Tari <robert@tari.in>2021-09-01 15:44:34 +0200
commitb24b8edb8afdea0b1b6194dca6429bae7a680e09 (patch)
tree4a5ef080937c9e9dc732a914baa95b219555b69f /src
parent26264729896d3d5408ee89ef4ebd0a607ebc949c (diff)
downloadayatana-indicator-datetime-b24b8edb8afdea0b1b6194dca6429bae7a680e09.tar.gz
ayatana-indicator-datetime-b24b8edb8afdea0b1b6194dca6429bae7a680e09.tar.bz2
ayatana-indicator-datetime-b24b8edb8afdea0b1b6194dca6429bae7a680e09.zip
src/settings-live.cpp: Check for schema instead of Lomiri
Diffstat (limited to 'src')
-rw-r--r--src/settings-live.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/settings-live.cpp b/src/settings-live.cpp
index dc90d0e..cf18739 100644
--- a/src/settings-live.cpp
+++ b/src/settings-live.cpp
@@ -19,11 +19,6 @@
#include <datetime/settings-live.h>
-extern "C"
-{
- #include <ayatana/common/utils.h>
-}
-
namespace ayatana {
namespace indicator {
namespace datetime {
@@ -65,7 +60,10 @@ LiveSettings::LiveSettings():
update_alarm_haptic();
update_snooze_duration();
- if (ayatana_common_utils_is_lomiri())
+ GSettingsSchemaSource *pSource = g_settings_schema_source_get_default();
+ GSettingsSchema *pSchema = g_settings_schema_source_lookup(pSource, SETTINGS_NOTIFY_SCHEMA_ID, TRUE);
+
+ if (pSchema != NULL)
{
m_settings_cal_notification = g_settings_new_with_path(SETTINGS_NOTIFY_SCHEMA_ID, SETTINGS_NOTIFY_CALENDAR_PATH);
m_settings_general_notification = g_settings_new(SETTINGS_NOTIFY_APPS_SCHEMA_ID);