aboutsummaryrefslogtreecommitdiffstats
path: root/wombat/wombat.c
diff options
context:
space:
mode:
Diffstat (limited to 'wombat/wombat.c')
-rw-r--r--wombat/wombat.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/wombat/wombat.c b/wombat/wombat.c
index 563579f370..27e20d36fb 100644
--- a/wombat/wombat.c
+++ b/wombat/wombat.c
@@ -31,7 +31,8 @@
#include "pas/pas-backend-file.h"
#include "calendar/pcs/cal-factory.h"
-#include "calendar/pcs/cal-backend-file.h"
+#include "calendar/pcs/cal-backend-file-events.h"
+#include "calendar/pcs/cal-backend-file-todos.h"
#include "wombat-interface-check.h"
@@ -65,7 +66,7 @@ static gboolean
termination_handler (gpointer data)
{
if (
- cal_factory_get_n_backends (cal_factory) == 0 &&
+// cal_factory_get_n_backends (cal_factory) == 0 &&
pas_book_factory_get_n_backends (pas_book_factory) == 0) {
fprintf (stderr, "termination_handler(): Terminating the Wombat. Have a nice day.\n");
bonobo_main_quit ();
@@ -144,9 +145,10 @@ setup_pcs (void)
return FALSE;
}
- cal_factory_register_method (cal_factory, "file", CAL_BACKEND_FILE_TYPE);
+ cal_factory_register_method (cal_factory, "file", ICAL_VEVENT_COMPONENT, CAL_BACKEND_FILE_EVENTS_TYPE);
+ cal_factory_register_method (cal_factory, "file", ICAL_VTODO_COMPONENT, CAL_BACKEND_FILE_TODOS_TYPE);
- if (!cal_factory_oaf_register (cal_factory, CAL_FACTORY_OAF_ID)) {
+ if (!cal_factory_register_storage (cal_factory, CAL_FACTORY_OAF_ID)) {
bonobo_object_unref (BONOBO_OBJECT (cal_factory));
cal_factory = NULL;
return FALSE;