aboutsummaryrefslogtreecommitdiff
path: root/src/menu.cpp
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-02-03 00:05:42 -0600
committerCharles Kerr <charles.kerr@canonical.com>2014-02-03 00:05:42 -0600
commitc4e010f1cd307a5919cace98f82941a57bc91573 (patch)
tree4cf5d2835f53a17553eb2ed31bc3fbf6c628d115 /src/menu.cpp
parent2934ddcc6b2c56d12eda6fcf12d8264f43bc0a12 (diff)
downloadayatana-indicator-datetime-c4e010f1cd307a5919cace98f82941a57bc91573.tar.gz
ayatana-indicator-datetime-c4e010f1cd307a5919cace98f82941a57bc91573.tar.bz2
ayatana-indicator-datetime-c4e010f1cd307a5919cace98f82941a57bc91573.zip
update the header state when the planner's appointments change
Diffstat (limited to 'src/menu.cpp')
-rw-r--r--src/menu.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/menu.cpp b/src/menu.cpp
index b3dcc53..5d97859 100644
--- a/src/menu.cpp
+++ b/src/menu.cpp
@@ -108,6 +108,7 @@ protected:
update_section(Appointments); // showing events got toggled
});
m_state->planner->upcoming.changed().connect([this](const std::vector<Appointment>&){
+ update_header(); // show an 'alarm' icon if there are upcoming alarms
update_section(Appointments); // "upcoming" is the list of Appointments we show
});
m_state->clock->date_changed.connect([this](){