[geary/mjog/mail-merge-plugin: 68/72] Geary.ComposedEmail: Allow send date to be updated
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/mjog/mail-merge-plugin: 68/72] Geary.ComposedEmail: Allow send date to be updated
- Date: Tue, 18 Aug 2020 06:32:46 +0000 (UTC)
commit 7d6078d7c9d93b066071e1f7d5b48f9d1b17d481
Author: Michael Gratton <mike vee net>
Date: Sat Aug 15 10:58:00 2020 +1000
Geary.ComposedEmail: Allow send date to be updated
We want to ensure there is a non-null, send date, but mail merge wants
to set the date to be when it was actually sent, so allow it to be
updated after construction.
src/engine/api/geary-composed-email.vala | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/src/engine/api/geary-composed-email.vala b/src/engine/api/geary-composed-email.vala
index 96c7aa24c..cb70798eb 100644
--- a/src/engine/api/geary-composed-email.vala
+++ b/src/engine/api/geary-composed-email.vala
@@ -80,11 +80,16 @@ public class Geary.ComposedEmail : EmailHeaderSet, BaseObject {
public string img_src_prefix { get; set; default = ""; }
- public ComposedEmail(DateTime date, RFC822.MailboxAddresses from) {
- this._date = new RFC822.Date(date);
+ public ComposedEmail(GLib.DateTime date, RFC822.MailboxAddresses from) {
+ set_date(date);
this._from = from;
}
+ public ComposedEmail set_date(GLib.DateTime date) {
+ this._date = new RFC822.Date(date);
+ return this;
+ }
+
public ComposedEmail set_sender(RFC822.MailboxAddress? sender) {
this._sender = sender;
return this;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]