aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 710db66..073c876 100644
--- a/src/main.c
+++ b/src/main.c
@@ -26,6 +26,7 @@
#include <gio/gio.h>
#include "planner-eds.h"
+#include "planner-mock.h"
#include "service.h"
/***
@@ -52,7 +53,15 @@ main (int argc G_GNUC_UNUSED, char ** argv G_GNUC_UNUSED)
textdomain (GETTEXT_PACKAGE);
/* get the planner */
- planner = indicator_datetime_planner_eds_new ();
+ if (g_getenv ("INDICATOR_DATETIME_USE_FAKE_PLANNER") != NULL)
+ {
+ g_message ("Using fake appointment book for testing");
+ planner = indicator_datetime_planner_mock_new ();
+ }
+ else
+ {
+ planner = indicator_datetime_planner_eds_new ();
+ }
/* run */
service = indicator_datetime_service_new (planner);