From 6ee39cc8619bf63082159433397875df30180fb1 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Wed, 10 Apr 2002 16:58:14 +0000 Subject: Use new-and-improved default folder URI config paths. * cal-client/cal-client.c (get_default_uri): Use new-and-improved default folder URI config paths. * gui/calendar-config.c (calendar_config_{get,set}_default_uri, calendar_config_{get,set}_default_tasks_uri): Remove these. The shell owns this information now. (Weren't being used anyway.) * gui/component-factory.c (get_data_uri): Fix another place that hardcoded tacking foo.ics on to the end of URLs. svn path=/trunk/; revision=16421 --- calendar/gui/component-factory.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'calendar/gui/component-factory.c') diff --git a/calendar/gui/component-factory.c b/calendar/gui/component-factory.c index a9cc8a89f9..b4a2b3ab89 100644 --- a/calendar/gui/component-factory.c +++ b/calendar/gui/component-factory.c @@ -506,6 +506,8 @@ static char * get_data_uri (const char *uri, CalComponentVType vtype) { if (uri) { + if (*uri != '/' && strncmp (uri, "file:", 5) != 0) + return g_strdup (uri); if (vtype == CAL_COMPONENT_EVENT) return g_concat_dir_and_file (uri, "calendar.ics"); else if (vtype == CAL_COMPONENT_TODO) -- cgit v1.2.3