diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2015-01-21 19:58:46 -0600 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2015-01-21 19:58:46 -0600 |
commit | 12c742122d34578b23da54d49d4ae1b9bb6af87e (patch) | |
tree | 0bbca0f79ad65b1fc8174e037a3f06404929d080 /src | |
parent | c5f2b60893cd8a34a285d5e57484b498890b93e1 (diff) | |
download | ayatana-indicator-datetime-12c742122d34578b23da54d49d4ae1b9bb6af87e.tar.gz ayatana-indicator-datetime-12c742122d34578b23da54d49d4ae1b9bb6af87e.tar.bz2 ayatana-indicator-datetime-12c742122d34578b23da54d49d4ae1b9bb6af87e.zip |
in Snap's Sound() ctor, use an 'alarm' role for the alarm clock and 'alert' for calendar events
Diffstat (limited to 'src')
-rw-r--r-- | src/snap.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/snap.cpp b/src/snap.cpp index ea14f30..e655d2d 100644 --- a/src/snap.cpp +++ b/src/snap.cpp @@ -95,10 +95,11 @@ public: std::shared_ptr<uin::Sound> sound; if (appointment.is_ubuntu_alarm() || !silent_mode()) { // create the sound. + const auto role = appointment.is_ubuntu_alarm() ? "alarm" : "alert"; const auto uri = get_alarm_uri(appointment, m_settings); const auto volume = m_settings->alarm_volume.get(); const bool loop = interactive; - sound = std::make_shared<uin::Sound>(uri, volume, loop); + sound = std::make_shared<uin::Sound>(role, uri, volume, loop); } // create the haptic feedback... |