aboutsummaryrefslogtreecommitdiff
path: root/src/menu.cpp
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2016-03-22 17:29:04 -0500
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-08-29 14:37:39 +0200
commitb704508b415ec9400e38f6a47b109e0ae3b2d1fd (patch)
tree91569ceded2a2fefb36102f0c552a56b7910024e /src/menu.cpp
parenta37bed4661cf57a21ebf237d255957854d9603c2 (diff)
downloadayatana-indicator-datetime-b704508b415ec9400e38f6a47b109e0ae3b2d1fd.tar.gz
ayatana-indicator-datetime-b704508b415ec9400e38f6a47b109e0ae3b2d1fd.tar.bz2
ayatana-indicator-datetime-b704508b415ec9400e38f6a47b109e0ae3b2d1fd.zip
revert r426 & r427 to remove the calendar from the phone profile
Diffstat (limited to 'src/menu.cpp')
-rw-r--r--src/menu.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/menu.cpp b/src/menu.cpp
index b1ac75c..f9b6485 100644
--- a/src/menu.cpp
+++ b/src/menu.cpp
@@ -319,7 +319,7 @@ private:
GMenuModel* create_calendar_section(Profile profile)
{
const bool show_calendar = m_state->settings->show_calendar.get() &&
- ((profile == Desktop) || (profile == DesktopGreeter) || (profile == Phone));
+ ((profile == Desktop) || (profile == DesktopGreeter));
auto menu = g_menu_new();
const char * action_name;
@@ -464,7 +464,7 @@ private:
const auto now = m_state->clock->localtime();
- if (profile == Desktop || profile == Phone)
+ if (profile == Desktop)
{
for(const auto& location : m_state->locations->locations.get())
{