aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-07-14 22:03:29 -0500
committerCharles Kerr <charles.kerr@canonical.com>2014-07-14 22:03:29 -0500
commit5b1f9d5eebb291117945ed4249af32a6a08194b0 (patch)
treed9b1c9b3d001b744d7c590c3372ee4c6f58f22bf /src
parent86135a989575ad48e6521eaafce6120e01fc8dfe (diff)
downloadayatana-indicator-datetime-5b1f9d5eebb291117945ed4249af32a6a08194b0.tar.gz
ayatana-indicator-datetime-5b1f9d5eebb291117945ed4249af32a6a08194b0.tar.bz2
ayatana-indicator-datetime-5b1f9d5eebb291117945ed4249af32a6a08194b0.zip
x-canonical-snap-decisions-timeout is int32 milliseconds
Diffstat (limited to 'src')
-rw-r--r--src/snap.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/snap.cpp b/src/snap.cpp
index 697326f..7332b99 100644
--- a/src/snap.cpp
+++ b/src/snap.cpp
@@ -261,14 +261,14 @@ private:
m_nn = notify_notification_new(title, body.c_str(), icon_name);
if (m_interactive)
{
- const int32_t duration_secs = m_sound_builder.duration_minutes()*60;
+ const int32_t duration_msec = m_sound_builder.duration_minutes()*60*1000;
notify_notification_set_hint(m_nn, HINT_SNAP,
g_variant_new_boolean(true));
notify_notification_set_hint(m_nn, HINT_TINT,
g_variant_new_boolean(true));
notify_notification_set_hint(m_nn, HINT_TIMEOUT,
- g_variant_new_int32(duration_secs));
+ g_variant_new_int32(duration_msec));
/// alarm popup dialog's button to show the active alarm
notify_notification_add_action(m_nn, "show", _("Show"),