aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2001-01-16 04:36:32 +0800
committerJP Rosevear <jpr@src.gnome.org>2001-01-16 04:36:32 +0800
commit359bc474c015e2d54001204c4015f3216d408591 (patch)
treee22831fa3853a861a12aa34a6731088476d7f681 /calendar
parent0d86824e0905033cabd2550930ef2acbd3cbf3cf (diff)
downloadgsoc2013-evolution-359bc474c015e2d54001204c4015f3216d408591.tar
gsoc2013-evolution-359bc474c015e2d54001204c4015f3216d408591.tar.gz
gsoc2013-evolution-359bc474c015e2d54001204c4015f3216d408591.tar.bz2
gsoc2013-evolution-359bc474c015e2d54001204c4015f3216d408591.tar.lz
gsoc2013-evolution-359bc474c015e2d54001204c4015f3216d408591.tar.xz
gsoc2013-evolution-359bc474c015e2d54001204c4015f3216d408591.tar.zst
gsoc2013-evolution-359bc474c015e2d54001204c4015f3216d408591.zip
accomadate tasks in their new dir
2001-01-15 JP Rosevear <jpr@ximian.com> * pcs/cal-backend.c (cal_backend_compute_changes): accomadate tasks in their new dir * conduits/todo/todo-conduit.c (start_calendar_server): ditto svn path=/trunk/; revision=7512
Diffstat (limited to 'calendar')
-rw-r--r--calendar/ChangeLog7
-rw-r--r--calendar/conduits/todo/todo-conduit.c4
-rw-r--r--calendar/pcs/cal-backend.c5
3 files changed, 13 insertions, 3 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index e38ba3f411..030ac6270d 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,5 +1,12 @@
2001-01-15 JP Rosevear <jpr@ximian.com>
+ * pcs/cal-backend.c (cal_backend_compute_changes): accomadate tasks
+ in their new dir
+
+ * conduits/todo/todo-conduit.c (start_calendar_server): ditto
+
+2001-01-15 JP Rosevear <jpr@ximian.com>
+
* conduits/todo/todo-conduit.c (print_local): prevent segfaults and
buffer overflows.
(print_remote): ditto
diff --git a/calendar/conduits/todo/todo-conduit.c b/calendar/conduits/todo/todo-conduit.c
index abc3bd498d..7d36dc5e10 100644
--- a/calendar/conduits/todo/todo-conduit.c
+++ b/calendar/conduits/todo/todo-conduit.c
@@ -207,7 +207,7 @@ start_calendar_server (EToDoConduitContext *ctxt)
/* FIX ME */
ctxt->calendar_file = g_concat_dir_and_file (g_get_home_dir (),
- "evolution/local/Calendar/calendar.ics");
+ "evolution/local/Tasks/tasks.ics");
gtk_signal_connect (GTK_OBJECT (ctxt->client), "cal_loaded",
start_calendar_server_cb, ctxt);
@@ -231,7 +231,7 @@ map_name (EToDoConduitContext *ctxt)
{
char *filename;
- filename = g_strdup_printf ("%s/evolution/local/Calendar/pilot-map-todo-%d.xml", g_get_home_dir (), ctxt->cfg->pilot_id);
+ filename = g_strdup_printf ("%s/evolution/local/Tasks/pilot-map-todo-%d.xml", g_get_home_dir (), ctxt->cfg->pilot_id);
return filename;
}
diff --git a/calendar/pcs/cal-backend.c b/calendar/pcs/cal-backend.c
index 9570b85d7f..0dc5d45883 100644
--- a/calendar/pcs/cal-backend.c
+++ b/calendar/pcs/cal-backend.c
@@ -332,7 +332,10 @@ cal_backend_compute_changes (CalBackend *backend, CalObjType type, const char *c
int n;
/* Find the changed ids - FIX ME, path should not be hard coded */
- filename = g_strdup_printf ("%s/evolution/local/Calendar/%s.db", g_get_home_dir (), change_id);
+ if (type == GNOME_Evolution_Calendar_TYPE_EVENT)
+ filename = g_strdup_printf ("%s/evolution/local/Tasks/%s.db", g_get_home_dir (), change_id);
+ else
+ filename = g_strdup_printf ("%s/evolution/local/Calendar/%s.db", g_get_home_dir (), change_id);
ehash = e_dbhash_new (filename);
g_free (filename);