From 18372290242a13cee9cc64c50c054d07f9494be4 Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Wed, 4 Feb 2004 21:31:58 +0000 Subject: use new cal auth functions 2004-02-04 JP Rosevear * importers/icalendar-importer.c (gnome_calendar_import_data_fn): use new cal auth functions * common/authentication.c (auth_new_cal_from_default): get a default calendar with auth * common/authentication.h: add proto svn path=/trunk/; revision=24621 --- calendar/common/authentication.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'calendar/common/authentication.c') diff --git a/calendar/common/authentication.c b/calendar/common/authentication.c index ba0eae2893..fa2be5323d 100644 --- a/calendar/common/authentication.c +++ b/calendar/common/authentication.c @@ -36,6 +36,18 @@ auth_func_cb (ECal *ecal, const char *prompt, const char *key, gpointer user_dat NULL); } +ECal * +auth_new_cal_from_default (ECalSourceType type) +{ + ECal *ecal = NULL; + + if (!e_cal_open_default (&ecal, type, auth_func_cb, NULL, NULL)) + return NULL; + + + return ecal; +} + ECal * auth_new_cal_from_source (ESource *source, ECalSourceType type) { -- cgit