aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/settings-live.cpp10
-rw-r--r--src/snap.cpp2
2 files changed, 5 insertions, 7 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);
diff --git a/src/snap.cpp b/src/snap.cpp
index 0ef6a94..0507cc7 100644
--- a/src/snap.cpp
+++ b/src/snap.cpp
@@ -116,7 +116,7 @@ public:
const auto uri = get_alarm_uri(appointment, alarm, m_settings);
const auto volume = m_settings->alarm_volume.get();
const bool loop = interactive;
- sound = std::make_shared<ain::Sound>(role, uri, volume, loop);
+ sound = m_sound_builder->create(role, uri, volume, loop);
}
// create the haptic feedback...