aboutsummaryrefslogtreecommitdiff
path: root/include/datetime
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-01-25 16:54:41 -0600
committerCharles Kerr <charles.kerr@canonical.com>2014-01-25 16:54:41 -0600
commit7b09a0ff5652bdca7c8d8e046d2af6a696f94147 (patch)
treea9adbfddde6f0693ab2bb2e01c875cd9929669cf /include/datetime
parentaad7e86a109aeec75b3772cda20478363f966745 (diff)
downloadayatana-indicator-datetime-7b09a0ff5652bdca7c8d8e046d2af6a696f94147.tar.gz
ayatana-indicator-datetime-7b09a0ff5652bdca7c8d8e046d2af6a696f94147.tar.bz2
ayatana-indicator-datetime-7b09a0ff5652bdca7c8d8e046d2af6a696f94147.zip
sync the exported calendar state with the #State backend
Diffstat (limited to 'include/datetime')
-rw-r--r--include/datetime/actions.h4
-rw-r--r--include/datetime/state.h2
2 files changed, 2 insertions, 4 deletions
diff --git a/include/datetime/actions.h b/include/datetime/actions.h
index 18286dc..3686b95 100644
--- a/include/datetime/actions.h
+++ b/include/datetime/actions.h
@@ -49,8 +49,7 @@ public:
virtual void open_planner_at(const DateTime&) =0;
virtual void open_appointment(const std::string& uid) =0;
virtual void set_location(const std::string& zone, const std::string& name)=0;
- virtual void set_calendar_date(const DateTime&) =0;
-
+ void set_calendar_date(const DateTime&);
GActionGroup* action_group() { return G_ACTION_GROUP(m_actions); }
std::shared_ptr<State> state() { return m_state; }
@@ -61,6 +60,7 @@ protected:
private:
std::shared_ptr<State> m_state;
GSimpleActionGroup* m_actions = nullptr;
+ void update_calendar_state();
// we've got raw pointers in here, so disable copying
Actions(const Actions&) =delete;
diff --git a/include/datetime/state.h b/include/datetime/state.h
index b14908e..414be32 100644
--- a/include/datetime/state.h
+++ b/include/datetime/state.h
@@ -66,8 +66,6 @@ struct State
/** \brief Configuration options that modify the view */
std::shared_ptr<Settings> settings;
-
- core::Property<DateTime> calendar_day;
};
} // namespace datetime