diff options
author | OPNA2608 <christoph.neidahl@gmail.com> | 2023-12-31 01:36:03 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2024-01-31 19:12:00 +0100 |
commit | dcfaedfd22d7c74ad75f71bd18c33da7e8e58c6f (patch) | |
tree | 74c0d2a0dfa9b000442d22b5a8c806c06b35de6b /tests | |
parent | 2a2db70bedf0c4a96282e417be433d2f23f6c465 (diff) | |
download | ayatana-indicator-datetime-dcfaedfd22d7c74ad75f71bd18c33da7e8e58c6f.tar.gz ayatana-indicator-datetime-dcfaedfd22d7c74ad75f71bd18c33da7e8e58c6f.tar.bz2 ayatana-indicator-datetime-dcfaedfd22d7c74ad75f71bd18c33da7e8e58c6f.zip |
tests/test-menus: Fix build
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-menus.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test-menus.cpp b/tests/test-menus.cpp index e71c997..593e5b2 100644 --- a/tests/test-menus.cpp +++ b/tests/test-menus.cpp @@ -338,11 +338,11 @@ private: void InspectPhoneAppointments(GMenuModel* menu_model, bool can_open_planner) { auto submenu = g_menu_model_get_item_link(menu_model, 0, G_MENU_LINK_SUBMENU); - + // there shouldn't be any menuitems when "show events" is false m_state->settings->show_events.set(false); wait_msec(); - section = g_menu_model_get_item_link(submenu, Menu::Appointments, G_MENU_LINK_SECTION); + auto section = g_menu_model_get_item_link(submenu, Menu::Appointments, G_MENU_LINK_SECTION); EXPECT_EQ(0, g_menu_model_get_n_items(section)); g_clear_object(§ion); @@ -353,7 +353,7 @@ private: wait_msec(); // wait a moment for the menu to update // check that there's a "clock app" menuitem even when there are no appointments - auto section = g_menu_model_get_item_link(submenu, Menu::Appointments, G_MENU_LINK_SECTION); + section = g_menu_model_get_item_link(submenu, Menu::Appointments, G_MENU_LINK_SECTION); const char* expected_action = "phone.open-alarm-app"; EXPECT_EQ(1, g_menu_model_get_n_items(section)); gchar* action = nullptr; |