зеркало из https://github.com/mozilla/gecko-dev.git
Checked in patch for bug 156495: VCALENDAR objects of TODO items don't have 'version' and 'prodid' properties.
This commit is contained in:
Родитель
7d22d6cfee
Коммит
15fdcc0899
|
@ -1898,9 +1898,6 @@ bool oeICalEventImpl::ParseIcalComponent( icalcomponent *comp )
|
|||
return true;
|
||||
}
|
||||
|
||||
#define ICALEVENT_VERSION "2.0"
|
||||
#define ICALEVENT_PRODID "-//Mozilla.org/NONSGML Mozilla Calendar V1.0//EN"
|
||||
|
||||
icalcomponent* oeICalEventImpl::AsIcalComponent()
|
||||
{
|
||||
#ifdef ICAL_DEBUG_ALL
|
||||
|
|
|
@ -55,6 +55,9 @@ extern "C" {
|
|||
|
||||
#define OE_ICALEVENT_CONTRACTID "@mozilla.org/icalevent;1"
|
||||
|
||||
#define ICALEVENT_VERSION "2.0"
|
||||
#define ICALEVENT_PRODID "-//Mozilla.org/NONSGML Mozilla Calendar V1.0//EN"
|
||||
|
||||
class
|
||||
oeDateEnumerator : public nsISimpleEnumerator
|
||||
{
|
||||
|
|
|
@ -261,9 +261,16 @@ icalcomponent* oeICalTodoImpl::AsIcalComponent()
|
|||
return nsnull;
|
||||
}
|
||||
|
||||
//version
|
||||
icalproperty *prop = icalproperty_new_version( ICALEVENT_VERSION );
|
||||
icalcomponent_add_property( newcalendar, prop );
|
||||
|
||||
//prodid
|
||||
prop = icalproperty_new_prodid( ICALEVENT_PRODID );
|
||||
icalcomponent_add_property( newcalendar, prop );
|
||||
|
||||
icalcomponent *vtodo = icalcomponent_new_vtodo();
|
||||
icalcomponent *vevent = icalcomponent_get_first_component( basevcal, ICAL_VEVENT_COMPONENT );
|
||||
icalproperty *prop;
|
||||
for( prop = icalcomponent_get_first_property( vevent, ICAL_ANY_PROPERTY );
|
||||
prop != 0 ;
|
||||
prop = icalcomponent_get_next_property( vevent, ICAL_ANY_PROPERTY ) ) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче