aboutsummaryrefslogtreecommitdiff
path: root/include/datetime
diff options
context:
space:
mode:
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