Re: [SyncEvolution] Port to libecal-2.0 and libebook API changes

2019-05-02 Thread Milan Crha
On Thu, 2019-05-02 at 20:59 +0200, deloptes wrote:
> but shouldn't be somewhere there a libical version check?

Hi,
that's assured through HAVE_LIBECAL_2_0 (see the first patch at this
thread). Nothing of this had been released yet, the evolution-data-
server's libecal-2.0 is waiting for the libical release currently, with
which it'll use libical-glib part of the libical project. The current
libecal-1.2 uses plain libical.
Bye,
Milan

___
SyncEvolution mailing list
SyncEvolution@syncevolution.org
https://lists.syncevolution.org/mailman/listinfo/syncevolution


Re: [SyncEvolution] Port to libecal-2.0 and libebook API changes

2019-05-02 Thread deloptes
Hi,
but shouldn't be somewhere there a libical version check?

On Thu, May 2, 2019 at 2:50 PM Milan Crha  wrote:

> On Wed, 2019-04-24 at 17:49 +0200, Milan Crha wrote:
> > There are going to be made huge libecal API changes...
>
> Hi,
> upstream libical received additional API changes in the libical-glib
> part, which touch also the previous patch. Even it's not released yet I
> prepared those new changes (attached).
> Bye,
> Milan
> ___
> SyncEvolution mailing list
> SyncEvolution@syncevolution.org
> https://lists.syncevolution.org/mailman/listinfo/syncevolution
>
___
SyncEvolution mailing list
SyncEvolution@syncevolution.org
https://lists.syncevolution.org/mailman/listinfo/syncevolution


Re: [SyncEvolution] Port to libecal-2.0 and libebook API changes

2019-05-02 Thread Milan Crha
On Wed, 2019-04-24 at 17:49 +0200, Milan Crha wrote:
> There are going to be made huge libecal API changes...

Hi,
upstream libical received additional API changes in the libical-glib
part, which touch also the previous patch. Even it's not released yet I
prepared those new changes (attached).
Bye,
Milan
diff -up syncevolution-1.5.3/src/backends/evolution/EvolutionCalendarSource.cpp.orig2 syncevolution-1.5.3/src/backends/evolution/EvolutionCalendarSource.cpp
--- syncevolution-1.5.3/src/backends/evolution/EvolutionCalendarSource.cpp.orig2	2019-05-02 14:45:02.301086306 +0200
+++ syncevolution-1.5.3/src/backends/evolution/EvolutionCalendarSource.cpp	2019-05-02 14:46:51.081084802 +0200
@@ -760,7 +760,7 @@ EvolutionCalendarSource::InsertItemResul
 eptr orig(retrieveItem(id));
 ICalProperty *orig_rid = i_cal_component_get_first_property(orig, I_CAL_RECURRENCEID_PROPERTY);
 if (orig_rid) {
-i_cal_component_take_property(subcomp, i_cal_property_new_clone(orig_rid));
+i_cal_component_take_property(subcomp, i_cal_property_clone(orig_rid));
 }
 g_clear_object(_rid);
 }
@@ -1448,7 +1448,7 @@ string EvolutionCalendarSource::icalTime
 if (tt || !i_cal_time_is_valid_time (tt) || i_cal_time_is_null_time (tt)) {
 return "";
 } else {
-eptr timestr(i_cal_time_as_ical_string_r(tt));
+eptr timestr(i_cal_time_as_ical_string(tt));
 if (!timestr) {
 SE_THROW("cannot convert to time string");
 }
___
SyncEvolution mailing list
SyncEvolution@syncevolution.org
https://lists.syncevolution.org/mailman/listinfo/syncevolution