void publish_calendar_as_fb (GOutputStream *stream, EPublishUri *uri, GError **error) { GSList *l; /* events */ l = uri->events; while (l) { gchar *uid = l->data; if (!write_calendar (uid, stream, uri->fb_duration_type, uri->fb_duration_value, error)) break; l = g_slist_next (l); } }
void publish_calendar_as_fb (GOutputStream *stream, EPublishUri *uri) { GSList *l; ESourceList *source_list; GConfClient *gconf_client; gconf_client = gconf_client_get_default (); /* events */ source_list = e_source_list_new_for_gconf (gconf_client, "/apps/evolution/calendar/sources"); l = uri->events; while (l) { gchar *uid = l->data; if (!write_calendar (uid, source_list, stream)) break; l = g_slist_next (l); } g_object_unref (source_list); g_object_unref (gconf_client); }