aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@canonical.com>2016-04-26 21:43:03 -0300
committerRobert Tari <robert@tari.in>2021-07-06 02:33:57 +0200
commit0cfd764abbb319aa994788e993267d75bb955ccd (patch)
tree1b72a802e3b4b7bcba790491157aa0c0cd590e5f
parentba5a55ca476fef0fdb3a4f0bdd53fe771ea272c7 (diff)
downloadayatana-indicator-datetime-0cfd764abbb319aa994788e993267d75bb955ccd.tar.gz
ayatana-indicator-datetime-0cfd764abbb319aa994788e993267d75bb955ccd.tar.bz2
ayatana-indicator-datetime-0cfd764abbb319aa994788e993267d75bb955ccd.zip
Update notifications to use the new calendar icon.
-rw-r--r--data/CMakeLists.txt2
-rw-r--r--src/snap.cpp2
-rw-r--r--tests/test-notification.cpp2
-rw-r--r--tests/test-sound.cpp2
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;