diff options
author | Renato Araujo Oliveira Filho <renato.filho@canonical.com> | 2016-04-26 21:43:03 -0300 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-08-29 14:37:39 +0200 |
commit | 04588f8bff4156dae76d8ef03d1bbd58fca9fdb7 (patch) | |
tree | 1fb735ec75ba0b309568b68be85ab0b2fa662e5b | |
parent | 47668a01943088e23bd586f5bb26110ad2867727 (diff) | |
download | ayatana-indicator-datetime-04588f8bff4156dae76d8ef03d1bbd58fca9fdb7.tar.gz ayatana-indicator-datetime-04588f8bff4156dae76d8ef03d1bbd58fca9fdb7.tar.bz2 ayatana-indicator-datetime-04588f8bff4156dae76d8ef03d1bbd58fca9fdb7.zip |
Update notifications to use the new calendar icon.
-rw-r--r-- | data/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/snap.cpp | 2 | ||||
-rw-r--r-- | tests/test-notification.cpp | 2 | ||||
-rw-r--r-- | tests/test-sound.cpp | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt index 14d36b8..6bbc246 100644 --- a/data/CMakeLists.txt +++ b/data/CMakeLists.txt @@ -32,7 +32,7 @@ if (${SYSTEMD_FOUND}) # build it set (pkglibexecdir "${CMAKE_INSTALL_FULL_PKGLIBEXECDIR}") - set (messaging_menu_icon "${CMAKE_INSTALL_FULL_DATAROOTDIR}/icons/suru/actions/scalable/appointment.svg") + set (messaging_menu_icon "${CMAKE_INSTALL_FULL_DATAROOTDIR}/icons/suru/actions/scalable/calendar.svg") configure_file ("${SYSTEMD_USER_FILE_IN}" "${SYSTEMD_USER_FILE}") # install it diff --git a/src/snap.cpp b/src/snap.cpp index 217b6df..1e7dd5e 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" : "appointment"); + b.set_icon_name (appointment.is_ubuntu_alarm() ? "alarm-clock" : "calendar"); b.add_hint (ain::Builder::HINT_NONSHAPED_ICON); b.set_start_time (appointment.begin.to_unix()); diff --git a/tests/test-notification.cpp b/tests/test-notification.cpp index b951cee..d660982 100644 --- a/tests/test-notification.cpp +++ b/tests/test-notification.cpp @@ -63,7 +63,7 @@ TEST_F(NotificationFixture,Notification) bool expected_notify_called; bool expected_vibrate_called; } test_appts[] = { - { appt, "appointment", "Event", true, true }, + { appt, "calendar", "Event", true, true }, { ualarm, "alarm-clock", "Alarm", true, true } }; diff --git a/tests/test-sound.cpp b/tests/test-sound.cpp index 469b085..013c388 100644 --- a/tests/test-sound.cpp +++ b/tests/test-sound.cpp @@ -85,7 +85,7 @@ TEST_F(NotificationFixture, InteractiveDuration) // confirm that the icon passed to Notify was "alarm-clock" g_variant_get_child (params, 2, "&s", &str); - ASSERT_STREQ("appointment", str); + ASSERT_STREQ("calendar", str); // confirm that the hints passed to Notify included a timeout matching duration_minutes int32_t i32; |