diff options
author | Matthew Loper <mloper@src.gnome.org> | 2000-05-07 10:48:49 +0800 |
---|---|---|
committer | Matthew Loper <mloper@src.gnome.org> | 2000-05-07 10:48:49 +0800 |
commit | fcaa6565ec3885f3e2b537d2a0c5aa449378d1fb (patch) | |
tree | 2f0dc0fa28a1fd4714dbb8960449438349ea0641 /calendar/gui | |
parent | a2b62d3b5bb7215f63a1e228ef1e6fe847cc80c0 (diff) | |
download | gsoc2013-evolution-fcaa6565ec3885f3e2b537d2a0c5aa449378d1fb.tar gsoc2013-evolution-fcaa6565ec3885f3e2b537d2a0c5aa449378d1fb.tar.gz gsoc2013-evolution-fcaa6565ec3885f3e2b537d2a0c5aa449378d1fb.tar.bz2 gsoc2013-evolution-fcaa6565ec3885f3e2b537d2a0c5aa449378d1fb.tar.lz gsoc2013-evolution-fcaa6565ec3885f3e2b537d2a0c5aa449378d1fb.tar.xz gsoc2013-evolution-fcaa6565ec3885f3e2b537d2a0c5aa449378d1fb.tar.zst gsoc2013-evolution-fcaa6565ec3885f3e2b537d2a0c5aa449378d1fb.zip |
+ * 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
Diffstat (limited to 'calendar/gui')
-rw-r--r-- | calendar/gui/evolution-calendar-control.c | 8 |
1 files changed, 6 insertions, 2 deletions
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: |