diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2014-03-14 17:37:21 +0000 |
---|---|---|
committer | CI bot <ps-jenkins@lists.canonical.com> | 2014-03-14 17:37:21 +0000 |
commit | 5148b720cf8aa9ab2c89442ff528c5b344da556e (patch) | |
tree | 94c68d5551f00eb3f9828931c8545c42050fd564 /tests/actions-mock.h | |
parent | 8c4067b5484a81e2bb9158266601e30262bfb119 (diff) | |
parent | 01dca64fc75b6bff4494f1886f2397f6fd0ad8d1 (diff) | |
download | ayatana-indicator-datetime-5148b720cf8aa9ab2c89442ff528c5b344da556e.tar.gz ayatana-indicator-datetime-5148b720cf8aa9ab2c89442ff528c5b344da556e.tar.bz2 ayatana-indicator-datetime-5148b720cf8aa9ab2c89442ff528c5b344da556e.zip |
Don't show the "Add Event..." button if the calendar app can't be found. Fixes: 1250632
Diffstat (limited to 'tests/actions-mock.h')
-rw-r--r-- | tests/actions-mock.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/actions-mock.h b/tests/actions-mock.h index da93cb9..ebd8a4d 100644 --- a/tests/actions-mock.h +++ b/tests/actions-mock.h @@ -49,6 +49,8 @@ public: void open_phone_clock_app() { m_history.push_back(OpenPhoneClockApp); } + bool can_open_planner() const { return m_can_open_planner; } + void open_planner() { m_history.push_back(OpenPlanner); } void open_planner_at(const DateTime& date_time_) { @@ -67,7 +69,10 @@ public: m_url = url_; } + void set_can_open_planner(bool b) { m_can_open_planner = b; } + private: + bool m_can_open_planner = true; std::string m_url; std::string m_zone; std::string m_name; |