diff options
author | Dan Winship <danw@src.gnome.org> | 2002-09-26 05:41:19 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2002-09-26 05:41:19 +0800 |
commit | c56047966f0d46eb2d62e4e4e5ef73e1f464d0b4 (patch) | |
tree | 1846a7fbcf881a5d34a114992a2af7c1914a8893 /calendar/importers | |
parent | 521b129893815d023cef2828c5a44dad6a75b731 (diff) | |
download | gsoc2013-evolution-c56047966f0d46eb2d62e4e4e5ef73e1f464d0b4.tar gsoc2013-evolution-c56047966f0d46eb2d62e4e4e5ef73e1f464d0b4.tar.gz gsoc2013-evolution-c56047966f0d46eb2d62e4e4e5ef73e1f464d0b4.tar.bz2 gsoc2013-evolution-c56047966f0d46eb2d62e4e4e5ef73e1f464d0b4.tar.lz gsoc2013-evolution-c56047966f0d46eb2d62e4e4e5ef73e1f464d0b4.tar.xz gsoc2013-evolution-c56047966f0d46eb2d62e4e4e5ef73e1f464d0b4.tar.zst gsoc2013-evolution-c56047966f0d46eb2d62e4e4e5ef73e1f464d0b4.zip |
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
Diffstat (limited to 'calendar/importers')
-rw-r--r-- | calendar/importers/icalendar-importer.c | 6 |
1 files changed, 4 insertions, 2 deletions
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; } |