Wed May 16 16:15:24 2018 UTC ()
evolution: Fix build against current libical API.
(jperkin)
diff -r1.84 -r1.85 pkgsrc/mail/evolution/distinfo
diff -r0 -r1.1 pkgsrc/mail/evolution/patches/patch-calendar_gui_comp-util.c
diff -r0 -r1.1 pkgsrc/mail/evolution/patches/patch-calendar_gui_dialogs_recurrence-page.c
diff -r0 -r1.1 pkgsrc/mail/evolution/patches/patch-calendar_gui_dialogs_task-details-page.c
diff -r0 -r1.1 pkgsrc/mail/evolution/patches/patch-calendar_gui_e-cal-component-preview.c
diff -r0 -r1.1 pkgsrc/mail/evolution/patches/patch-calendar_gui_e-itip-control.c
diff -r0 -r1.1 pkgsrc/mail/evolution/patches/patch-calendar_gui_e-meeting-store.c
diff -r0 -r1.1 pkgsrc/mail/evolution/patches/patch-calendar_gui_gnome-cal.c
diff -r0 -r1.1 pkgsrc/mail/evolution/patches/patch-calendar_gui_itip-utils.c
diff -r0 -r1.1 pkgsrc/mail/evolution/patches/patch-calendar_importers_icalendar-importer.c
diff -r0 -r1.1 pkgsrc/mail/evolution/patches/patch-plugins_groupwise-features_process-meeting.c
diff -r0 -r1.1 pkgsrc/mail/evolution/patches/patch-plugins_groupwise-features_send-options.c
diff -r0 -r1.1 pkgsrc/mail/evolution/patches/patch-plugins_itip-formatter_itip-formatter.c
diff -r1.2 -r1.3 pkgsrc/mail/evolution/patches/patch-yb
diff -r1.2 -r1.3 pkgsrc/mail/evolution/patches/patch-yd
--- pkgsrc/mail/evolution/distinfo 2015/11/03 23:27:04 1.84
+++ pkgsrc/mail/evolution/distinfo 2018/05/16 16:15:23 1.85
| @@ -1,19 +1,31 @@ | | | @@ -1,19 +1,31 @@ |
1 | $NetBSD: distinfo,v 1.84 2015/11/03 23:27:04 agc Exp $ | | 1 | $NetBSD: distinfo,v 1.85 2018/05/16 16:15:23 jperkin Exp $ |
2 | | | 2 | |
3 | SHA1 (evolution-2.32.3.tar.bz2) = cc2a2126ef4192193dce50c43c5bb6fc0a57fcde | | 3 | SHA1 (evolution-2.32.3.tar.bz2) = cc2a2126ef4192193dce50c43c5bb6fc0a57fcde |
4 | RMD160 (evolution-2.32.3.tar.bz2) = 1b64d00a38cf8ad5c273cc4f4aee73124fe818af | | 4 | RMD160 (evolution-2.32.3.tar.bz2) = 1b64d00a38cf8ad5c273cc4f4aee73124fe818af |
5 | SHA512 (evolution-2.32.3.tar.bz2) = 7241954f4e6ab87151e2c4af0bd33d5f428ab5e01f935aafbfaf50714a495fe01fe54c3f3c6498d514880bf1c5271d491a523d79b2928827490204b9eee4c0d3 | | 5 | SHA512 (evolution-2.32.3.tar.bz2) = 7241954f4e6ab87151e2c4af0bd33d5f428ab5e01f935aafbfaf50714a495fe01fe54c3f3c6498d514880bf1c5271d491a523d79b2928827490204b9eee4c0d3 |
6 | Size (evolution-2.32.3.tar.bz2) = 31966138 bytes | | 6 | Size (evolution-2.32.3.tar.bz2) = 31966138 bytes |
7 | SHA1 (patch-aa) = 6656278d2a54fdc585b4f0708da657ed0afbeec2 | | 7 | SHA1 (patch-aa) = 6656278d2a54fdc585b4f0708da657ed0afbeec2 |
8 | SHA1 (patch-ab) = 792e5f7fdb0dc84fdbe0ef1ade21ce4a391e9328 | | 8 | SHA1 (patch-ab) = 792e5f7fdb0dc84fdbe0ef1ade21ce4a391e9328 |
9 | SHA1 (patch-ac) = 853fe9f4a28fa1fe1266607b93e4ef9f63969b42 | | 9 | SHA1 (patch-ac) = 853fe9f4a28fa1fe1266607b93e4ef9f63969b42 |
10 | SHA1 (patch-ad) = 7efe568191ab181ea2b42ddac33db277b69b7d1e | | 10 | SHA1 (patch-ad) = 7efe568191ab181ea2b42ddac33db277b69b7d1e |
11 | SHA1 (patch-calendar_gui_alarm-notify_alarm-queue.c) = 6466bcb2a53b2af82407a63d2e6439a985e286a5 | | 11 | SHA1 (patch-calendar_gui_alarm-notify_alarm-queue.c) = 6466bcb2a53b2af82407a63d2e6439a985e286a5 |
| | | 12 | SHA1 (patch-calendar_gui_comp-util.c) = 5d9242c3b01f73082cf469491b0c86379929de0e |
| | | 13 | SHA1 (patch-calendar_gui_dialogs_recurrence-page.c) = 9cb2675d011b490810ef0c6997286ff9742d6f60 |
| | | 14 | SHA1 (patch-calendar_gui_dialogs_task-details-page.c) = a0c0f84a597fd2d991e6d878ff2148779d38e65c |
| | | 15 | SHA1 (patch-calendar_gui_e-cal-component-preview.c) = 93512fdbe8fbe2ce81bb4b6cb7a6e2ec3c25bfb3 |
| | | 16 | SHA1 (patch-calendar_gui_e-itip-control.c) = 680ff6e6861687e30e479479ec42528d67d5eb83 |
| | | 17 | SHA1 (patch-calendar_gui_e-meeting-store.c) = 754cddc4575ec8007c6134b435b54b6c4254209f |
| | | 18 | SHA1 (patch-calendar_gui_gnome-cal.c) = 457d750fc223cb904d64d864e128ccf2606f034c |
| | | 19 | SHA1 (patch-calendar_gui_itip-utils.c) = 8e780a506437f9b426976aefa05c5cdf42ac31f6 |
| | | 20 | SHA1 (patch-calendar_importers_icalendar-importer.c) = 6057fe6d1cd460aa27f2bb2e3a432364fdaff57b |
12 | SHA1 (patch-plugins_caldav_caldav-browse-server.c) = c35c4acb0c3d28337d7aa811e81a4ce85ecec7b0 | | 21 | SHA1 (patch-plugins_caldav_caldav-browse-server.c) = c35c4acb0c3d28337d7aa811e81a4ce85ecec7b0 |
| | | 22 | SHA1 (patch-plugins_groupwise-features_process-meeting.c) = a975b1800504c9446a53f1152e2e1b49eeaa76bc |
| | | 23 | SHA1 (patch-plugins_groupwise-features_send-options.c) = c399fafa029fef8e4fce9f6d5be8dc345c3da76e |
| | | 24 | SHA1 (patch-plugins_itip-formatter_itip-formatter.c) = 103ba2b985520f0e9252e3130c19990f77a82400 |
13 | SHA1 (patch-plugins_mail-notification_mail-notification.c) = 999ea9e55133077d1e3ed8c8dad26158b8e5260f | | 25 | SHA1 (patch-plugins_mail-notification_mail-notification.c) = 999ea9e55133077d1e3ed8c8dad26158b8e5260f |
14 | SHA1 (patch-plugins_publish-calendar_publish-calendar.c) = 9af3644d68de690126c4cbaf7db9bb2da7b956b4 | | 26 | SHA1 (patch-plugins_publish-calendar_publish-calendar.c) = 9af3644d68de690126c4cbaf7db9bb2da7b956b4 |
15 | SHA1 (patch-ya) = 73872309c1d69d6d10bf04d867cc04ce17e724d3 | | 27 | SHA1 (patch-ya) = 73872309c1d69d6d10bf04d867cc04ce17e724d3 |
16 | SHA1 (patch-yb) = 6d09dceb5405b29cde657eea6fa0fbd004a8bd1f | | 28 | SHA1 (patch-yb) = 7f6df34a233edcd3d38ddfe32a3a45770fe58b4a |
17 | SHA1 (patch-yc) = 1312f89cd935dab9fd3bfae860a055d9d2fef794 | | 29 | SHA1 (patch-yc) = 1312f89cd935dab9fd3bfae860a055d9d2fef794 |
18 | SHA1 (patch-yd) = 09bb3fcd4223add3880253fb43cfd036b8294d1c | | 30 | SHA1 (patch-yd) = fa04a365b079a000d86fe741b22f83261c611c36 |
19 | SHA1 (patch-ye) = 57fd2cb481a8b465b94a2155d82633f0f4b3fa06 | | 31 | SHA1 (patch-ye) = 57fd2cb481a8b465b94a2155d82633f0f4b3fa06 |
$NetBSD: patch-calendar_gui_comp-util.c,v 1.1 2018/05/16 16:15:23 jperkin Exp $
Support current libical API.
--- calendar/gui/comp-util.c.orig 2011-03-29 18:38:46.000000000 +0000
+++ calendar/gui/comp-util.c
@@ -127,8 +127,8 @@ cal_comp_util_compare_event_timezones (E
/* If the event uses UTC for DTSTART & DTEND, return TRUE. Outlook
will send single events as UTC, so we don't want to mark all of
these. */
- if ((!start_datetime.value || start_datetime.value->is_utc)
- && (!end_datetime.value || end_datetime.value->is_utc)) {
+ if ((!start_datetime.value || icaltime_is_utc(*start_datetime.value))
+ && (!end_datetime.value || icaltime_is_utc(*end_datetime.value))) {
retval = TRUE;
goto out;
}
$NetBSD: patch-calendar_gui_dialogs_recurrence-page.c,v 1.1 2018/05/16 16:15:23 jperkin Exp $
Support current libical API.
--- calendar/gui/dialogs/recurrence-page.c.orig 2011-03-29 18:38:46.000000000 +0000
+++ calendar/gui/dialogs/recurrence-page.c
@@ -1516,7 +1516,7 @@ fill_ending_date (RecurrencePage *rpage,
r->until.minute = 0;
r->until.second = 0;
r->until.is_date = TRUE;
- r->until.is_utc = FALSE;
+ r->until.zone = icaltimezone_get_utc_timezone();
e_cal_component_free_datetime (&dt);
}
$NetBSD: patch-calendar_gui_dialogs_task-details-page.c,v 1.1 2018/05/16 16:15:23 jperkin Exp $
Support current libical API.
--- calendar/gui/dialogs/task-details-page.c.orig 2011-03-29 18:38:46.000000000 +0000
+++ calendar/gui/dialogs/task-details-page.c
@@ -341,7 +341,7 @@ task_details_page_fill_component (CompEd
icalcomplete = icaltime_null_time ();
/* COMPLETED must be in UTC. */
- icalcomplete.is_utc = 1;
+ icalcomplete.zone = icaltimezone_get_utc_timezone();
/* Completed Date. */
if (!e_date_edit_date_is_valid (E_DATE_EDIT (priv->completed_date)) ||
@@ -503,7 +503,7 @@ complete_date_changed (TaskDetailsPage *
/* Get the current time in UTC. */
zone = icaltimezone_get_utc_timezone ();
completed_tt = icaltime_from_timet_with_zone (ctime, FALSE, zone);
- completed_tt.is_utc = TRUE;
+ completed_tt.zone = icaltimezone_get_utc_timezone();
dates.start = NULL;
dates.end = NULL;
$NetBSD: patch-calendar_gui_e-cal-component-preview.c,v 1.1 2018/05/16 16:15:23 jperkin Exp $
Support current libical API.
--- calendar/gui/e-cal-component-preview.c.orig 2011-03-29 18:38:46.000000000 +0000
+++ calendar/gui/e-cal-component-preview.c
@@ -143,7 +143,7 @@ timet_to_str_with_zone (ECalComponentDat
/* If we can't find the zone, we'll guess its "local" */
if (!e_cal_get_timezone (ecal, dt->tzid, &zone, NULL))
zone = NULL;
- } else if (dt->value->is_utc) {
+ } else if (icaltime_is_utc(*dt->value)) {
zone = icaltimezone_get_utc_timezone ();
} else {
zone = NULL;
$NetBSD: patch-calendar_gui_e-itip-control.c,v 1.1 2018/05/16 16:15:23 jperkin Exp $
Support current libical API.
--- calendar/gui/e-itip-control.c.orig 2011-03-29 18:38:46.000000000 +0000
+++ calendar/gui/e-itip-control.c
@@ -673,7 +673,7 @@ write_label_piece (EItipControl *itip, E
/* UTC times get converted to the current timezone. This is done for
the COMPLETED property, which is always in UTC, and also because
Outlook sends simple events as UTC times. */
- if (dt->value->is_utc) {
+ if (icaltime_is_utc(*dt->value)) {
zone = calendar_config_get_icaltimezone ();
icaltimezone_convert_time (dt->value, icaltimezone_get_utc_timezone (), zone);
}
@@ -691,7 +691,7 @@ write_label_piece (EItipControl *itip, E
time_buf, sizeof (time_buf));
g_string_append (buffer, time_buf);
- if (!dt->value->is_utc && dt->tzid) {
+ if (!icaltime_is_utc(*dt->value) && dt->tzid) {
zone = icalcomponent_get_timezone (priv->top_level, dt->tzid);
}
@@ -930,7 +930,7 @@ set_date_label (EItipControl *itip,
if (type == E_CAL_COMPONENT_TODO && datetime.value) {
str = g_strdup_printf ("<b>%s:</b>", _("Completed"));
/* Pass TRUE as is_utc, so it gets converted to the current timezone. */
- datetime.value->is_utc = TRUE;
+ datetime.value->zone = icaltimezone_get_utc_timezone();
write_label_piece (itip, &datetime, buffer, str, "<br>", FALSE);
wrote = TRUE;
task_completed = TRUE;
@@ -1898,7 +1898,7 @@ change_status (icalcomponent *ical_comp,
if (prop) {
icalparameter *param;
- icalproperty_remove_parameter (prop, ICAL_PARTSTAT_PARAMETER);
+ icalproperty_remove_parameter_by_kind (prop, ICAL_PARTSTAT_PARAMETER);
param = icalparameter_new_partstat (status);
icalproperty_add_parameter (prop, param);
} else {
$NetBSD: patch-calendar_gui_e-meeting-store.c,v 1.1 2018/05/16 16:15:23 jperkin Exp $
Support current libical API.
--- calendar/gui/e-meeting-store.c.orig 2011-03-29 18:38:46.000000000 +0000
+++ calendar/gui/e-meeting-store.c
@@ -1072,7 +1072,7 @@ process_free_busy_comp (EMeetingAttendee
icaltimezone *ds_zone;
dtstart = icalproperty_get_dtstart (ip);
- if (!dtstart.is_utc)
+ if (!icaltime_is_utc(dtstart))
ds_zone = find_zone (ip, tz_top_level);
else
ds_zone = icaltimezone_get_utc_timezone ();
@@ -1091,7 +1091,7 @@ process_free_busy_comp (EMeetingAttendee
icaltimezone *de_zone;
dtend = icalproperty_get_dtend (ip);
- if (!dtend.is_utc)
+ if (!icaltime_is_utc(dtend))
de_zone = find_zone (ip, tz_top_level);
else
de_zone = icaltimezone_get_utc_timezone ();
$NetBSD: patch-calendar_gui_gnome-cal.c,v 1.1 2018/05/16 16:15:23 jperkin Exp $
Support current libical API.
--- calendar/gui/gnome-cal.c.orig 2011-03-29 18:38:46.000000000 +0000
+++ calendar/gui/gnome-cal.c
@@ -743,13 +743,13 @@ ensure_dates_are_in_default_zone (GnomeC
return;
dt = icalcomponent_get_dtstart (icalcomp);
- if (dt.is_utc) {
+ if (icaltime_is_utc(dt)) {
dt = icaltime_convert_to_zone (dt, timezone);
icalcomponent_set_dtstart (icalcomp, dt);
}
dt = icalcomponent_get_dtend (icalcomp);
- if (dt.is_utc) {
+ if (icaltime_is_utc(dt)) {
dt = icaltime_convert_to_zone (dt, timezone);
icalcomponent_set_dtend (icalcomp, dt);
}
$NetBSD: patch-calendar_gui_itip-utils.c,v 1.1 2018/05/16 16:15:23 jperkin Exp $
Support current libical API.
--- calendar/gui/itip-utils.c.orig 2011-03-29 18:38:46.000000000 +0000
+++ calendar/gui/itip-utils.c
@@ -1115,7 +1115,7 @@ comp_compliant (ECalComponentItipMethod
r->until.is_date = FALSE;
icaltimezone_convert_time (&r->until, from_zone, to_zone);
- r->until.is_utc = TRUE;
+ r->until.zone = icaltimezone_get_utc_timezone();
e_cal_component_free_datetime (&dt);
e_cal_component_set_rrule_list (clone, rrule_list);
$NetBSD: patch-calendar_importers_icalendar-importer.c,v 1.1 2018/05/16 16:15:23 jperkin Exp $
Support current libical API.
--- calendar/importers/icalendar-importer.c.orig 2011-03-29 18:38:46.000000000 +0000
+++ calendar/importers/icalendar-importer.c
@@ -39,6 +39,7 @@
#include <libecal/e-cal-time-util.h>
#include <libedataserverui/e-source-selector.h>
#include <libical/icalvcal.h>
+#include <libical/vcc.h>
#include "evolution-calendar-importer.h"
#include "shell/e-shell.h"
#include "common/authentication.h"
$NetBSD: patch-plugins_groupwise-features_process-meeting.c,v 1.1 2018/05/16 16:15:23 jperkin Exp $
Support current libical API.
--- plugins/groupwise-features/process-meeting.c.orig 2011-03-29 18:38:48.000000000 +0000
+++ plugins/groupwise-features/process-meeting.c
@@ -118,7 +118,7 @@ change_status (icalcomponent *ical_comp,
if (prop) {
icalparameter *param;
- icalproperty_remove_parameter (prop, ICAL_PARTSTAT_PARAMETER);
+ icalproperty_remove_parameter_by_kind (prop, ICAL_PARTSTAT_PARAMETER);
param = icalparameter_new_partstat (status);
icalproperty_add_parameter (prop, param);
} else {
$NetBSD: patch-plugins_groupwise-features_send-options.c,v 1.1 2018/05/16 16:15:23 jperkin Exp $
Support current libical API.
--- plugins/groupwise-features/send-options.c.orig 2011-03-29 18:38:48.000000000 +0000
+++ plugins/groupwise-features/send-options.c
@@ -276,7 +276,7 @@ e_send_options_copy_general_opts (ESendO
gint diff;
icaltimetype temp, current;
- temp = icaltime_from_timet (gopts->delay_until, 0);
+ temp = icaltime_from_timet_with_zone (gopts->delay_until, 0, NULL);
current = icaltime_today ();
diff = temp.day - current.day;
ggopts->delay_until = diff;
$NetBSD: patch-plugins_itip-formatter_itip-formatter.c,v 1.1 2018/05/16 16:15:23 jperkin Exp $
Support current libical API.
--- plugins/itip-formatter/itip-formatter.c.orig 2011-03-29 18:38:48.000000000 +0000
+++ plugins/itip-formatter/itip-formatter.c
@@ -941,7 +941,7 @@ change_status (icalcomponent *ical_comp,
if (prop) {
icalparameter *param;
- icalproperty_remove_parameter (prop, ICAL_PARTSTAT_PARAMETER);
+ icalproperty_remove_parameter_by_kind (prop, ICAL_PARTSTAT_PARAMETER);
param = icalparameter_new_partstat (status);
icalproperty_add_parameter (prop, param);
} else {
@@ -2390,9 +2390,9 @@ format_itip_object (EMFormatHTML *efh, G
/* If the timezone is not in the component, guess the local time */
/* Should we guess if the timezone is an olsen name somehow? */
- if (datetime.value->is_utc)
+ if (icaltime_is_utc(*datetime.value))
from_zone = icaltimezone_get_utc_timezone ();
- else if (!datetime.value->is_utc && datetime.tzid)
+ else if (!icaltime_is_utc(*datetime.value) && datetime.tzid)
from_zone = icalcomponent_get_timezone (info->top_level, datetime.tzid);
else
from_zone = NULL;
@@ -2426,9 +2426,9 @@ format_itip_object (EMFormatHTML *efh, G
/* If the timezone is not in the component, guess the local time */
/* Should we guess if the timezone is an olsen name somehow? */
- if (datetime.value->is_utc)
+ if (icaltime_is_utc(*datetime.value))
from_zone = icaltimezone_get_utc_timezone ();
- else if (!datetime.value->is_utc && datetime.tzid)
+ else if (!icaltime_is_utc(*datetime.value) && datetime.tzid)
from_zone = icalcomponent_get_timezone (info->top_level, datetime.tzid);
else
from_zone = NULL;
--- pkgsrc/mail/evolution/patches/Attic/patch-yb 2009/10/24 12:57:56 1.2
+++ pkgsrc/mail/evolution/patches/Attic/patch-yb 2018/05/16 16:15:23 1.3
| @@ -1,25 +1,52 @@ | | | @@ -1,25 +1,52 @@ |
1 | $NetBSD: patch-yb,v 1.2 2009/10/24 12:57:56 drochner Exp $ | | 1 | $NetBSD: patch-yb,v 1.3 2018/05/16 16:15:23 jperkin Exp $ |
2 | | | 2 | |
3 | --- calendar/gui/e-cal-model.c.orig 2009-10-18 02:54:18.000000000 +0200 | | 3 | Support current libical API. |
| | | 4 | |
| | | 5 | --- calendar/gui/e-cal-model.c.orig 2011-04-14 11:42:52.000000000 +0000 |
4 | +++ calendar/gui/e-cal-model.c | | 6 | +++ calendar/gui/e-cal-model.c |
5 | @@ -163,8 +163,8 @@ e_cal_model_class_init (ECalModelClass * | | 7 | @@ -380,8 +380,8 @@ e_cal_model_class_init (ECalModelClass * |
6 | G_SIGNAL_RUN_LAST, | | 8 | G_SIGNAL_RUN_LAST, |
7 | G_STRUCT_OFFSET (ECalModelClass, time_range_changed), | | 9 | G_STRUCT_OFFSET (ECalModelClass, time_range_changed), |
8 | NULL, NULL, | | 10 | NULL, NULL, |
9 | - e_marshal_VOID__LONG_LONG, | | 11 | - e_marshal_VOID__LONG_LONG, |
10 | - G_TYPE_NONE, 2, G_TYPE_LONG, G_TYPE_LONG); | | 12 | - G_TYPE_NONE, 2, G_TYPE_LONG, G_TYPE_LONG); |
11 | + e_marshal_VOID__INT64_INT64, | | 13 | + e_marshal_VOID__INT64_INT64, |
12 | + G_TYPE_NONE, 2, G_TYPE_INT64, G_TYPE_INT64); | | 14 | + G_TYPE_NONE, 2, G_TYPE_INT64, G_TYPE_INT64); |
13 | | | 15 | |
14 | signals[ROW_APPENDED] = | | 16 | signals[ROW_APPENDED] = |
15 | g_signal_new ("row_appended", | | 17 | g_signal_new ("row_appended", |
16 | @@ -2185,7 +2185,8 @@ e_cal_model_set_time_range (ECalModel *m | | 18 | @@ -920,7 +920,7 @@ e_cal_model_update_comp_time (ECalModel |
| | | 19 | icalproperty_add_parameter (prop, param); |
| | | 20 | } |
| | | 21 | } else { |
| | | 22 | - icalproperty_remove_parameter (prop, ICAL_TZID_PARAMETER); |
| | | 23 | + icalproperty_remove_parameter_by_kind (prop, ICAL_TZID_PARAMETER); |
| | | 24 | } |
| | | 25 | } |
| | | 26 | } |
| | | 27 | @@ -1710,13 +1710,13 @@ ensure_dates_are_in_default_zone (ECalMo |
| | | 28 | return; |
| | | 29 | |
| | | 30 | dt = icalcomponent_get_dtstart (icalcomp); |
| | | 31 | - if (dt.is_utc) { |
| | | 32 | + if (icaltime_is_utc(dt)) { |
| | | 33 | dt = icaltime_convert_to_zone (dt, zone); |
| | | 34 | icalcomponent_set_dtstart (icalcomp, dt); |
| | | 35 | } |
| | | 36 | |
| | | 37 | dt = icalcomponent_get_dtend (icalcomp); |
| | | 38 | - if (dt.is_utc) { |
| | | 39 | + if (icaltime_is_utc(dt)) { |
| | | 40 | dt = icaltime_convert_to_zone (dt, zone); |
| | | 41 | icalcomponent_set_dtend (icalcomp, dt); |
| | | 42 | } |
| | | 43 | @@ -2513,7 +2513,8 @@ e_cal_model_set_time_range (ECalModel *m |
17 | priv->start = start; | | 44 | priv->start = start; |
18 | priv->end = end; | | 45 | priv->end = end; |
19 | | | 46 | |
20 | - g_signal_emit (G_OBJECT (model), signals[TIME_RANGE_CHANGED], 0, start, end); | | 47 | - g_signal_emit (G_OBJECT (model), signals[TIME_RANGE_CHANGED], 0, start, end); |
21 | + g_signal_emit (G_OBJECT (model), signals[TIME_RANGE_CHANGED], 0, | | 48 | + g_signal_emit (G_OBJECT (model), signals[TIME_RANGE_CHANGED], 0, |
22 | + (gint64)start, (gint64)end); | | 49 | + (gint64)start, (gint64)end); |
23 | redo_queries (model); | | 50 | redo_queries (model); |
24 | } | | 51 | } |
25 | | | 52 | |
--- pkgsrc/mail/evolution/patches/Attic/patch-yd 2009/10/24 12:57:56 1.2
+++ pkgsrc/mail/evolution/patches/Attic/patch-yd 2018/05/16 16:15:23 1.3
| @@ -1,18 +1,42 @@ | | | @@ -1,18 +1,42 @@ |
1 | $NetBSD: patch-yd,v 1.2 2009/10/24 12:57:56 drochner Exp $ | | 1 | $NetBSD: patch-yd,v 1.3 2018/05/16 16:15:23 jperkin Exp $ |
2 | | | 2 | |
3 | --- calendar/gui/e-day-view.c.orig 2009-10-18 01:08:48.000000000 +0200 | | 3 | Support current libical API. |
| | | 4 | |
| | | 5 | --- calendar/gui/e-day-view.c.orig 2011-03-29 18:38:46.000000000 +0000 |
4 | +++ calendar/gui/e-day-view.c | | 6 | +++ calendar/gui/e-day-view.c |
5 | @@ -469,11 +469,11 @@ e_day_view_class_init (EDayViewClass *cl | | 7 | @@ -745,11 +745,11 @@ e_day_view_class_init (EDayViewClass *cl |
6 | } | | 8 | } |
7 | | | 9 | |
8 | static void | | 10 | static void |
9 | -time_range_changed_cb (ECalModel *model, time_t start_time, time_t end_time, gpointer user_data) | | 11 | -time_range_changed_cb (ECalModel *model, time_t start_time, time_t end_time, gpointer user_data) |
10 | +time_range_changed_cb (ECalModel *model, gint64 st64, gint64 et64, gpointer user_data) | | 12 | +time_range_changed_cb (ECalModel *model, gint64 st64, gint64 et64, gpointer user_data) |
11 | { | | 13 | { |
12 | EDayView *day_view = E_DAY_VIEW (user_data); | | 14 | EDayView *day_view = E_DAY_VIEW (user_data); |
13 | EDayViewTimeItem *eti; | | 15 | EDayViewTimeItem *eti; |
14 | - time_t lower; | | 16 | - time_t lower; |
15 | + time_t start_time = st64, end_time = et64, lower; | | 17 | + time_t start_time = st64, end_time = et64, lower; |
16 | | | 18 | |
17 | g_return_if_fail (E_IS_DAY_VIEW (day_view)); | | 19 | g_return_if_fail (E_IS_DAY_VIEW (day_view)); |
18 | | | 20 | |
| | | 21 | @@ -6540,8 +6540,8 @@ e_day_view_event_move (ECalendarView *ca |
| | | 22 | return TRUE; |
| | | 23 | start_dt = e_day_view_convert_grid_position_to_time (day_view, day, resize_start_row); |
| | | 24 | end_dt = e_day_view_convert_grid_position_to_time (day_view, day, resize_end_row + 1); |
| | | 25 | - start_time = icaltime_from_timet (start_dt, 0); |
| | | 26 | - end_time = icaltime_from_timet (end_dt, 0); |
| | | 27 | + start_time = icaltime_from_timet_with_zone (start_dt, 0, NULL); |
| | | 28 | + end_time = icaltime_from_timet_with_zone (end_dt, 0, NULL); |
| | | 29 | icaltime_adjust (&start_time ,-1,0,0,0); |
| | | 30 | icaltime_adjust (&end_time ,-1,0,0,0); |
| | | 31 | start_dt = icaltime_as_timet (start_time); |
| | | 32 | @@ -6552,8 +6552,8 @@ e_day_view_event_move (ECalendarView *ca |
| | | 33 | return TRUE; |
| | | 34 | start_dt = e_day_view_convert_grid_position_to_time (day_view, day, resize_start_row); |
| | | 35 | end_dt = e_day_view_convert_grid_position_to_time (day_view, day, resize_end_row + 1); |
| | | 36 | - start_time = icaltime_from_timet (start_dt, 0); |
| | | 37 | - end_time = icaltime_from_timet (end_dt, 0); |
| | | 38 | + start_time = icaltime_from_timet_with_zone (start_dt, 0, NULL); |
| | | 39 | + end_time = icaltime_from_timet_with_zone (end_dt, 0, NULL); |
| | | 40 | icaltime_adjust (&start_time ,1,0,0,0); |
| | | 41 | icaltime_adjust (&end_time ,1,0,0,0); |
| | | 42 | start_dt = icaltime_as_timet (start_time); |