aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-02-27 11:14:52 -0500
committerCharles Kerr <charles.kerr@canonical.com>2014-02-27 11:14:52 -0500
commit00fcc7da2f9aa1ed98794bf4f3487237cc1c3a47 (patch)
treed55f66e28b3b5171c8e553d31d55fc4feae76510
parente365214c51f8673feb293c8175c87c92672666b9 (diff)
downloadayatana-indicator-datetime-00fcc7da2f9aa1ed98794bf4f3487237cc1c3a47.tar.gz
ayatana-indicator-datetime-00fcc7da2f9aa1ed98794bf4f3487237cc1c3a47.tar.bz2
ayatana-indicator-datetime-00fcc7da2f9aa1ed98794bf4f3487237cc1c3a47.zip
when a notify action is activated, call stop_audio_loop() in case the notify server doesn't also send back a 'closed' signal.
-rw-r--r--src/snap.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/snap.cpp b/src/snap.cpp
index b1a2e51..5cf6063 100644
--- a/src/snap.cpp
+++ b/src/snap.cpp
@@ -160,12 +160,14 @@ struct SnapData
void on_snap_show(NotifyNotification*, gchar* /*action*/, gpointer gdata)
{
+ stop_alarm_sound();
auto data = static_cast<SnapData*>(gdata);
data->show(data->appointment);
}
void on_snap_dismiss(NotifyNotification*, gchar* /*action*/, gpointer gdata)
{
+ stop_alarm_sound();
auto data = static_cast<SnapData*>(gdata);
data->dismiss(data->appointment);
}