Hello community, here is the log from the commit of package evolution-data-server checked in at Fri Nov 21 15:16:38 CET 2008. -------- --- GNOME/evolution-data-server/evolution-data-server.changes 2008-11-20 10:54:52.000000000 +0100 +++ /mounts/work_src_done/STABLE/evolution-data-server/evolution-data-server.changes 2008-11-21 05:49:57.795214000 +0100 @@ -1,0 +2,6 @@ +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. + +------------------------------------------------------------------- calling whatdependson for head-i586 New: ---- eds-comp-percent.diff ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ evolution-data-server.spec ++++++ --- /var/tmp/diff_new_pack.j11595/_old 2008-11-21 15:15:59.000000000 +0100 +++ /var/tmp/diff_new_pack.j11595/_new 2008-11-21 15:15:59.000000000 +0100 @@ -57,7 +57,7 @@ %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 @@ 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 @@ %patch16 %patch17 %patch18 -p1 +%patch19 -p1 %patch100 -p1 %build @@ -248,6 +251,9 @@ %{_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 ++++++ eds-comp-percent.diff ++++++ 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); ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org