~ubuntu-branches/ubuntu/maverick/evolution-data-server/maverick-updates

« back to all changes in this revision

Viewing changes to calendar/libecal/e-cal-component.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2009-07-13 15:01:33 UTC
  • mfrom: (1.1.69 upstream)
  • Revision ID: james.westby@ubuntu.com-20090713150133-4lxw1fqpbo2b1i7w
Tags: 2.27.4-0ubuntu1
* New upstream version:
  Bug Fixes:
  Addressbook:
  - #540779 - Do not call e_book_new in the main thread (lp: #265044)
  - #563668 - Do not pop-down an empty completion list 
  - #586225 - Parse numeric name suffixes 
  Calendar:
  - #548702 - google calendar source does not show all events  (lp: #183846)
  Mail:
  - #575701 - Message disappear from unread vfolder, when reply. 
  - #568302 - create camel summary table if not exists on load 
  - #586602 – folder messages are lost on folder rename 
  - #327285 - Word "Success" in error message for failed action (lp: #175599)
  - #587699 - IMAP - Localize only Inbox folder name, no other 
  - #579065 - IMAP - Synchronize remote mail locally is not working 
    (lp: #331478)
  - #564388 - UI blocks for a long time when downloading mails with nntp 
  Misc:
  - #586442 – Various build cleanups 
  - #586477 – Fix quoting in configure.ac 
  - #586811 – Require automake 1.9 and fix whitespace 
  - #586813 – Fix iconv cflags/libs in configure.ac 
  - #586809 – Enable "silent rules" automake 1.11 option 
  - #587165 – Double free in initialize_categories 
  - #587374 - iconv test broken on some gcc 
      Other Fixes:
  Misc:
  Use G_BEGIN_DECLS / G_END_DECLS macros. 
  Work around deprecation of g_mapped_file_free
  Silence some compiler warnings 
  Fixes for windows build 
  Calendar:
  CalDav Fixes/improvements 
  Translations

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
/* Extension property for alarm components so that we can reference them by UID */
38
38
#define EVOLUTION_ALARM_UID_PROPERTY "X-EVOLUTION-ALARM-UID"
39
39
 
40
 
 
41
40
struct attendee {
42
41
        icalproperty *prop;
43
42
        icalparameter *cutype_param;
618
617
        *list = g_slist_append (*list, period);
619
618
}
620
619
 
621
 
 
622
620
/* Scans an icalrecurtype property */
623
621
static void
624
622
scan_recur_id (ECalComponent *comp, struct recur_id *recur_id, icalproperty *prop)
1533
1531
        *al = g_slist_reverse (*al);
1534
1532
}
1535
1533
 
1536
 
 
1537
1534
static void
1538
1535
set_attachment_list (icalcomponent *icalcomp,
1539
1536
                   GSList **attachment_list,
1581
1578
        *attachment_list = g_slist_reverse (*attachment_list);
1582
1579
}
1583
1580
 
1584
 
 
1585
1581
/**
1586
1582
 * e_cal_component_get_attachment_list:
1587
1583
 * @comp: A calendar component object.
1738
1734
        }
1739
1735
}
1740
1736
 
1741
 
 
1742
1737
/**
1743
1738
 * e_cal_component_get_categories_list:
1744
1739
 * @comp: A calendar component object.
2230
2225
                          t);
2231
2226
}
2232
2227
 
2233
 
 
2234
2228
/**
2235
2229
 * e_cal_component_get_created:
2236
2230
 * @comp: A calendar component object.
2410
2404
        }
2411
2405
}
2412
2406
 
2413
 
 
2414
2407
/* This tries to get the DTSTART + DURATION for a VEVENT or VTODO. In a
2415
2408
   VEVENT this is used for the DTEND if no DTEND exists, In a VTOTO it is
2416
2409
   used for the DUE date if DUE doesn't exist. */
2454
2447
                         duration.minutes, duration.seconds);
2455
2448
}
2456
2449
 
2457
 
 
2458
2450
/**
2459
2451
 * e_cal_component_get_dtend:
2460
2452
 * @comp: A calendar component object.
3382
3374
                priv->organizer.language_param = NULL;
3383
3375
        }
3384
3376
 
3385
 
 
3386
3377
}
3387
3378
 
3388
 
 
3389
3379
/**
3390
3380
 * e_cal_component_has_organizer:
3391
3381
 * @comp: A calendar component object.
3464
3454
                icalcomponent_add_property (priv->icalcomp, priv->percent);
3465
3455
        }
3466
3456
 
3467
 
 
3468
3457
}
3469
3458
 
3470
3459
gint
4392
4381
        priv = comp->priv;
4393
4382
        g_return_if_fail (priv->icalcomp != NULL);
4394
4383
 
4395
 
 
4396
4384
        if (transp == E_CAL_COMPONENT_TRANSP_NONE) {
4397
4385
                if (priv->transparency) {
4398
4386
                        icalcomponent_remove_property (priv->icalcomp, priv->transparency);
4542
4530
        *al = g_slist_reverse (*al);
4543
4531
}
4544
4532
 
4545
 
 
4546
4533
/* Sets a text list value */
4547
4534
static void
4548
4535
set_attendee_list (icalcomponent *icalcomp,
5151
5138
        g_hash_table_foreach_remove (priv->alarm_uid_hash, for_each_remove_all_alarms, comp);
5152
5139
}
5153
5140
 
5154
 
 
5155
5141
/* Scans an icalproperty from a calendar component and adds its mapping to our
5156
5142
 * own alarm structure.
5157
5143
 */
5955
5941
        return FALSE;
5956
5942
}
5957
5943
 
5958
 
 
5959
5944
/**
5960
5945
 * e_cal_component_alarm_get_icalcomponent
5961
5946
 * @alarm: An alarm.
5986
5971
        return FALSE;
5987
5972
}
5988
5973
 
5989
 
 
5990
5974
/**
5991
5975
 * e_cal_component_event_dates_match:
5992
5976
 * @comp1: A calendar component object.
6060
6044
        return retval;
6061
6045
}
6062
6046
 
6063