aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-01-16 16:45:40 -0600
committerCharles Kerr <charles.kerr@canonical.com>2014-01-16 16:45:40 -0600
commita2b5c79157fa8db36d94786de1b86b756308912d (patch)
tree052475103594dd1b87dcbda97ffed2b8822f2d69 /tests
parent9c81a4d60d06b1f33001602cd0cde9844c9233a6 (diff)
downloadayatana-indicator-datetime-a2b5c79157fa8db36d94786de1b86b756308912d.tar.gz
ayatana-indicator-datetime-a2b5c79157fa8db36d94786de1b86b756308912d.tar.bz2
ayatana-indicator-datetime-a2b5c79157fa8db36d94786de1b86b756308912d.zip
Plug the Settings object into the State container s.t. menus and actions can update themselves when the user's settings change.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-menus.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-menus.cc b/tests/test-menus.cc
index 88e4706..0f86b0d 100644
--- a/tests/test-menus.cc
+++ b/tests/test-menus.cc
@@ -170,7 +170,7 @@ protected:
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->show_events.set(false);
+ m_state->settings->show_events.set(false);
wait_msec();
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));
@@ -179,7 +179,7 @@ protected:
// when "show_events" is true,
// there should be an "add event" button even if there aren't any appointments
std::vector<Appointment> appointments;
- m_state->show_events.set(true);
+ m_state->settings->show_events.set(true);
m_state->planner->upcoming.set(appointments);
wait_msec();
section = g_menu_model_get_item_link(submenu, Menu::Appointments, G_MENU_LINK_SECTION);