aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2013-04-19 16:43:47 +0800
committerMilan Crha <mcrha@redhat.com>2013-04-19 16:43:47 +0800
commit91c44c77ebfc891dc3f65d2317a28b970185dc0a (patch)
tree0fa6986fb23daefd7274eeb40600e006c9dd0167 /plugins
parentf36b98c762713940dc60848cfa138d769f1f6eab (diff)
downloadgsoc2013-evolution-91c44c77ebfc891dc3f65d2317a28b970185dc0a.tar
gsoc2013-evolution-91c44c77ebfc891dc3f65d2317a28b970185dc0a.tar.gz
gsoc2013-evolution-91c44c77ebfc891dc3f65d2317a28b970185dc0a.tar.bz2
gsoc2013-evolution-91c44c77ebfc891dc3f65d2317a28b970185dc0a.tar.lz
gsoc2013-evolution-91c44c77ebfc891dc3f65d2317a28b970185dc0a.tar.xz
gsoc2013-evolution-91c44c77ebfc891dc3f65d2317a28b970185dc0a.tar.zst
gsoc2013-evolution-91c44c77ebfc891dc3f65d2317a28b970185dc0a.zip
Workaround broken Free/Busy fetching (Bug #692361)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/publish-calendar/publish-format-fb.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/publish-calendar/publish-format-fb.c b/plugins/publish-calendar/publish-format-fb.c
index 9ead6efe0f..c062994720 100644
--- a/plugins/publish-calendar/publish-format-fb.c
+++ b/plugins/publish-calendar/publish-format-fb.c
@@ -117,6 +117,16 @@ write_calendar (const gchar *uid,
if (e_cal_client_get_free_busy_sync (E_CAL_CLIENT (client), start, end, users, NULL, error)) {
gchar *ical_string;
GSList *iter;
+ gboolean done = FALSE;
+
+ /* This is to workaround broken dispatch of "free-busy-data" signal,
+ introduced in 3.8.0. This code can be removed once the below bug is
+ properly fixed: https://bugzilla.gnome.org/show_bug.cgi?id=692361
+ */
+ while (!done) {
+ g_usleep (G_USEC_PER_SEC / 10);
+ done = !g_main_context_iteration (NULL, FALSE);
+ }
for (iter = objects; iter; iter = iter->next) {
ECalComponent *comp = iter->data;