diff options
author | Renato Araujo Oliveira Filho <renato.filho@canonical.com> | 2016-04-27 14:01:28 -0300 |
---|---|---|
committer | Robert Tari <robert@tari.in> | 2021-07-06 03:09:00 +0200 |
commit | ec226fce51ed4ba7f16c5f1d3f87c180c6335918 (patch) | |
tree | 4066098850f711df1cab75fec23e1dfc9ca140cb /src/snap.cpp | |
parent | 0cfd764abbb319aa994788e993267d75bb955ccd (diff) | |
download | ayatana-indicator-datetime-ec226fce51ed4ba7f16c5f1d3f87c180c6335918.tar.gz ayatana-indicator-datetime-ec226fce51ed4ba7f16c5f1d3f87c180c6335918.tar.bz2 ayatana-indicator-datetime-ec226fce51ed4ba7f16c5f1d3f87c180c6335918.zip |
Use calendar app icon.
Diffstat (limited to 'src/snap.cpp')
-rw-r--r-- | src/snap.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/snap.cpp b/src/snap.cpp index 1e7dd5e..60005f3 100644 --- a/src/snap.cpp +++ b/src/snap.cpp @@ -124,7 +124,7 @@ public: const auto minutes = std::chrono::minutes(m_settings->alarm_duration.get()); ain::Builder b; b.set_body (appointment.summary); - b.set_icon_name (appointment.is_ubuntu_alarm() ? "alarm-clock" : "calendar"); + b.set_icon_name (appointment.is_ubuntu_alarm() ? "alarm-clock" : "calendar-app"); b.add_hint (ain::Builder::HINT_NONSHAPED_ICON); b.set_start_time (appointment.begin.to_unix()); @@ -171,9 +171,12 @@ public: ok(appointment, alarm); }); - b.set_missed_click_callback([appointment, alarm, ok](){ - ok(appointment, alarm); - }); + //TODO: we need to extend it to support alarms appoitments + if (!appointment.is_ubuntu_alarm()) { + b.set_missed_click_callback([appointment, alarm, ok](){ + ok(appointment, alarm); + }); + } const auto key = m_engine->show(b); if (key) |