diff --git a/eds-comp-percent.diff b/eds-comp-percent.diff new file mode 100644 index 0000000..7fe5f43 --- /dev/null +++ b/eds-comp-percent.diff @@ -0,0 +1,75 @@ +diff --git a/calendar/libecal/e-cal-component.c b/calendar/libecal/e-cal-component.c +index d62760b..7d00adf 100644 +--- a/calendar/libecal/e-cal-component.c ++++ b/calendar/libecal/e-cal-component.c +@@ -3485,6 +3485,56 @@ e_cal_component_get_percent (ECalComponent *comp, int **percent) + *percent = NULL; + } + ++void ++e_cal_component_set_percent_as_int (ECalComponent *comp, int percent) ++{ ++ ECalComponentPrivate *priv; ++ ++ g_return_if_fail (comp != NULL); ++ g_return_if_fail (E_IS_CAL_COMPONENT (comp)); ++ ++ priv = comp->priv; ++ g_return_if_fail (priv->icalcomp != NULL); ++ ++ if (percent == -1) { ++ if (priv->percent) { ++ icalcomponent_remove_property (priv->icalcomp, priv->percent); ++ icalproperty_free (priv->percent); ++ priv->percent = NULL; ++ } ++ ++ return; ++ } ++ ++ g_return_if_fail (percent >= 0 && percent <= 100); ++ ++ if (priv->percent) ++ icalproperty_set_percentcomplete (priv->percent, percent); ++ else { ++ priv->percent = icalproperty_new_percentcomplete (percent); ++ icalcomponent_add_property (priv->icalcomp, priv->percent); ++ } ++ ++ ++} ++ ++int ++e_cal_component_get_percent_as_int (ECalComponent *comp) ++{ ++ ECalComponentPrivate *priv; ++ int percent; ++ ++ priv = comp->priv; ++ g_return_val_if_fail (priv->icalcomp != NULL, -1); ++ ++ if (priv->percent) { ++ percent = icalproperty_get_percentcomplete (priv->percent); ++ } else ++ percent = -1; ++ ++ return percent; ++} ++ + /** + * e_cal_component_set_percent: + * @comp: A calendar component object. +diff --git a/calendar/libecal/e-cal-component.h b/calendar/libecal/e-cal-component.h +index b8dc492..94c6f3a 100644 +--- a/calendar/libecal/e-cal-component.h ++++ b/calendar/libecal/e-cal-component.h +@@ -285,6 +285,9 @@ void e_cal_component_get_organizer (ECalComponent *comp, ECalComponentOrganizer + void e_cal_component_set_organizer (ECalComponent *comp, ECalComponentOrganizer *organizer); + gboolean e_cal_component_has_organizer (ECalComponent *comp); + ++int e_cal_component_get_percent_as_int (ECalComponent *comp); ++void e_cal_component_set_percent_as_int (ECalComponent *comp, int percent); ++ + void e_cal_component_get_percent (ECalComponent *comp, int **percent); + void e_cal_component_set_percent (ECalComponent *comp, int *percent); + diff --git a/evolution-data-server.changes b/evolution-data-server.changes index 2b15f5f..a12d844 100644 --- a/evolution-data-server.changes +++ b/evolution-data-server.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Nov 21 05:45:40 CET 2008 - pchenthill@suse.de + +- eds-comp-percent.diff : Adds wrapper function to get percentage + complete for tasks. Required for sharepoint connector. + ------------------------------------------------------------------- Thu Nov 20 10:40:30 CET 2008 - abharath@suse.de diff --git a/evolution-data-server.spec b/evolution-data-server.spec index 845add3..8e6b992 100644 --- a/evolution-data-server.spec +++ b/evolution-data-server.spec @@ -57,7 +57,7 @@ Obsoletes: evolution-data-server-32bit %endif Summary: Evolution Data Server Version: 2.24.1.1 -Release: 2 +Release: 3 Source0: ftp://ftp.gnome.org/pub/gnome/sources/evolution-data-server/2.24/%{name}-%{version}.tar.bz2 # PATCH-FIX-UPSTREAM evolution-data-server-1.11.5-cert-auth-complete.patch bgo253574 -- Fix has been submitted to bgo. Patch3: evolution-data-server-1.11.5-cert-auth-complete.patch @@ -91,6 +91,8 @@ Patch16: bnc-210959-eds-accept_ics.patch Patch17: bnc-438730-loosing-more-state.patch # PATCH-FEATURE-OPENSUSE evolution-data-server-shared-nss-db.patch hpj@novell.com -- Migrate to shared NSS database. Patch18: evolution-data-server-shared-nss-db.patch +# PATCH-FIX-UPSTREAM eds-comp-percent.diff pchenthill@suse.de -- Wrapper function to get percent as int. Needed for sharepoint connector. Will be pushed upstream. +Patch19: eds-comp-percent.diff # PATCH-FIX-OPENSUSE eds-core-mapi-changes.diff msuman@suse.de -- This patch contains changes in the core code base for the MAPI provider. Patch100: eds-core-mapi-changes.diff Url: http://www.gnome.org @@ -176,6 +178,7 @@ documentation. %patch16 %patch17 %patch18 -p1 +%patch19 -p1 %patch100 -p1 %build @@ -248,6 +251,9 @@ echo -e "#!/bin/sh\n\nLD_LIBRARY_PATH=%{_libdir}/evoldap/lib MONO_PATH=%{_libdir %{_datadir}/gtk-doc/html/* %changelog +* Fri Nov 21 2008 pchenthill@suse.de +- eds-comp-percent.diff : Adds wrapper function to get percentage + complete for tasks. Required for sharepoint connector. * Thu Nov 20 2008 abharath@suse.de - Patches added + bnc#431133 - bnc-431133-unread-mail-empty.patch - Mail opened