diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2014-03-06 17:54:57 -0600 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2014-03-06 17:54:57 -0600 |
commit | df650bec0f1c634ee773c150b451c3bdd8ed4e65 (patch) | |
tree | 0373cd9ece920ace2ac790610299b1454c464e67 /tests/actions-mock.h | |
parent | 58dd68d0f2d513f70c0348bc26bb6b4db09377df (diff) | |
download | ayatana-indicator-datetime-df650bec0f1c634ee773c150b451c3bdd8ed4e65.tar.gz ayatana-indicator-datetime-df650bec0f1c634ee773c150b451c3bdd8ed4e65.tar.bz2 ayatana-indicator-datetime-df650bec0f1c634ee773c150b451c3bdd8ed4e65.zip |
In the Desktop profile, don't show the 'Add Event…' button if evolution can't be launched.
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; |