From c56047966f0d46eb2d62e4e4e5ef73e1f464d0b4 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Wed, 25 Sep 2002 21:41:19 +0000 Subject: Add "calendar/public" and "tasks/public". (type_is_calendar, * gui/component-factory.c (folder_types): Add "calendar/public" and "tasks/public". (type_is_calendar, type_is_tasks): New utility functions (create_view, create_folder, remove_folder, xfer_folder, sc_user_create_new_item_cb): Use type_is_calendar/type_is_tasks * importers/icalendar-importer.c (get_uri_from_folder_path): allow importing into public calendar/task folders too. * gui/e-itip-control.c: Note that it's intentional that we use "calendar" and "tasks" here instead of "calendar/*" and "tasks/*". (31032) svn path=/trunk/; revision=18222 --- calendar/importers/icalendar-importer.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'calendar/importers') diff --git a/calendar/importers/icalendar-importer.c b/calendar/importers/icalendar-importer.c index 3260ed8fcc..b61da37862 100644 --- a/calendar/importers/icalendar-importer.c +++ b/calendar/importers/icalendar-importer.c @@ -202,9 +202,11 @@ get_uri_from_folder_path (ICalImporter *ici, const char *folderpath) } else { uri = g_strdup (corba_folder->physicalUri); - if (!strcmp (corba_folder->type, "tasks")) + if (!strcmp (corba_folder->type, "tasks") || + !strcmp (corba_folder->type, "tasks/public")) ici->folder_contains_tasks = TRUE; - else if (!strcmp (corba_folder->type, "calendar")) + else if (!strcmp (corba_folder->type, "calendar") || + !strcmp (corba_folder->type, "calendar/public")) ici->folder_contains_events = TRUE; } -- cgit