aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/publish-calendar
diff options
context:
space:
mode:
authorChenthill Palanisamy <pchen@src.gnome.org>2006-07-31 17:23:24 +0800
committerChenthill Palanisamy <pchen@src.gnome.org>2006-07-31 17:23:24 +0800
commit6a68e6ae90e693e52306c0a9fef709fd628344f3 (patch)
treee9e3dd5c5e4179b9d39d0ae961d56c04677e6990 /plugins/publish-calendar
parent62904a0605d2800801a74bf2f5044512d3bf939c (diff)
downloadgsoc2013-evolution-6a68e6ae90e693e52306c0a9fef709fd628344f3.tar
gsoc2013-evolution-6a68e6ae90e693e52306c0a9fef709fd628344f3.tar.gz
gsoc2013-evolution-6a68e6ae90e693e52306c0a9fef709fd628344f3.tar.bz2
gsoc2013-evolution-6a68e6ae90e693e52306c0a9fef709fd628344f3.tar.lz
gsoc2013-evolution-6a68e6ae90e693e52306c0a9fef709fd628344f3.tar.xz
gsoc2013-evolution-6a68e6ae90e693e52306c0a9fef709fd628344f3.tar.zst
gsoc2013-evolution-6a68e6ae90e693e52306c0a9fef709fd628344f3.zip
Fixes #329740.
svn path=/trunk/; revision=32445
Diffstat (limited to 'plugins/publish-calendar')
-rw-r--r--plugins/publish-calendar/ChangeLog6
-rw-r--r--plugins/publish-calendar/publish-format-fb.c18
2 files changed, 23 insertions, 1 deletions
diff --git a/plugins/publish-calendar/ChangeLog b/plugins/publish-calendar/ChangeLog
index c4b9b86fc9..030f65cee3 100644
--- a/plugins/publish-calendar/ChangeLog
+++ b/plugins/publish-calendar/ChangeLog
@@ -1,5 +1,11 @@
2006-07-31 Chenthill Palanisamy <pchenthill@novell.com>
+ Fixes #329740
+ * publish-format-fb.c: (write_calendar): Pass the email id
+ of the user for getting the free busy information.
+
+2006-07-31 Chenthill Palanisamy <pchenthill@novell.com>
+
Fixes #347973
* url-editor-dialog.c: (set_from_uri): Parse the uri
using EUri.
diff --git a/plugins/publish-calendar/publish-format-fb.c b/plugins/publish-calendar/publish-format-fb.c
index 12aae23ebe..6069ccb490 100644
--- a/plugins/publish-calendar/publish-format-fb.c
+++ b/plugins/publish-calendar/publish-format-fb.c
@@ -41,6 +41,8 @@ write_calendar (gchar *uid, ESourceList *source_list, GnomeVFSHandle *handle)
icaltimezone *utc;
time_t start = time(NULL), end;
icalcomponent *top_level;
+ char *email = NULL;
+ GList *users = NULL;
utc = icaltimezone_get_utc_timezone ();
start = time_day_begin_with_zone (start, utc);
@@ -60,11 +62,16 @@ write_calendar (gchar *uid, ESourceList *source_list, GnomeVFSHandle *handle)
g_error_free (error);
return FALSE;
}
+
+ if (e_cal_get_cal_address (client, &email, &error)) {
+ if (email && *email)
+ users = g_list_append (users, email);
+ }
top_level = e_cal_util_new_top_level ();
error = NULL;
- if (e_cal_get_free_busy (client, NULL, start, end, &objects, &error)) {
+ if (e_cal_get_free_busy (client, users, start, end, &objects, &error)) {
char *ical_string;
GnomeVFSFileSize bytes_written;
GnomeVFSResult result;
@@ -86,8 +93,17 @@ write_calendar (gchar *uid, ESourceList *source_list, GnomeVFSHandle *handle)
/* FIXME: EError */
g_object_unref (client);
g_error_free (error);
+ if (users)
+ g_list_free (users);
+ g_free (email);
+
return FALSE;
}
+
+ if (users)
+ g_list_free (users);
+
+ g_free (email);
g_object_unref (client);
return TRUE;