diff options
author | Robert Tari <robert@tari.in> | 2021-10-28 06:06:45 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-10-28 08:19:49 +0200 |
commit | 0492e95dbf6a1f6285a4701379adb6b7d8553d6b (patch) | |
tree | d35fc8583d82f4825a5da9fd0ebc4a7dc9e6bb70 /tests/test-menus.cpp | |
parent | 2a52d61b410b9d294c479ad53a06fb6f830b9605 (diff) | |
download | ayatana-indicator-datetime-0492e95dbf6a1f6285a4701379adb6b7d8553d6b.tar.gz ayatana-indicator-datetime-0492e95dbf6a1f6285a4701379adb6b7d8553d6b.tar.bz2 ayatana-indicator-datetime-0492e95dbf6a1f6285a4701379adb6b7d8553d6b.zip |
Drop the 'ubuntu' prefix from the alarm types and functions
Diffstat (limited to 'tests/test-menus.cpp')
-rw-r--r-- | tests/test-menus.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/test-menus.cpp b/tests/test-menus.cpp index 8650201..de323d3 100644 --- a/tests/test-menus.cpp +++ b/tests/test-menus.cpp @@ -1,5 +1,6 @@ /* * Copyright 2013 Canonical Ltd. + * Copyright 2021 Robert Tari * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published @@ -15,6 +16,7 @@ * * Authors: * Charles Kerr <charles.kerr@canonical.com> + * Robert Tari <robert@tari.in> */ @@ -187,7 +189,7 @@ private: a1.summary = "Alarm"; a1.summary = "http://www.example.com/"; a1.uid = "example"; - a1.type = Appointment::UBUNTU_ALARM; + a1.type = Appointment::ALARM; a1.begin = a1.end = tomorrow; Appointment a2; // a non-alarm appointment @@ -208,7 +210,7 @@ private: // confirm it has the right x-ayatana-type gchar * str = nullptr; g_menu_model_get_item_attribute(section, index, "x-ayatana-type", "s", &str); - if (appt.is_ubuntu_alarm()) + if (appt.is_alarm()) EXPECT_STREQ("org.ayatana.indicator.alarm", str); else EXPECT_STREQ("org.ayatana.indicator.appointment", str); @@ -241,7 +243,7 @@ private: g_clear_pointer(&str, g_free); // confirm that alarms have an icon - if (appt.is_ubuntu_alarm()) + if (appt.is_alarm()) { auto v = g_menu_model_get_item_attribute_value(section, index, |