aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Loper <mloper@src.gnome.org>2000-05-07 10:48:49 +0800
committerMatthew Loper <mloper@src.gnome.org>2000-05-07 10:48:49 +0800
commitfcaa6565ec3885f3e2b537d2a0c5aa449378d1fb (patch)
tree2f0dc0fa28a1fd4714dbb8960449438349ea0641
parenta2b62d3b5bb7215f63a1e228ef1e6fe847cc80c0 (diff)
downloadgsoc2013-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
-rw-r--r--calendar/ChangeLog7
-rw-r--r--calendar/gui/evolution-calendar-control.c8
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: