aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/importers
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-09-25 14:59:30 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-09-26 22:28:05 +0800
commit3b2cfae1768902b60d604fa96cd546636077feb1 (patch)
tree589cdc466339ef9d1d39fe9aa5858d76708efa9f /calendar/importers
parentface752169b27bad4c3cdec8395aee79e40eba7f (diff)
downloadgsoc2013-evolution-3b2cfae1768902b60d604fa96cd546636077feb1.tar
gsoc2013-evolution-3b2cfae1768902b60d604fa96cd546636077feb1.tar.gz
gsoc2013-evolution-3b2cfae1768902b60d604fa96cd546636077feb1.tar.bz2
gsoc2013-evolution-3b2cfae1768902b60d604fa96cd546636077feb1.tar.lz
gsoc2013-evolution-3b2cfae1768902b60d604fa96cd546636077feb1.tar.xz
gsoc2013-evolution-3b2cfae1768902b60d604fa96cd546636077feb1.tar.zst
gsoc2013-evolution-3b2cfae1768902b60d604fa96cd546636077feb1.zip
Trim unused or unnecessary bits from the import framework.
Diffstat (limited to 'calendar/importers')
-rw-r--r--calendar/importers/icalendar-importer.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/calendar/importers/icalendar-importer.c b/calendar/importers/icalendar-importer.c
index caa7a8a87c..6a09c36e03 100644
--- a/calendar/importers/icalendar-importer.c
+++ b/calendar/importers/icalendar-importer.c
@@ -593,12 +593,11 @@ gnome_calendar_supported(EImport *ei, EImportTarget *target, EImportImporter *im
{
gchar *filename;
gboolean res;
- EImportTargetHome *s = (EImportTargetHome *)target;
if (target->type != E_IMPORT_TARGET_HOME)
return FALSE;
- filename = g_build_filename(s->homedir, "user-cal.vcf", NULL);
+ filename = g_build_filename(g_get_home_dir (), "user-cal.vcf", NULL);
res = g_file_test(filename, G_FILE_TEST_IS_REGULAR);
g_free (filename);
@@ -614,7 +613,6 @@ gnome_calendar_import(EImport *ei, EImportTarget *target, EImportImporter *im)
ECal *calendar_client = NULL, *tasks_client = NULL;
gint t;
gint do_calendar, do_tasks;
- EImportTargetHome *s = (EImportTargetHome *)target;
ICalIntelligentImporter *ici;
/* This is pretty shitty, everything runs in the gui thread and can block
@@ -643,7 +641,7 @@ gnome_calendar_import(EImport *ei, EImportTarget *target, EImportImporter *im)
}
/* Load the Gnome Calendar file and convert to iCalendar. */
- filename = g_build_filename(s->homedir, "user-cal.vcf", NULL);
+ filename = g_build_filename(g_get_home_dir (), "user-cal.vcf", NULL);
icalcomp = load_vcalendar_file (filename);
g_free (filename);