From fcaa6565ec3885f3e2b537d2a0c5aa449378d1fb Mon Sep 17 00:00:00 2001 From: Matthew Loper Date: Sun, 7 May 2000 02:48:49 +0000 Subject: + * gui/evolution-calendar-control.c (PROPERTY_CALENDAR_URI): + Changed to "folder_uri" from "calendar_uri". + (set_prop): The uri given to us is a directory, so we append a + filename onto the end before we use it. svn path=/trunk/; revision=2852 --- calendar/ChangeLog | 7 +++++++ calendar/gui/evolution-calendar-control.c | 8 ++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/calendar/ChangeLog b/calendar/ChangeLog index b4f03b7cf7..4db98a2c15 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,10 @@ +2000-05-07 Matt Loper + + * gui/evolution-calendar-control.c (PROPERTY_CALENDAR_URI): + Changed to "folder_uri" from "calendar_uri". + (set_prop): The uri given to us is a directory, so we append a + filename onto the end before we use it. + 2000-05-06 Damon Chaplin * cal-util/timeutil.c (time_day_begin): diff --git a/calendar/gui/evolution-calendar-control.c b/calendar/gui/evolution-calendar-control.c index 54ac148889..972a670bde 100644 --- a/calendar/gui/evolution-calendar-control.c +++ b/calendar/gui/evolution-calendar-control.c @@ -17,7 +17,7 @@ #include #include -#define PROPERTY_CALENDAR_URI "calendar_uri" +#define PROPERTY_CALENDAR_URI "folder_uri" #define PROPERTY_CALENDAR_URI_IDX 1 @@ -96,12 +96,16 @@ set_prop (BonoboPropertyBag *bag, gpointer user_data) { GnomeCalendar *gcal = user_data; + char *filename; switch (arg_id) { case PROPERTY_CALENDAR_URI_IDX: printf ("set_prop: '%s'\n", BONOBO_ARG_GET_STRING (arg)); - calendar_set_uri (gcal, BONOBO_ARG_GET_STRING (arg)); + filename = g_strdup_printf ("%s/calendar.vcf", + BONOBO_ARG_GET_STRING (arg)); + calendar_set_uri (gcal, filename); + g_free (filename); break; default: -- cgit v1.2.3