aboutsummaryrefslogtreecommitdiff
path: root/src/snap.cpp
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@canonical.com>2016-04-27 14:01:28 -0300
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-08-29 14:37:39 +0200
commit02ea97a63928c5da4ca1882d34ae61076b06c945 (patch)
treecddebef8831ede628593a3f7ee8d53767ea6eeb4 /src/snap.cpp
parent04588f8bff4156dae76d8ef03d1bbd58fca9fdb7 (diff)
downloadayatana-indicator-datetime-02ea97a63928c5da4ca1882d34ae61076b06c945.tar.gz
ayatana-indicator-datetime-02ea97a63928c5da4ca1882d34ae61076b06c945.tar.bz2
ayatana-indicator-datetime-02ea97a63928c5da4ca1882d34ae61076b06c945.zip
Use calendar app icon.
Diffstat (limited to 'src/snap.cpp')
-rw-r--r--src/snap.cpp11
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)