aboutsummaryrefslogtreecommitdiff
path: root/tests/manual-test-snap.cpp
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-09-05 14:12:14 +0000
committerCI bot <ps-jenkins@lists.canonical.com>2014-09-05 14:12:14 +0000
commit7affbfb591fe0d5b68bdf5023eae2aba5e727dd2 (patch)
tree55976fcc4f23debe01bb18ef9a9f2a8260f756b8 /tests/manual-test-snap.cpp
parentd006b8d390004e03c2cd27d67c80f4fb767f35d5 (diff)
parent593c16de05fe3806edeeb3bc105ce63b71b8b545 (diff)
downloadayatana-indicator-datetime-7affbfb591fe0d5b68bdf5023eae2aba5e727dd2.tar.gz
ayatana-indicator-datetime-7affbfb591fe0d5b68bdf5023eae2aba5e727dd2.tar.bz2
ayatana-indicator-datetime-7affbfb591fe0d5b68bdf5023eae2aba5e727dd2.zip
Add the snooze feature Fixes: 1354400
Approved by: Jussi Pakkanen, PS Jenkins bot
Diffstat (limited to 'tests/manual-test-snap.cpp')
-rw-r--r--tests/manual-test-snap.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/manual-test-snap.cpp b/tests/manual-test-snap.cpp
index 7d4403d..369e6cd 100644
--- a/tests/manual-test-snap.cpp
+++ b/tests/manual-test-snap.cpp
@@ -78,12 +78,12 @@ int main(int argc, const char* argv[])
g_date_time_unref(begin);
auto loop = g_main_loop_new(nullptr, false);
- auto show = [loop](const Appointment& appt){
- g_message("You clicked 'show' for appt url '%s'", appt.url.c_str());
+ auto on_snooze = [loop](const Appointment& appt){
+ g_message("You clicked 'Snooze' for appt url '%s'", appt.url.c_str());
g_idle_add(quit_idle, loop);
};
- auto dismiss = [loop](const Appointment&){
- g_message("You clicked 'dismiss'");
+ auto on_ok = [loop](const Appointment&){
+ g_message("You clicked 'OK'");
g_idle_add(quit_idle, loop);
};
@@ -97,7 +97,7 @@ int main(int argc, const char* argv[])
auto notification_engine = std::make_shared<uin::Engine>("indicator-datetime-service");
Snap snap (notification_engine, settings);
- snap(a, show, dismiss);
+ snap(a, on_snooze, on_ok);
g_main_loop_run(loop);
g_main_loop_unref(loop);