diff options
-rw-r--r-- | calendar/ChangeLog | 7 | ||||
-rw-r--r-- | 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 <matt@helixcode.com> + + * 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 <damon@helixcode.com> * 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 <gui/gnome-cal.h> #include <gui/calendar-commands.h> -#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: |